/* Stitch "smart airy" theme for the authenticated workspace. */
:root {
  color-scheme: light;
  --ink: #131b2e;
  --muted: #52606d;
  --paper: rgba(255, 255, 255, 0.84);
  --soft: #eef5ff;
  --line: rgba(110, 120, 129, 0.18);
  --blue: #006591;
  --blue-dark: #075d83;
  --blue-soft: #c9e6ff;
  --green: #17a977;
  --red: #c2413a;
  --yellow: #f7c948;
  --shadow: 0 18px 42px rgba(11, 40, 72, 0.08);
  --soft-shadow: 0 10px 24px rgba(11, 40, 72, 0.06);
}

html {
  background: #faf8ff;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 230, 255, 0.48), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(234, 237, 255, 0.88), transparent 36%),
    linear-gradient(180deg, #faf8ff 0%, #f3f8ff 44%, #ffffff 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.admin-shell,
.app-shell {
  width: min(1480px, calc(100% - 32px));
  padding: 20px 0 40px;
}

.app-topbar,
.admin-topbar,
.admin-card,
.login-card,
.register-card,
.summary-card,
.admin-workflow,
.home-entry-card,
.user-create-panel,
.user-page-summary,
.user-group,
.managed-user-card,
.user-detail-panel,
.user-card,
.project-card,
.payment-form,
.payment-orders,
.payment-order-card,
.project-edit-panel,
.trial-summary,
.membership-cards article,
.quote-meta,
.library-panel,
.quote-panel,
.topbar,
.panel,
.board-wrap,
.toolbar,
.floorplan-card,
.guide-card,
.knowledge-card,
.platform-table {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.app-topbar,
.admin-topbar,
.topbar {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(250, 248, 255, 0.82);
}

.app-brand img,
.admin-brand img {
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 101, 145, 0.12);
}

.app-brand .eyebrow,
.admin-brand .eyebrow,
.eyebrow,
.card-heading .eyebrow,
.membership-cards span,
.register-card label > span,
.trial-summary span,
.user-create-tag,
.user-group h2,
.project-edit-panel summary,
.platform-table th {
  color: var(--blue);
}

.app-brand h1,
.admin-brand h1,
h1,
h2,
h3,
.login-card h2,
.register-card h2,
.card-heading h2,
.summary-card strong,
.admin-workflow h2,
.workflow-steps strong,
.admin-home-grid strong,
.managed-user-card h3,
.user-card strong,
.project-card strong,
.platform-table strong,
.membership-cards strong,
.trial-summary strong {
  color: var(--ink);
}

.app-brand p,
.admin-brand p,
.login-note,
.summary-card span,
.summary-card small,
.admin-workflow p,
.workflow-steps small,
.admin-home-grid small,
.managed-user-card p,
.user-card span,
.project-card span,
.payment-panel .card-heading p,
.payment-order-card span,
.payment-order-card small,
.platform-table small,
.register-card p,
.membership-cards p,
.trial-summary p,
.project-detail-chips span,
.project-edit-readonly,
.empty-line,
.permission-note,
.quote-meta label,
.form-grid label,
.library-panel p,
.quote-panel p {
  color: var(--muted);
}

.nav-section {
  border-color: rgba(201, 230, 255, 0.78);
  background: rgba(255, 255, 255, 0.64);
}

.nav-link,
.nav-button,
.app-topbar .file-button,
.ghost-button,
.file-button,
.auth-alt-link,
.button-link {
  border-color: rgba(0, 101, 145, 0.12);
  color: #315466;
  background: rgba(255, 255, 255, 0.64);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active,
.nav-button:hover,
.app-topbar .file-button:hover,
.ghost-button:hover,
.file-button:hover,
.auth-alt-link:hover {
  border-color: rgba(0, 101, 145, 0.26);
  color: var(--blue);
  background: rgba(201, 230, 255, 0.52);
  box-shadow: none;
}

.nav-link.active,
.nav-button.active {
  font-weight: 800;
}

.primary-button,
.solid-button,
.nav-primary,
.payment-form button,
.project-actions .primary-button {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(0, 101, 145, 0.16);
}

.primary-button:hover,
.solid-button:hover,
.nav-primary:hover,
.payment-form button:hover,
.project-actions .primary-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 101, 145, 0.2);
}

.danger-button {
  background: var(--red);
  border-color: var(--red);
}

.admin-message {
  border-color: rgba(0, 101, 145, 0.16);
  color: #003751;
  background: rgba(201, 230, 255, 0.58);
}

.admin-message.error {
  border-color: rgba(194, 65, 58, 0.18);
  color: #8a1f17;
  background: #fff1f0;
}

input,
select,
textarea,
.register-card input,
.register-card select,
.login-card input,
.user-card input,
.user-card select,
.payment-form select,
.project-edit-field input,
.project-edit-field select,
.quote-meta input,
.quote-meta select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid rgba(110, 120, 129, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

input::placeholder,
textarea::placeholder {
  color: rgba(82, 96, 109, 0.58);
}

input:focus,
select:focus,
textarea:focus,
.register-card input:focus,
.register-card select:focus,
.login-card input:focus,
.user-card input:focus,
.user-card select:focus,
.payment-form select:focus,
.project-edit-field input:focus,
.project-edit-field select:focus {
  outline: 3px solid rgba(14, 165, 233, 0.14);
  border-color: rgba(0, 101, 145, 0.52);
}

.dashboard-view,
.platform-view {
  gap: 18px;
}

.admin-summary {
  gap: 14px;
}

.summary-card,
.admin-card,
.managed-user-card,
.project-card,
.price-card {
  position: relative;
  overflow: hidden;
}

.summary-card::before,
.admin-card::before,
.managed-user-card::before,
.project-card::before,
.price-card::before {
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.36), transparent);
  content: "";
}

.workflow-steps a,
.user-create-grid,
.project-detail-chips span,
.role-badge,
.status-badge,
.payment-amount,
.trial-summary {
  border-color: rgba(201, 230, 255, 0.72);
  background: rgba(255, 255, 255, 0.56);
}

.home-entry-card,
.workflow-steps a {
  box-shadow: var(--soft-shadow);
}

.home-entry-card:hover,
.workflow-steps a:hover,
.managed-user-card:hover,
.project-card:hover {
  border-color: rgba(0, 101, 145, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(11, 40, 72, 0.12);
}

.workflow-steps span,
.role-badge,
.status-badge {
  color: #003751;
  background: var(--blue-soft);
}

.status-badge.disabled {
  color: #6b7280;
  background: #eef2f7;
}

.platform-table {
  overflow: auto;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.82);
}

.platform-table th,
.platform-table td {
  border-bottom-color: rgba(110, 120, 129, 0.12);
}

.platform-table th {
  background: rgba(238, 245, 255, 0.82);
}

.platform-table td {
  color: var(--ink);
}

.project-thumb {
  border-color: rgba(201, 230, 255, 0.86);
  background: rgba(238, 245, 255, 0.68);
}

.project-edit-panel[open] summary {
  border-bottom-color: rgba(110, 120, 129, 0.12);
  background: rgba(201, 230, 255, 0.4);
}

.project-create-dialog {
  position: relative;
  overflow: hidden;
}

.dialog-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.dialog-confirm-layer[hidden] {
  display: none !important;
}

.dialog-confirm-card {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.dialog-confirm-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #b45309;
  background: #fef3c7;
  font-size: 22px;
  font-weight: 900;
}

.dialog-confirm-card .eyebrow,
.dialog-confirm-card h3,
.dialog-confirm-card p {
  margin: 0;
}

.dialog-confirm-card .eyebrow {
  color: #b45309;
}

.dialog-confirm-card h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.dialog-confirm-card p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dialog-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.empty-line,
.permission-note,
.project-edit-readonly {
  border-color: rgba(110, 120, 129, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

.product-card,
.quote-item,
.product-row,
.floorplan-item,
.marketing-card,
.guide-section,
.faq-item {
  border-color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: var(--soft-shadow);
}

.product-card:hover,
.floorplan-item:hover,
.marketing-card:hover {
  border-color: rgba(0, 101, 145, 0.2) !important;
}

@media (max-width: 760px) {
  .admin-shell,
  .app-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }

  .app-topbar,
  .admin-topbar,
  .topbar {
    border-radius: 12px;
  }
}

.admin-home-page .app-topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
}

.admin-with-sidebar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.admin-with-sidebar .admin-sidebar[hidden],
.admin-with-sidebar .sidebar-brand[hidden],
.admin-with-sidebar .sidebar-group[hidden],
.admin-with-sidebar .sidebar-link[hidden],
.admin-with-sidebar .sidebar-cta[hidden],
.admin-with-sidebar .current-user-badge[hidden],
.admin-with-sidebar .nav-button[hidden],
.admin-with-sidebar .nav-link[hidden],
.admin-with-sidebar .dashboard-title-actions[hidden] {
  display: none !important;
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #0a0e17 0%, #111827 52%, #0b1120 100%);
  box-shadow: 0 24px 54px rgba(10, 14, 23, 0.2);
  backdrop-filter: blur(16px);
}

.admin-sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(0, 242, 255, 0.18), transparent 1px);
  content: "";
}

.sidebar-brand,
.sidebar-nav,
.sidebar-quickstart,
.sidebar-account {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 12px;
  color: #f8fbff;
  text-decoration: none;
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 26px rgba(0, 242, 255, 0.08);
}

.sidebar-brand span {
  display: grid;
  gap: 2px;
}

.sidebar-brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.sidebar-brand small {
  color: rgba(198, 198, 204, 0.76);
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-group {
  display: grid;
  gap: 6px;
}

.sidebar-label {
  padding: 0 12px 2px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(226, 232, 240, 0.78);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #9deff8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.active {
  border-color: rgba(0, 242, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-link.active span {
  color: #002022;
  background: #00f2ff;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.18);
}

.sidebar-link.active {
  border-color: rgba(0, 242, 255, 0.32);
  background: rgba(0, 242, 255, 0.12);
}

.sidebar-quickstart {
  display: grid;
  gap: 8px;
  margin: auto 4px 0;
  padding: 16px;
  border: 1px solid rgba(0, 242, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 242, 255, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.06);
}

.sidebar-quickstart span {
  color: rgba(157, 239, 248, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-quickstart strong {
  color: #f8fbff;
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 4px;
  border-radius: 12px;
  color: #002022;
  background: #00f2ff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 242, 255, 0.12);
}

.sidebar-account {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-account .current-user-badge {
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-account .nav-button {
  width: 100%;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.07);
}

.dashboard-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-home-page .dashboard-view {
  gap: 20px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero-copy,
.dashboard-focus-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 48px rgba(11, 40, 72, 0.1);
  backdrop-filter: blur(16px);
}

.dashboard-hero-copy {
  min-height: 236px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(137, 206, 255, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 255, 0.7));
}

.dashboard-hero-copy::after {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(0, 101, 145, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(0, 101, 145, 0.1), transparent 1px),
    linear-gradient(0deg, rgba(0, 101, 145, 0.08), transparent 1px);
  background-size: 18px 18px;
  opacity: 0.66;
  content: "";
}

.dashboard-hero-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}

.dashboard-hero-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.dashboard-hero-actions .primary-button,
.dashboard-hero-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.dashboard-focus-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.focus-label {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #003751;
  background: rgba(201, 230, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-focus-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: focus-step;
}

.dashboard-focus-card li {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 42px;
  counter-increment: focus-step;
}

.dashboard-focus-card li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(0, 101, 145, 0.12);
  content: counter(focus-step);
  font-weight: 900;
}

.dashboard-focus-card strong {
  font-size: 15px;
}

.dashboard-focus-card span:not(.focus-label) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-home-page .admin-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-home-page .summary-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 18px;
  border-radius: 16px;
}

.admin-home-page .summary-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--summary-accent, var(--blue));
  background: var(--summary-soft, rgba(201, 230, 255, 0.74));
  font-weight: 900;
}

.admin-home-page .summary-card[data-summary="membership"] {
  --summary-accent: #6d5dfc;
  --summary-soft: rgba(218, 226, 253, 0.82);
}

.admin-home-page .summary-card[data-summary="role"] {
  --summary-accent: #0f766e;
  --summary-soft: rgba(209, 250, 229, 0.78);
}

.admin-home-page .summary-card[data-summary="projects"] {
  --summary-accent: #b45309;
  --summary-soft: rgba(254, 243, 199, 0.82);
}

.admin-home-page .summary-card span:not(.summary-icon),
.admin-home-page .summary-card small {
  color: var(--muted);
}

.admin-home-page .summary-card strong {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.2;
}

.admin-home-page .admin-workflow {
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 255, 0.76));
}

.admin-home-page .workflow-steps a {
  min-height: 118px;
  border-radius: 16px;
}

.admin-home-page .workflow-steps span {
  border-radius: 12px;
}

.admin-home-page .workspace-modules {
  gap: 14px;
}

.admin-home-page .module-heading {
  padding: 0 4px;
}

.admin-home-page .admin-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-home-page .home-entry-card {
  min-height: 148px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
}

.admin-home-page .home-entry-card::before {
  top: 20px;
  bottom: auto;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--module-soft);
  opacity: 0.66;
}

.admin-home-page .module-icon {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-home-page .module-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
  min-height: 30px;
  border-radius: 999px;
}

.home-entry-card[data-tone="plan"] {
  --module-accent: #2563eb;
  --module-soft: #e3ecff;
}

.home-entry-card[data-tone="floorplan"] {
  --module-accent: #0f766e;
  --module-soft: #dff7f1;
}

.home-entry-card[data-tone="service"] {
  --module-accent: #9333ea;
  --module-soft: #f2e7ff;
}

.admin-home-page .payment-panel {
  border-radius: 18px;
}

@media (max-width: 1180px) {
  .admin-with-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

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

  .dashboard-hero,
  .admin-home-page .admin-workflow,
  .admin-home-page .payment-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .admin-home-page .app-topbar {
    position: static;
  }

  .admin-sidebar {
    padding: 14px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero-copy {
    min-height: auto;
    padding: 22px;
  }

  .dashboard-hero-copy::after {
    display: none;
  }

  .admin-home-page .admin-summary,
  .admin-home-page .admin-home-grid,
  .admin-home-page .workflow-steps {
    grid-template-columns: 1fr;
  }

  .admin-home-page .module-heading {
    padding: 0;
  }
}

/* Stitch pro workbench refresh. */
.admin-home-page.admin-with-sidebar {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  color: #191c1e;
  background: #f7f9fb;
}

.admin-home-page.admin-with-sidebar .admin-content {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 251, 0)),
    #f7f9fb;
}

.admin-home-page.admin-with-sidebar .admin-sidebar {
  position: sticky;
  top: 0;
  width: 256px;
  min-height: 100vh;
  height: 100vh;
  padding: 16px 14px;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid rgba(195, 198, 215, 0.2);
  border-radius: 0;
  background: #2d3133;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page.admin-with-sidebar .admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-home-page.admin-with-sidebar .admin-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(224, 227, 229, 0.22);
}

.admin-home-page.admin-with-sidebar .admin-sidebar::before {
  display: none;
}

.admin-home-page .sidebar-brand {
  min-height: 58px;
  padding: 4px 10px 12px;
  color: #f7f9fb;
}

.admin-home-page .sidebar-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(224, 227, 229, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.admin-home-page .sidebar-brand strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.admin-home-page .sidebar-brand small {
  color: rgba(224, 227, 229, 0.74);
  font-size: 12px;
}

.admin-home-page .sidebar-nav {
  gap: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(224, 227, 229, 0.12);
}

.admin-home-page .sidebar-group {
  gap: 5px;
}

.admin-home-page .sidebar-label {
  padding: 0 12px 4px;
  color: rgba(224, 227, 229, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-home-page .sidebar-link {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: rgba(239, 241, 243, 0.72);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
}

.admin-home-page .sidebar-link span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(239, 241, 243, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  box-shadow: none;
}

.admin-home-page .sidebar-link:hover,
.admin-home-page .sidebar-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.admin-home-page .sidebar-link.active {
  color: #eef2ff;
  background: #2563eb;
  box-shadow: none;
}

.admin-home-page .sidebar-link.active span {
  color: #2563eb;
  background: #ffffff;
  box-shadow: none;
}

.admin-home-page .sidebar-quickstart {
  margin: auto 2px 0;
  padding: 14px;
  border: 1px solid rgba(224, 227, 229, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-home-page .sidebar-quickstart span {
  color: rgba(172, 237, 255, 0.88);
}

.admin-home-page .sidebar-quickstart strong {
  color: #f7f9fb;
  font-size: 14px;
}

.admin-home-page .sidebar-cta {
  min-height: 38px;
  border-radius: 10px;
  color: #ffffff;
  background: #004ac6;
  box-shadow: none;
}

.admin-home-page .sidebar-account {
  padding-top: 14px;
  border-top: 1px solid rgba(224, 227, 229, 0.12);
}

.admin-home-page .sidebar-account .current-user-badge,
.admin-home-page .sidebar-account .nav-button {
  border: 1px solid rgba(224, 227, 229, 0.14);
  border-radius: 10px;
  color: rgba(239, 241, 243, 0.86);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.admin-home-page .app-topbar.dashboard-titlebar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  margin: 0;
  padding: 14px 32px;
  border: 0;
  border-bottom: 1px solid #e0e3e5;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.admin-home-page .app-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-home-page .app-brand h1 {
  color: #004ac6;
  font-size: 24px;
  line-height: 1.2;
}

.admin-home-page .app-brand p {
  color: #434655;
}

.admin-home-page .dashboard-title-actions .nav-link {
  min-height: 38px;
  border: 1px solid #e0e3e5;
  border-radius: 10px;
  color: #191c1e;
  background: #f2f4f6;
  box-shadow: none;
}

.admin-home-page .admin-message {
  margin: 18px 32px 0;
  border: 1px solid #b4c5ff;
  border-radius: 10px;
  background: #eef2ff;
  box-shadow: none;
}

.admin-home-page .dashboard-view {
  display: grid;
  gap: 22px;
  padding: 24px 32px 40px;
}

.admin-home-page .dashboard-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.admin-home-page .dashboard-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.admin-home-page .dashboard-board-head h2,
.admin-home-page .dashboard-board-head p {
  margin: 0;
}

.admin-home-page .dashboard-board-head h2 {
  color: #191c1e;
  font-size: 28px;
  line-height: 1.2;
}

.admin-home-page .dashboard-board-head p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 8px;
  color: #5b6070;
  font-size: 14px;
  line-height: 1.7;
}

.admin-home-page .dashboard-board-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-home-page .dashboard-hero {
  display: block;
}

.admin-home-page .dashboard-hero-copy {
  min-height: 244px;
  align-content: center;
  gap: 14px;
  padding: 26px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 244, 246, 0.96)),
    #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page .dashboard-hero-copy::after {
  right: 20px;
  bottom: 18px;
  width: 118px;
  height: 118px;
  border-color: rgba(0, 74, 198, 0.08);
  background:
    linear-gradient(90deg, rgba(0, 74, 198, 0.08), transparent 1px),
    linear-gradient(0deg, rgba(0, 74, 198, 0.06), transparent 1px);
  background-size: 16px 16px;
  opacity: 0.72;
}

.admin-home-page .dashboard-hero-copy .eyebrow,
.admin-home-page .module-heading .eyebrow,
.admin-home-page .workflow-copy .eyebrow,
.admin-home-page .payment-panel .eyebrow {
  color: #00687a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.admin-home-page .dashboard-hero-copy h2 {
  max-width: 660px;
  color: #191c1e;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.admin-home-page .dashboard-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #434655;
  font-size: 15px;
  line-height: 1.75;
}

.admin-home-page .dashboard-tip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.admin-home-page .dashboard-tip-row span,
.admin-home-page .dashboard-tip-row b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e0e3e5;
  border-radius: 999px;
  color: #434655;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.admin-home-page .dashboard-tip-row span {
  color: #004ac6;
  background: #dbe1ff;
  border-color: #dbe1ff;
}

.admin-home-page .dashboard-hero-actions .primary-button,
.admin-home-page .dashboard-hero-actions .ghost-button {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-home-page .dashboard-hero-actions .primary-button {
  border-color: #004ac6;
  background: #004ac6;
}

.admin-home-page .dashboard-hero-actions .ghost-button {
  border-color: #d8dadc;
  color: #191c1e;
  background: #ffffff;
}

.admin-home-page .dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-home-page .dashboard-summary .summary-card {
  min-height: 116px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page .dashboard-summary .summary-card::before {
  display: none;
}

.admin-home-page .dashboard-summary .summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.admin-home-page .dashboard-summary .summary-card strong {
  color: #191c1e;
  font-size: 22px;
}

.admin-home-page .dashboard-summary .summary-card span:not(.summary-icon),
.admin-home-page .dashboard-summary .summary-card small {
  color: #5b6070;
}

.admin-home-page .admin-workflow,
.admin-home-page .workspace-modules,
.admin-home-page .payment-panel {
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page .admin-workflow[hidden],
.admin-home-page .workspace-modules[hidden] {
  display: none !important;
}

.admin-home-page .admin-workflow::before,
.admin-home-page .payment-panel::before {
  display: none;
}

.admin-home-page .dashboard-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.admin-home-page .dashboard-live-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.admin-home-page .live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-home-page .live-panel-head h2,
.admin-home-page .live-panel-head p {
  margin: 0;
}

.admin-home-page .live-panel-head h2 {
  color: #191c1e;
  font-size: 22px;
  line-height: 1.3;
}

.admin-home-page .dashboard-live-list {
  display: grid;
  gap: 12px;
}

.admin-home-page .live-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #f7f9fb;
}

.admin-home-page .live-card-main,
.admin-home-page .live-card-title {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-home-page .live-card-title strong {
  overflow: hidden;
  color: #191c1e;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-home-page .live-card-title span,
.admin-home-page .live-card-main p,
.admin-home-page .service-issue-card p {
  margin: 0;
  color: #5b6070;
  line-height: 1.5;
}

.admin-home-page .live-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-home-page .live-card-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.admin-home-page .project-progress-line {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.admin-home-page .project-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #004ac6;
}

.admin-home-page .live-card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-home-page .live-card-actions strong {
  color: #004ac6;
  font-size: 22px;
}

.admin-home-page .live-card-actions .primary-button,
.admin-home-page .live-card-actions .ghost-button,
.admin-home-page .live-panel-head .ghost-button,
.admin-home-page .dashboard-empty-state .primary-button,
.admin-home-page .dashboard-empty-state .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-home-page .service-issue-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #f7f9fb;
}

.admin-home-page .service-issue-card.is-urgent {
  border-color: #ffd1d1;
  background: #fff7f7;
}

.admin-home-page .service-issue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-home-page .service-issue-top span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #8a1c1c;
  background: #ffe2e2;
  font-size: 12px;
  font-weight: 900;
}

.admin-home-page .service-issue-top small {
  color: #64748b;
  font-weight: 700;
}

.admin-home-page .service-issue-card strong {
  color: #191c1e;
  font-size: 16px;
}

.admin-home-page .dashboard-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-home-page .dashboard-empty-state strong {
  color: #191c1e;
}

.admin-home-page .dashboard-empty-state span {
  color: #5b6070;
  line-height: 1.5;
}

.admin-home-page .admin-workflow {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
  padding: 22px;
}

.admin-home-page .workflow-copy h2,
.admin-home-page .module-heading h2,
.admin-home-page .payment-panel h2 {
  color: #191c1e;
  font-size: 22px;
  line-height: 1.3;
}

.admin-home-page .workflow-copy p,
.admin-home-page .module-heading > p,
.admin-home-page .payment-panel .card-heading p {
  color: #5b6070;
}

.admin-home-page .workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-home-page .workflow-steps a {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e0e3e5;
  border-radius: 10px;
  background: #f7f9fb;
  box-shadow: none;
}

.admin-home-page .workflow-steps a:hover {
  border-color: #b4c5ff;
  transform: none;
  box-shadow: none;
}

.admin-home-page .workflow-steps span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #004ac6;
  background: #dbe1ff;
}

.admin-home-page .workflow-steps strong {
  color: #191c1e;
}

.admin-home-page .workflow-steps small {
  color: #5b6070;
}

.admin-home-page .workspace-modules {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-home-page .module-heading {
  padding: 0;
}

.admin-home-page .admin-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-home-page .home-entry-card {
  min-height: 136px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page .home-entry-card:nth-child(-n + 2) {
  grid-column: span 2;
}

.admin-home-page .home-entry-card::before {
  display: none;
}

.admin-home-page .home-entry-card:hover {
  border-color: #b4c5ff;
  transform: none;
  box-shadow: none;
}

.admin-home-page .module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--module-accent);
  background: var(--module-soft);
  font-size: 17px;
}

.admin-home-page .module-kicker {
  color: #00687a;
  font-size: 12px;
  font-weight: 800;
}

.admin-home-page .module-content strong {
  color: #191c1e;
  font-size: 17px;
}

.admin-home-page .module-content small {
  color: #5b6070;
  line-height: 1.55;
}

.admin-home-page .module-action {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #004ac6;
  background: #eef2ff;
  font-size: 12px;
}

.admin-home-page .payment-panel {
  padding: 22px;
}

.admin-home-page .payment-layout {
  gap: 14px;
}

.admin-home-page .payment-form,
.admin-home-page .payment-orders {
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #f7f9fb;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-home-page .payment-amount {
  border: 1px solid #dbe1ff;
  border-radius: 10px;
  background: #eef2ff;
}

@media (max-width: 1280px) {
  .admin-home-page .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-home-page .dashboard-live-grid {
    grid-template-columns: 1fr;
  }

  .admin-home-page .admin-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-home-page .home-entry-card:nth-child(-n + 2) {
    grid-column: span 1;
  }

  .admin-home-page .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-home-page .dashboard-board-head {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .admin-home-page .dashboard-board-actions {
    flex-wrap: wrap;
  }

  .admin-home-page .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .admin-home-page .dashboard-live-panel {
    padding: 16px;
  }

  .admin-home-page .live-panel-head,
  .admin-home-page .live-project-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-home-page .live-panel-head {
    flex-direction: column;
  }

  .admin-home-page .live-card-actions {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: stretch;
  }

  .admin-home-page .live-card-actions strong {
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .admin-home-page.admin-with-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-home-page.admin-with-sidebar .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    border-right: 0;
  }

  .admin-home-page .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-home-page .sidebar-quickstart,
  .admin-home-page .sidebar-account {
    max-width: 520px;
  }

  .admin-home-page .dashboard-bento,
  .admin-home-page .admin-workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-home-page .app-topbar.dashboard-titlebar {
    position: static;
    padding: 14px 16px;
  }

  .admin-home-page .dashboard-view {
    padding: 16px;
  }

  .admin-home-page .dashboard-hero-copy,
  .admin-home-page .admin-workflow,
  .admin-home-page .workspace-modules,
  .admin-home-page .payment-panel {
    padding: 18px;
  }

  .admin-home-page .dashboard-hero-copy h2 {
    font-size: 26px;
  }

  .admin-home-page .sidebar-nav,
  .admin-home-page .dashboard-summary,
  .admin-home-page .workflow-steps,
  .admin-home-page .admin-home-grid {
    grid-template-columns: 1fr;
  }
}

/* Lighter sidebar variant: warmer SaaS panel that matches the workspace surface. */
.admin-home-page.admin-with-sidebar {
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 225, 255, 0.55), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fb 42%, #f7f9fb 100%);
}

.admin-home-page.admin-with-sidebar .admin-sidebar {
  top: 16px;
  width: auto;
  min-height: calc(100vh - 32px);
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  padding: 16px 12px;
  border: 1px solid rgba(212, 222, 234, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96)),
    #ffffff;
  box-shadow: 0 20px 48px rgba(25, 38, 62, 0.08);
}

.admin-home-page.admin-with-sidebar .admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 74, 198, 0.18);
}

.admin-home-page .sidebar-brand {
  min-height: 64px;
  padding: 4px 10px 14px;
  color: #191c1e;
}

.admin-home-page .sidebar-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe1ff;
  border-radius: 14px;
  background: #f7f9ff;
  box-shadow: 0 10px 24px rgba(0, 74, 198, 0.08);
}

.admin-home-page .sidebar-brand strong {
  color: #101828;
}

.admin-home-page .sidebar-brand small {
  color: #667085;
}

.admin-home-page .sidebar-nav {
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6edf5;
}

.admin-home-page .sidebar-label {
  color: #8a96a8;
}

.admin-home-page .sidebar-link {
  position: relative;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #344054;
  background: transparent;
  font-weight: 800;
}

.admin-home-page .sidebar-link span {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  color: #2563eb;
  background: #eef4ff;
  box-shadow: none;
}

.admin-home-page .sidebar-link:hover,
.admin-home-page .sidebar-link:focus-visible {
  color: #004ac6;
  border-color: #dbe1ff;
  background: #f3f7ff;
}

.admin-home-page .sidebar-link.active {
  color: #003ea8;
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #eaf1ff, #f8fbff);
  box-shadow: inset 3px 0 0 #2563eb;
}

.admin-home-page .sidebar-link.active span {
  color: #ffffff;
  background: #2563eb;
}

.admin-home-page .sidebar-quickstart {
  margin: auto 2px 0;
  border: 1px solid #dbe1ff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 48%),
    linear-gradient(135deg, #f5f8ff, #ffffff);
}

.admin-home-page .sidebar-quickstart span {
  color: #00687a;
}

.admin-home-page .sidebar-quickstart strong {
  color: #1d2939;
}

.admin-home-page .sidebar-cta {
  color: #ffffff;
  background: #004ac6;
  box-shadow: 0 12px 24px rgba(0, 74, 198, 0.16);
}

.admin-home-page .sidebar-account {
  border-top: 1px solid #e6edf5;
}

.admin-home-page .sidebar-account .current-user-badge,
.admin-home-page .sidebar-account .nav-button {
  border-color: #d8e2ee;
  color: #344054;
  background: #ffffff;
}

.admin-home-page .sidebar-account .nav-button:hover {
  border-color: #c7d2fe;
  color: #004ac6;
  background: #f3f7ff;
}

.admin-home-page .app-topbar.dashboard-titlebar {
  background: rgba(248, 251, 255, 0.9);
}

@media (max-width: 1100px) {
  .admin-home-page.admin-with-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-home-page.admin-with-sidebar .admin-sidebar {
    width: auto;
    height: auto;
    min-height: auto;
    margin: 12px;
    border-radius: 18px;
  }
}

/* Slim reference-style sidebar: single navigation list, accent rail and compact footer. */
.admin-home-page.admin-with-sidebar {
  grid-template-columns: 184px minmax(0, 1fr);
  background: #f7f9fb;
}

.admin-home-page.admin-with-sidebar .admin-sidebar {
  top: 0;
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 18px 10px 14px 18px;
  border: 0;
  border-right: 1px solid #eef2f6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: inset 4px 0 0 #6c63ff;
}

.admin-home-page .sidebar-brand {
  display: none !important;
}

.admin-home-page .sidebar-nav.sidebar-menu {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
}

.admin-home-page .sidebar-menu .sidebar-link {
  min-height: 32px;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #1f2a37;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.admin-home-page .sidebar-menu .sidebar-link:hover,
.admin-home-page .sidebar-menu .sidebar-link:focus-visible {
  color: #0f172a;
  background: #edf5ff;
}

.admin-home-page .sidebar-menu .sidebar-link.active {
  color: #1e293b;
  background: #cfe1fb;
  box-shadow: none;
}

.admin-home-page .nav-glyph {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 0;
  color: #334155;
  background: transparent;
}

.admin-home-page .sidebar-link.active .nav-glyph {
  color: #475569;
  background: transparent;
}

.admin-home-page .nav-glyph::before,
.admin-home-page .nav-glyph::after {
  position: absolute;
  box-sizing: border-box;
  content: "";
}

.admin-home-page .nav-glyph-dashboard::before {
  left: 3px;
  top: 3px;
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor, 0 6px 0 currentColor, 6px 6px 0 currentColor;
}

.admin-home-page .nav-glyph-project::before {
  left: 7px;
  top: 2px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(12deg);
}

.admin-home-page .nav-glyph-project::after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.admin-home-page .nav-glyph-product::before,
.admin-home-page .nav-glyph-billing::before {
  inset: 2px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}

.admin-home-page .nav-glyph-product::after {
  left: 5px;
  right: 5px;
  top: 6px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.admin-home-page .nav-glyph-content::before {
  left: 2px;
  right: 2px;
  top: 5px;
  bottom: 2px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}

.admin-home-page .nav-glyph-content::after {
  left: 3px;
  top: 3px;
  width: 6px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.admin-home-page .nav-glyph-service::before {
  left: 2px;
  top: 4px;
  width: 12px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.admin-home-page .nav-glyph-service::after {
  left: 3px;
  top: 9px;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor;
}

.admin-home-page .nav-glyph-billing::after {
  left: 5px;
  right: 5px;
  top: 8px;
  height: 1.5px;
  background: currentColor;
}

.admin-home-page .nav-glyph-help::before {
  inset: 2px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
}

.admin-home-page .nav-glyph-help::after {
  left: 7px;
  top: 5px;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.admin-home-page .nav-glyph-logout::before {
  left: 3px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

.admin-home-page .nav-glyph-logout::after {
  right: 2px;
  top: 7px;
  width: 8px;
  height: 1.6px;
  background: currentColor;
  box-shadow: 3px -3px 0 -1px currentColor, 3px 3px 0 -1px currentColor;
}

.admin-home-page .sidebar-quickstart {
  display: grid;
  gap: 6px;
  margin: auto 4px 16px;
  padding: 14px 12px;
  border: 1px solid #d6e8ef;
  border-radius: 8px;
  background: #effaff;
  box-shadow: none;
}

.admin-home-page .sidebar-quickstart span {
  color: #005b76;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.admin-home-page .sidebar-quickstart strong {
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.admin-home-page .sidebar-cta {
  min-height: 30px;
  margin-top: 5px;
  border-radius: 5px;
  color: #ffffff;
  background: #006f8d;
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
}

.admin-home-page .sidebar-account {
  display: grid;
  gap: 8px;
  padding: 0 8px;
  border: 0;
}

.admin-home-page .sidebar-account .current-user-badge {
  min-height: 26px;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  color: #64748b;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}

.admin-home-page .sidebar-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #334155;
  background: transparent;
  font-size: 11px;
  font-weight: 550;
  text-decoration: none;
  box-shadow: none;
}

.admin-home-page button.sidebar-foot-link {
  width: 100%;
  justify-content: flex-start;
  font-family: inherit;
  cursor: pointer;
}

.admin-home-page .sidebar-foot-link:hover,
.admin-home-page .sidebar-foot-link:focus-visible {
  color: #005b76;
  background: transparent;
}

.admin-home-page .app-topbar.dashboard-titlebar {
  background: #f7f9fb;
}

@media (max-width: 1100px) {
  .admin-home-page.admin-with-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-home-page.admin-with-sidebar .admin-sidebar {
    height: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
  }
}

/* Refine upper sidebar menu: cleaner line icons and lighter selection. */
.admin-home-page .sidebar-nav.sidebar-menu {
  gap: 7px;
  padding: 0 2px;
}

.admin-home-page .sidebar-menu .sidebar-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 9px;
  border-radius: 5px;
  color: #243244;
  font-size: 12px;
  font-weight: 520;
}

.admin-home-page .sidebar-menu .sidebar-link.active {
  color: #1e2b3d;
  background: #cfe0f7;
}

.admin-home-page .sidebar-menu .sidebar-link:hover,
.admin-home-page .sidebar-menu .sidebar-link:focus-visible {
  color: #1e2b3d;
  background: #eef5ff;
}

.admin-home-page .sidebar-menu .sidebar-link .nav-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #3a4758;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-home-page .sidebar-menu .sidebar-link.active .nav-icon {
  color: #526174;
}

/* Larger dashboard sidebar after visual review. */
.admin-home-page.admin-with-sidebar {
  grid-template-columns: 276px minmax(0, 1fr);
}

.admin-home-page.admin-with-sidebar .admin-sidebar {
  padding: 26px 18px 20px 28px;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-home-page .sidebar-nav.sidebar-menu {
  gap: 10px;
}

.admin-home-page .sidebar-menu .sidebar-link {
  min-height: 46px;
  gap: 14px;
  padding: 0 16px 0 14px;
  border-radius: 8px;
  font-size: 15px;
}

.admin-home-page .sidebar-menu .sidebar-link .nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.admin-home-page .sidebar-quickstart {
  margin-right: 8px;
  margin-left: 0;
  padding: 18px 16px;
  border-radius: 10px;
}

.admin-home-page .sidebar-quickstart span {
  font-size: 11px;
}

.admin-home-page .sidebar-quickstart strong,
.admin-home-page .sidebar-cta {
  font-size: 13px;
}

.admin-home-page .sidebar-cta {
  min-height: 36px;
}

.admin-home-page .sidebar-account {
  gap: 10px;
  padding-right: 12px;
}

.admin-home-page .sidebar-foot-link {
  min-height: 32px;
  font-size: 13px;
}

/* Sidebar-era top header: title only, no duplicate navigation. */
.admin-home-page .app-topbar.dashboard-titlebar {
  position: sticky;
  top: 0;
  z-index: 28;
  min-height: 68px;
  margin: 0;
  padding: 13px 36px;
  border: 0;
  border-bottom: 1px solid rgba(224, 227, 229, 0.72);
  border-radius: 0;
  background: rgba(247, 249, 251, 0.94);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand {
  gap: 0;
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand img {
  display: none;
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand > div {
  display: grid;
  gap: 4px;
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand .eyebrow,
.admin-home-page .app-topbar.dashboard-titlebar .app-brand-kicker {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
}

.admin-home-page .app-topbar.dashboard-titlebar .app-brand p:not(.eyebrow) {
  display: none;
}

/* Apply the same shell spacing to sidebar-backed library and knowledge pages. */
.has-unified-sidebar .admin-home-page .topbar-page-actions {
  margin-left: auto;
}

.has-unified-sidebar .admin-home-page .admin-content,
.has-unified-sidebar .admin-home-page .admin-content *,
.has-unified-sidebar .admin-home-page .admin-content *::before,
.has-unified-sidebar .admin-home-page .admin-content *::after {
  box-sizing: border-box;
}

.has-unified-sidebar .admin-home-page .admin-content > .knowledge-layout {
  width: auto;
  max-width: none;
  margin: 24px 32px 48px;
}

.has-unified-sidebar .admin-home-page .admin-content > .catalog-summary,
.has-unified-sidebar .admin-home-page .admin-content > .catalog-platform-priority,
.has-unified-sidebar .admin-home-page .admin-content > .catalog-layout {
  margin-right: 32px;
  margin-left: 32px;
}

.has-unified-sidebar .admin-home-page .admin-content > .catalog-summary {
  margin-top: 24px;
}

.has-unified-sidebar .admin-home-page .admin-content > .marketing-shell {
  width: auto;
  margin: 24px 32px 48px;
}

.has-unified-sidebar .admin-home-page .knowledge-side {
  top: 92px;
}

.has-unified-sidebar .admin-home-page .knowledge-layout,
.has-unified-sidebar .admin-home-page .knowledge-main,
.has-unified-sidebar .admin-home-page .knowledge-hero,
.has-unified-sidebar .admin-home-page .knowledge-card,
.has-unified-sidebar .admin-home-page .faq-card {
  min-width: 0;
}

.has-unified-sidebar .admin-home-page .knowledge-hero,
.has-unified-sidebar .admin-home-page .knowledge-card,
.has-unified-sidebar .admin-home-page .faq-card {
  width: 100%;
}

.has-unified-sidebar .admin-home-page .floorplan-toolbar-head,
.has-unified-sidebar .admin-home-page .floorplan-actions {
  align-items: stretch;
  flex-direction: column;
}

.has-unified-sidebar .admin-home-page .floorplan-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .has-unified-sidebar .admin-home-page .admin-content > .knowledge-layout,
  .has-unified-sidebar .admin-home-page .admin-content > .marketing-shell,
  .has-unified-sidebar .admin-home-page .admin-content > .catalog-summary,
  .has-unified-sidebar .admin-home-page .admin-content > .catalog-platform-priority,
  .has-unified-sidebar .admin-home-page .admin-content > .catalog-layout {
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (max-width: 760px) {
  .admin-home-page.admin-with-sidebar {
    overflow-x: hidden;
  }

  .admin-home-page .home-entry-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-home-page .module-action {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .has-unified-sidebar .admin-home-page .admin-content > .catalog-summary,
  .has-unified-sidebar .admin-home-page .admin-content > .catalog-platform-priority,
  .has-unified-sidebar .admin-home-page .admin-content > .catalog-layout,
  .has-unified-sidebar .admin-home-page .admin-content > .knowledge-layout,
  .has-unified-sidebar .admin-home-page .admin-content > .marketing-shell {
    margin-right: 10px;
    margin-left: 10px;
  }
}

/* Membership locks keep unavailable modules visible, but clearly blocked. */
.is-membership-locked {
  position: relative;
}

a.is-membership-locked,
button.is-membership-locked {
  cursor: not-allowed;
}

.admin-home-page .sidebar-link.is-membership-locked {
  color: #667085;
  background: #f7f9fc;
}

.admin-home-page .sidebar-link.is-membership-locked:hover,
.admin-home-page .sidebar-link.is-membership-locked:focus-visible {
  color: #344054;
  background: #f1f5fb;
}

.membership-lock-pill {
  min-width: 34px;
  margin-left: auto;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  padding: 2px 7px;
  color: #004ac6;
  background: #eef5ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.membership-lock-layer {
  position: absolute;
  inset: 10px;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid rgba(0, 74, 198, 0.16);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #1d2939;
  background: rgba(248, 251, 255, 0.88);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.membership-lock-layer strong {
  font-size: 17px;
}

.membership-lock-layer small {
  max-width: 320px;
  color: #667085;
  line-height: 1.55;
}

.membership-lock-badge {
  width: fit-content;
  justify-self: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: #004ac6;
  font-size: 12px;
  font-weight: 850;
}

.home-entry-card.is-membership-locked,
.dashboard-live-panel.is-membership-locked {
  overflow: hidden;
}

.home-entry-card.is-membership-locked > :not(.membership-lock-layer),
.dashboard-live-panel.is-membership-locked > :not(.membership-lock-layer) {
  filter: grayscale(0.18);
  opacity: 0.42;
}

.primary-button.is-membership-locked,
.ghost-button.is-membership-locked,
.project-actions .is-membership-locked,
.live-card-actions .is-membership-locked {
  border-color: #d6e4ff !important;
  color: #667085 !important;
  background: #f4f7fb !important;
  box-shadow: none !important;
}

.primary-button.is-membership-locked::after,
.ghost-button.is-membership-locked::after {
  content: attr(data-lock-plan);
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #004ac6;
  background: #e7f0ff;
  font-size: 11px;
  font-weight: 850;
}

.payment-panel[hidden] {
  display: none !important;
}
