body[data-page="login"] {
  display: block;
}

/* Glassmorphism v2 refinement */
:root {
  --ws-font-title: 28px;
  --ws-font-section: 18px;
  --ws-font-body: 14px;
  --ws-font-button: 13px;
  --ws-font-meta: 12px;
  --ws-font-small: 12px;

  --glass-bg-main: #eef2f7;
  --glass-bg-soft: #f3f5f9;
  --glass-bg-blue: #edf3ff;
  --glass-text-main: #1f2a37;
  --glass-text-soft: #6b7280;
  --glass-klein: #2d5bff;
  --glass-klein-deep: #163dcc;
  --glass-klein-soft: rgba(45, 91, 255, 0.12);
  --glass-cyan-deep: #173c5f;
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-border-soft: rgba(166, 183, 214, 0.28);
  --glass-card: rgba(255, 255, 255, 0.22);
  --glass-card-strong: rgba(255, 255, 255, 0.3);
  --glass-shadow-lg: 0 24px 64px rgba(25, 40, 79, 0.14);
  --glass-shadow-md: 0 18px 42px rgba(33, 49, 88, 0.1);
  --glass-shadow-sm: 0 10px 24px rgba(38, 53, 91, 0.08);
  --glass-radius-xl: 32px;
  --glass-radius-lg: 24px;
  --glass-radius-md: 18px;
}

body[data-page="workspace"],
body[data-page="login"] {
  color: var(--glass-text-main);
  background:
    radial-gradient(circle at top left, rgba(45, 91, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(79, 125, 255, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(24, 76, 170, 0.1), transparent 28%),
    linear-gradient(145deg, var(--glass-bg-main), var(--glass-bg-soft) 48%, #f7f9fc 100%);
}

.workspace-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    transparent;
}

.workspace-primary,
.workspace-secondary,
.workspace-tabs-panel,
.workspace-content.panel,
.workspace-content .panel,
.panel {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-md);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.workspace-primary {
  background:
    linear-gradient(180deg, rgba(19, 33, 63, 0.82), rgba(20, 36, 68, 0.68)),
    rgba(17, 29, 56, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 18px 0 48px rgba(18, 27, 53, 0.14);
}

.workspace-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.16);
}

.workspace-main {
  position: relative;
  overflow: hidden;
}

.workspace-main > * {
  position: relative;
  z-index: 1;
}

.workspace-main::before {
  content: "";
  position: absolute;
  inset: 18px 18px 18px 0;
  border-radius: 28px;
  background-image:
    radial-gradient(circle at center, rgba(45, 91, 255, 0.09), transparent 58%),
    url("/static/web/background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 38% auto;
  background-position: center center, center center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.workspace-primary-item {
  min-height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-primary-item:hover,
.workspace-primary-item.active {
  background: linear-gradient(180deg, rgba(45, 91, 255, 0.42), rgba(45, 91, 255, 0.24));
  border-color: rgba(152, 182, 255, 0.26);
  box-shadow:
    0 14px 30px rgba(20, 52, 155, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.workspace-primary-label {
  color: rgba(247, 250, 255, 0.92);
  letter-spacing: 0.01em;
}

.workspace-secondary-head h2,
.workspace-content .panel-head h3,
.project-hero-block > div:first-child h2,
.login-stage-copy h1,
.login-card-head h2 {
  color: var(--glass-text-main);
  letter-spacing: -0.03em;
}

.workspace-secondary-head .muted,
.workspace-content .muted,
.login-stage-copy p,
.login-help,
.login-card-head .muted {
  color: var(--glass-text-soft);
}

.workspace-view-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workspace-view-item.active {
  background: linear-gradient(180deg, rgba(45, 91, 255, 0.14), rgba(45, 91, 255, 0.08));
  border-color: rgba(45, 91, 255, 0.2);
}

.workspace-tabs-panel {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 22px;
}

.workspace-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 6px 18px rgba(31, 46, 79, 0.06);
}

.workspace-tab:not(.active) {
  color: rgba(31, 42, 55, 0.72);
}

.workspace-tab.active {
  background: linear-gradient(135deg, rgba(45, 91, 255, 0.92), rgba(22, 61, 204, 0.84));
  border-color: rgba(140, 170, 255, 0.42);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(34, 72, 198, 0.26);
}

.workspace-tab-close {
  background: rgba(255, 255, 255, 0.34);
}

.workspace-tab.active .workspace-tab-close {
  background: rgba(255, 255, 255, 0.16);
}

.workspace-content .panel,
.panel,
.detail-item,
.metric-pill,
.node-focus-card,
.project-summary-card,
.workspace-data-table tbody tr {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workspace-content .panel,
.panel {
  border-radius: var(--glass-radius-lg);
}

.workspace-content .outline-btn,
.workspace-content .ghost-btn,
.workspace-content .primary-btn,
.workspace-content .warn-btn,
.login-dialog-card .outline-btn,
.login-dialog-card .ghost-btn,
.login-dialog-card .primary-btn,
.login-dialog-card .warn-btn {
  min-height: 40px;
  border-radius: 999px;
  font-size: var(--ws-font-button);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.primary-btn {
  background: linear-gradient(135deg, var(--glass-klein), var(--glass-klein-deep));
  border: 1px solid rgba(125, 158, 255, 0.34);
  box-shadow: 0 12px 26px rgba(33, 75, 219, 0.22);
}

.outline-btn,
.ghost-btn {
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--glass-text-main);
}

.warn-btn {
  background: rgba(255, 255, 255, 0.24);
  color: #a44d3b;
  border: 1px solid rgba(220, 146, 126, 0.22);
}

.workspace-content input,
.workspace-content select,
.workspace-content textarea,
.login-dialog-card input,
.login-dialog-card select,
.login-dialog-card textarea {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 4px 12px rgba(32, 45, 79, 0.04);
  color: var(--glass-text-main);
}

.workspace-content input:focus,
.workspace-content select:focus,
.workspace-content textarea:focus,
.login-dialog-card input:focus,
.login-dialog-card select:focus,
.login-dialog-card textarea:focus {
  border-color: rgba(45, 91, 255, 0.28);
  box-shadow:
    0 0 0 4px rgba(45, 91, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workspace-data-table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.workspace-data-table thead th {
  font-size: var(--ws-font-small);
  font-weight: 600;
  color: rgba(31, 42, 55, 0.66);
  background: transparent;
  border-bottom: 0;
  padding-bottom: 6px;
}

.workspace-data-table tbody tr {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--glass-shadow-sm);
}

.workspace-data-table td {
  background: transparent;
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

.workspace-data-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.workspace-data-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.table-status-badge,
.session-badge {
  background: rgba(45, 91, 255, 0.12);
  border: 1px solid rgba(45, 91, 255, 0.14);
  color: var(--glass-cyan-deep);
}

.list-item,
.compact-row-item,
.workspace-content .list-item {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  box-shadow: var(--glass-shadow-sm);
}

.dashboard-scroll-panel .panel-head,
.customer-list-panel .panel-head {
  background: rgba(255, 255, 255, 0.06);
}

.login-immersive {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
}

.login-stage {
  position: relative;
  width: min(1220px, 100%);
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.login-stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
}

.login-stage-glow-a {
  inset: 8% auto auto 4%;
  width: 380px;
  height: 380px;
  background: rgba(45, 91, 255, 0.22);
}

.login-stage-glow-b {
  inset: auto 2% 8% auto;
  width: 420px;
  height: 420px;
  background: rgba(24, 90, 173, 0.14);
}

.login-stage-shell {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: 72px 56px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(28, 46, 88, 0.16);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.login-brand-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.login-brand-halo,
.login-brand-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.login-brand-halo {
  background: radial-gradient(circle, rgba(45, 91, 255, 0.24), rgba(45, 91, 255, 0.02) 68%);
  filter: blur(2px);
}

.login-brand-ring {
  inset: 14px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 20px 40px rgba(26, 48, 99, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-stage-logo {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  object-fit: contain;
  object-position: center;
}

.login-stage-kicker,
.login-dialog-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 61, 204, 0.72);
}

.login-stage-copy {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.login-stage-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
}

.login-stage-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.login-stage-actions {
  display: flex;
  justify-content: center;
}

.login-stage-enter {
  min-width: 180px;
  min-height: 46px;
}

.login-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 20, 40, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-dialog-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.2);
  box-shadow: 0 34px 80px rgba(22, 39, 76, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: grid;
  gap: 18px;
}

.login-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.28);
  color: var(--glass-text-main);
  font-size: 18px;
  line-height: 1;
}

.login-dialog-card .stack-form {
  gap: 14px;
}

.login-dialog-card label {
  display: grid;
  gap: 7px;
}

.login-inline-error {
  margin-top: 4px;
}

.login-help {
  margin: 0;
  font-size: var(--ws-font-meta);
}

body.login-dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .login-immersive {
    padding: 18px;
  }

  .login-stage {
    min-height: calc(100vh - 36px);
  }

  .login-stage-shell {
    padding: 48px 24px;
    gap: 18px;
  }

  .login-brand-trigger {
    width: 148px;
    height: 148px;
  }

  .login-stage-logo {
    width: 92px;
    height: 92px;
  }

  .workspace-main::before {
    background-size: 100% 100%, 56% auto;
  }
}

:root {
  --ws-font-title: 26px;
  --ws-font-section: 18px;
  --ws-font-body: 14px;
  --ws-font-button: 13px;
  --ws-font-meta: 12px;
  --ws-font-small: 12px;
  --ws-line-compact: 1.35;
  --ws-radius-button: 12px;
  --ws-border-soft: rgba(35, 79, 88, 0.1);
  --ws-muted: rgba(82, 90, 95, 0.82);
}

.sidebar a.nav-item {
  display: block;
  text-decoration: none;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 96px 248px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(247, 242, 233, 0.84), rgba(252, 249, 244, 0.96));
}

.workspace-primary {
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, rgba(28, 45, 50, 0.96), rgba(37, 57, 62, 0.94));
  color: #f7f0e6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-brand {
  min-height: 52px;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.workspace-brand-copy {
  display: none;
}

.workspace-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.workspace-primary-nav {
  display: grid;
  gap: 10px;
}

.workspace-primary-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  text-align: center;
  font-size: var(--ws-font-button);
  line-height: var(--ws-line-compact);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.workspace-primary-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: var(--ws-font-meta);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.workspace-primary-label-single {
  white-space: nowrap;
}

.workspace-primary-item:hover,
.workspace-primary-item.active {
  background: rgba(241, 194, 130, 0.2);
  color: #fff9ef;
  transform: translateY(-1px);
}

.workspace-primary-item.active {
  box-shadow: inset 0 0 0 1px rgba(241, 194, 130, 0.24);
}

.workspace-primary-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-primary-foot .session-badge,
.workspace-primary-foot .ghost-btn {
  display: flex;
  width: 100%;
  min-height: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: var(--ws-font-meta);
  font-weight: 600;
  line-height: var(--ws-line-compact);
  letter-spacing: 0.02em;
  border-radius: 14px;
}

.workspace-primary-foot .session-badge {
  padding: 8px 10px;
}

.workspace-primary-foot .ghost-btn {
  padding: 0;
}

.workspace-primary-foot .ghost-btn .workspace-primary-label {
  padding: 8px 10px;
}

.workspace-secondary {
  padding: 28px 18px;
  background: rgba(255, 252, 247, 0.78);
  border-right: 1px solid rgba(35, 79, 88, 0.08);
  display: grid;
  align-content: start;
  gap: 18px;
}

.workspace-secondary-head {
  display: grid;
  gap: 6px;
}

.workspace-secondary-head h2 {
  margin: 0;
  font-size: var(--ws-font-title);
}

.workspace-eyebrow {
  margin: 0;
  font-size: var(--ws-font-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.workspace-view-list {
  display: grid;
  gap: 8px;
}

.workspace-view-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(35, 79, 88, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.workspace-view-item:hover,
.workspace-view-item.active {
  background: rgba(35, 79, 88, 0.08);
  border-color: rgba(35, 79, 88, 0.2);
  transform: translateX(2px);
}

.workspace-view-item.active {
  box-shadow: inset 0 0 0 1px rgba(35, 79, 88, 0.08);
}

.workspace-main {
  position: relative;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  isolation: isolate;
}

.workspace-main::before {
  content: "";
  position: absolute;
  inset: 24px;
  background-image: url("/static/web/background.jpg");
  background-repeat: no-repeat;
  background-size: 35% auto;
  background-position: center center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.workspace-main > * {
  position: relative;
  z-index: 1;
}

.workspace-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 18px;
  min-height: 0;
}

.workspace-tabs-panel {
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(35, 79, 88, 0.12);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: inset 0 -1px 0 rgba(35, 79, 88, 0.04);
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(35, 79, 88, 0.08);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.workspace-tab.active {
  background: rgba(255, 252, 246, 0.98);
  border-color: rgba(35, 79, 88, 0.24);
  box-shadow: 0 8px 16px rgba(72, 59, 43, 0.07);
  transform: translateY(-1px);
}

.workspace-tab.is-detail {
  color: rgba(35, 44, 49, 0.88);
}

.workspace-tab:not(.active) {
  color: rgba(35, 44, 49, 0.64);
}

.workspace-tab:hover {
  border-color: rgba(35, 79, 88, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.workspace-tab-label {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-close {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(35, 79, 88, 0.08);
  font-size: 11px;
  color: rgba(35, 44, 49, 0.8);
}

.workspace-tab-close:hover {
  background: rgba(194, 109, 62, 0.18);
}

.workspace-content {
  min-height: 0;
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(35, 79, 88, 0.1);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 10px 24px rgba(72, 59, 43, 0.04);
}

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

.workspace-view-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.workspace-view-head h2 {
  margin: 0;
  font-size: var(--ws-font-title);
}

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

.page-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0;
}

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

.compact-stats .stat-card {
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(72, 59, 43, 0.08);
}

.compact-stats .stat-card .label {
  display: block;
  font-size: var(--ws-font-small);
  color: var(--muted);
}

.compact-stats .stat-card .value {
  display: block;
  margin-top: 6px;
  font-size: var(--ws-font-title);
  line-height: 1.1;
  color: var(--brand);
}

.compact-stats .stat-card .help {
  display: block;
  margin-top: 4px;
  font-size: var(--ws-font-small);
  color: var(--muted);
}

.meta-line {
  margin-top: 10px;
  min-height: 2.8em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.subnav a {
  text-decoration: none;
}

.customer-related-head {
  margin-top: 18px;
}

.panel-tip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(35, 79, 88, 0.07);
  border: 1px solid rgba(35, 79, 88, 0.1);
  color: var(--muted);
  font-size: var(--ws-font-small);
}

.inline-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

.list-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-card-actions button {
  padding: 8px 10px;
  border-radius: 12px;
}

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

.project-action-panel {
  align-self: start;
}

.node-focus-card {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(35, 79, 88, 0.14);
  background:
    radial-gradient(circle at top right, rgba(194, 109, 62, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(248, 242, 232, 0.96));
}

.node-focus-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.node-focus-header h4 {
  margin: 6px 0 0;
  font-size: 22px;
}

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

.meta-item-wide {
  grid-column: 1 / -1;
}

.node-action-groups {
  display: grid;
  gap: 10px;
}

.node-nav-panel {
  align-self: start;
}

.node-return-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
}

.node-return-row select {
  min-width: 0;
}

.node-full-list {
  display: grid;
  gap: 10px;
}

.workspace-panel {
  position: relative;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

.compact-toolbar {
  grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
}

.filter-advanced {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(35, 79, 88, 0.16);
}

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

.inline-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 79, 88, 0.12);
  background: rgba(255, 252, 247, 0.96);
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.customer-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 10px 12px;
}

.customer-info-strip span {
  white-space: nowrap;
}

.customer-info-strip strong {
  margin-right: 6px;
}

.project-list-card {
  display: grid;
  gap: 12px;
}

.project-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-page {
  gap: 16px;
}

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

.dashboard-work-grid.single-column {
  grid-template-columns: 1fr;
}

.dashboard-scroll-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 420px;
  overflow: hidden;
}

.dashboard-scroll-panel .panel-head {
  margin-bottom: 0;
  padding-bottom: 10px;
  background: rgba(255, 253, 249, 0.96);
}

.dashboard-scroll-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-scroll-list::-webkit-scrollbar,
.quick-row-inline::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dashboard-scroll-list::-webkit-scrollbar-thumb,
.quick-row-inline::-webkit-scrollbar-thumb {
  background: rgba(35, 79, 88, 0.16);
  border-radius: 999px;
}

.dashboard-scroll-list::-webkit-scrollbar-track,
.quick-row-inline::-webkit-scrollbar-track {
  background: transparent;
}

.compact-list {
  gap: 8px;
}

.compact-list .empty-state {
  padding: 18px 16px;
  border-radius: 16px;
  font-size: 13px;
}

.inline-empty {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(35, 79, 88, 0.18);
  background: rgba(35, 79, 88, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.compact-row-item {
  padding: 12px 14px;
  border-radius: 16px;
}

.compact-row-item .row-primary {
  margin-bottom: 6px;
}

.compact-row-item .row-title-group {
  display: grid;
  gap: 4px;
}

.compact-row-item .row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
}

.compact-row-item .row-actions {
  gap: 8px;
}

.compact-row-item .outline-btn,
.compact-row-item .ghost-btn,
.compact-row-item .primary-btn {
  padding: 8px 10px;
  border-radius: 12px;
}

.customer-row-list .list-item-head,
.project-table-list .list-item-head {
  align-items: center;
}

.customer-split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.customer-list-column {
  display: grid;
  gap: 16px;
}

.customer-list-panel,
.customer-preview-panel {
  min-height: 0;
}

.customer-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 580px;
  overflow: hidden;
}

.customer-list-panel .panel-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.customer-row-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.customer-row-list::-webkit-scrollbar {
  width: 6px;
}

.customer-row-list::-webkit-scrollbar-thumb {
  background: rgba(35, 79, 88, 0.16);
  border-radius: 999px;
}

.customer-row-list::-webkit-scrollbar-track {
  background: transparent;
}

.customer-preview-panel .panel-head,
.customer-list-panel .panel-head {
  margin-bottom: 10px;
}

.customer-row-list .customer-row-item {
  padding: 10px 12px;
}

.customer-row-item.is-current {
  border-color: rgba(35, 79, 88, 0.22);
  background: rgba(35, 79, 88, 0.06);
}

.slim-empty {
  padding: 18px 16px;
}

.customer-preview-empty {
  margin-top: 6px;
}

.preview-head {
  display: grid;
  gap: 4px;
}

.preview-head h3 {
  margin: 0;
  font-size: var(--ws-font-section);
}

.preview-head p {
  margin: 0;
}

.customer-preview-stack {
  gap: 14px;
}

.compact-detail-grid .detail-item {
  padding: 10px 12px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(35, 79, 88, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.metric-pill span {
  font-size: var(--ws-font-small);
  color: var(--muted);
}

.metric-pill strong {
  font-size: var(--ws-font-body);
  color: var(--text);
}

.customer-preview-actions {
  gap: 8px;
}

.customer-preview-panel .panel-head {
  margin-bottom: 8px;
}

.customer-preview-panel .detail-grid {
  gap: 10px;
}

.customer-preview-panel .list-item {
  padding: 10px 12px;
}

.customer-row-item .row-meta {
  gap: 8px 12px;
  margin-bottom: 6px;
}

.customer-row-item .row-actions {
  gap: 6px;
}

.customer-row-item .outline-btn,
.customer-row-item .ghost-btn {
  padding: 7px 10px;
}

.dashboard-identity-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(35, 79, 88, 0.07);
  font-size: var(--ws-font-small);
}

.quick-row-inline {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
}

.dashboard-scroll-list .compact-row-item {
  padding: 8px 10px;
  border-radius: 12px;
}

.dashboard-scroll-list .compact-row-item .row-primary,
.dashboard-scroll-list .compact-row-item .list-item-head {
  margin-bottom: 4px;
}

.dashboard-scroll-list .muted {
  font-size: var(--ws-font-small);
}

.dashboard-scroll-list .list-item-head strong {
  font-size: var(--ws-font-body);
}

.dashboard-scroll-list .action-row {
  gap: 6px;
  margin-top: 4px;
}

.dashboard-scroll-list .outline-btn,
.dashboard-scroll-list .ghost-btn,
.dashboard-scroll-list .primary-btn {
  padding: 6px 9px;
  border-radius: 10px;
}

#dashboardQuickActions .outline-btn,
#dashboardQuickActions .ghost-btn,
#dashboardQuickActions .primary-btn {
  padding: 6px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

#dashboardQuickSection .panel-head {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(35, 79, 88, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.table-wrap.is-empty {
  overflow: hidden;
}

.workspace-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.workspace-data-table th,
.workspace-data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(35, 79, 88, 0.08);
  vertical-align: middle;
}

.workspace-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 243, 236, 0.96);
  color: var(--muted);
  font-size: var(--ws-font-small);
  font-weight: 700;
}

.workspace-data-table tbody tr:hover {
  background: rgba(35, 79, 88, 0.04);
}

.workspace-data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-primary-cell {
  display: grid;
  gap: 4px;
}

.table-primary-cell strong {
  font-size: var(--ws-font-body);
}

.table-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35, 79, 88, 0.08);
  color: var(--text);
  font-size: var(--ws-font-small);
  font-weight: 600;
}

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

.table-actions .outline-btn {
  white-space: nowrap;
}

.workspace-content .panel {
  border-radius: 16px;
  border-color: var(--ws-border-soft);
  box-shadow: 0 8px 20px rgba(72, 59, 43, 0.04);
}

.workspace-content .panel-head h3 {
  font-size: var(--ws-font-section);
}

.workspace-content .panel .muted,
.workspace-content .muted {
  color: var(--ws-muted);
}

.workspace-content .outline-btn,
.workspace-content .ghost-btn,
.workspace-content .primary-btn,
.workspace-content .warn-btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--ws-radius-button);
  font-size: var(--ws-font-button);
}

.admin-workspace-section {
  display: grid;
}

.project-filter-grid {
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 1fr)) auto;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 33, 0.28);
}

.drawer-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: #fffaf4;
  border-left: 1px solid rgba(35, 79, 88, 0.14);
  box-shadow: -20px 0 40px rgba(17, 27, 33, 0.12);
}

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

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

.drawer-actions {
  margin-top: 8px;
  justify-content: flex-end;
}

.project-detail-page {
  gap: 14px;
}

.project-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.detail-hero-panel {
  padding: 0;
}

.detail-hero-panel .detail-hero {
  margin-bottom: 0;
  padding: 16px;
}

.project-hero-block {
  display: grid;
  gap: 10px;
}

.project-hero-block > div:first-child .muted {
  margin: 0;
  font-size: 12px;
}

.project-hero-block > div:first-child h2 {
  margin-bottom: 4px;
  font-size: var(--ws-font-title);
}

.project-detail-page .subnav {
  margin-bottom: 6px;
  gap: 8px;
}

.project-detail-page .subnav .outline-btn,
.project-detail-page .subnav .ghost-btn {
  padding: 7px 10px;
}

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

.current-node-panel {
  align-self: start;
  padding: 16px;
}

.current-node-panel .panel-head {
  margin-bottom: 10px;
}

.current-node-panel .panel-head h3 {
  font-size: 19px;
}

.current-node-panel .panel-head .muted {
  display: block;
  margin-top: 4px;
}

.current-node-panel .compact-toolbar {
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto);
  gap: 8px;
  margin-bottom: 10px;
}

.current-node-panel .node-focus-card {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 16px;
}

.current-node-panel .node-focus-header {
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.current-node-panel .node-focus-header h4 {
  margin: 0;
  font-size: 18px;
}

.current-node-panel .node-focus-grid {
  gap: 8px;
}

.current-node-panel .stack-form {
  gap: 10px;
}

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

.current-node-panel .stack-form label {
  gap: 6px;
}

.current-node-panel textarea,
.current-node-panel select {
  padding: 10px 12px;
}

.current-node-panel textarea {
  min-height: 68px;
}

.current-node-panel .node-action-groups {
  gap: 8px;
}

.current-node-panel .action-row {
  gap: 8px;
}

.current-node-panel .outline-btn,
.current-node-panel .primary-btn,
.current-node-panel .ghost-btn,
.current-node-panel .warn-btn {
  padding: 10px 12px;
}

.current-node-panel .node-return-row {
  grid-template-columns: auto minmax(160px, 220px);
  gap: 8px;
}

.current-node-panel .node-return-row select {
  width: 100%;
  max-width: 220px;
}

.current-node-panel .panel-tip {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
}

.current-node-panel #nodeActionButtons.hidden + .panel-tip,
.current-node-panel .panel-tip {
  margin-top: 0;
}

.project-tabs-panel {
  padding: 14px 16px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1px solid rgba(35, 79, 88, 0.12);
  background: rgba(255, 252, 247, 0.96);
  color: var(--brand);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(35, 79, 88, 0.12), rgba(194, 109, 62, 0.14));
  border-color: rgba(35, 79, 88, 0.22);
}

.project-tab-panel {
  display: grid;
  gap: 18px;
}

.topbar-actions .notification-link {
  text-decoration: none;
}

.login-standalone {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  align-items: center;
}

.login-layout {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.login-layout-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-brand-panel,
.login-card-minimal {
  min-height: 560px;
}

.login-brand-panel {
  border-radius: 28px;
  border: 1px solid rgba(35, 79, 88, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.94), rgba(244, 239, 231, 0.96));
  box-shadow: 0 18px 40px rgba(72, 59, 43, 0.08);
  padding: 24px;
  display: grid;
}

.login-brand-media {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 79, 88, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.login-brand-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.login-card-minimal {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 40px;
}

.login-card-head {
  display: grid;
  gap: 8px;
}

.login-card-head h1 {
  margin: 0;
  font-size: var(--ws-font-title);
}

.login-card-minimal .stack-form {
  gap: 14px;
}

.login-inline-error {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(194, 109, 62, 0.18);
  background: rgba(194, 109, 62, 0.08);
  color: #9a4b29;
  font-size: var(--ws-font-small);
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 6px;
}

.login-card-minimal .primary-btn {
  width: 100%;
}

.login-help {
  margin: 0;
  font-size: var(--ws-font-button);
}

.login-points {
  display: grid;
  gap: 12px;
}

.login-point {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.login-point strong {
  font-size: var(--ws-font-body);
}

.login-point span {
  color: rgba(248, 239, 227, 0.82);
  font-size: var(--ws-font-button);
  line-height: 1.6;
}

.login-side-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 79, 88, 0.12);
  background: rgba(35, 79, 88, 0.06);
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: var(--ws-font-button);
}

.login-card code,
.login-side-note code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(35, 79, 88, 0.1);
  color: var(--brand);
  font-family: Consolas, "Courier New", monospace;
  font-size: var(--ws-font-small);
}

button:disabled,
.outline-btn:disabled,
.primary-btn:disabled,
.ghost-btn:disabled,
.warn-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

/* Glassmorphism refresh */
:root {
  --glass-bg-main: #f3f6fb;
  --glass-bg-soft: #eef3ff;
  --glass-bg-warm: #fbfcff;
  --glass-klein: #2753ff;
  --glass-klein-deep: #1838c7;
  --glass-cyan-deep: #173d63;
  --glass-text-main: #172338;
  --glass-text-soft: rgba(32, 50, 76, 0.72);
  --glass-card: rgba(255, 255, 255, 0.44);
  --glass-card-strong: rgba(255, 255, 255, 0.58);
  --glass-card-dark: rgba(20, 35, 64, 0.42);
  --glass-border: rgba(255, 255, 255, 0.52);
  --glass-border-soft: rgba(122, 146, 186, 0.22);
  --glass-shadow-lg: 0 24px 60px rgba(27, 45, 83, 0.12);
  --glass-shadow-md: 0 14px 36px rgba(28, 46, 88, 0.1);
  --glass-shadow-sm: 0 8px 20px rgba(28, 46, 88, 0.08);
  --glass-blur: blur(22px);
  --glass-radius-xl: 28px;
  --glass-radius-lg: 22px;
  --glass-radius-md: 18px;
  --glass-radius-sm: 14px;
  --ws-font-title: 28px;
  --ws-font-section: 18px;
  --ws-font-body: 14px;
  --ws-font-button: 13px;
  --ws-font-meta: 12px;
  --ws-font-small: 12px;
  --ws-line-compact: 1.35;
}

body[data-page="workspace"],
body[data-page="login"] {
  min-height: 100vh;
  color: var(--glass-text-main);
  background:
    radial-gradient(circle at top left, rgba(105, 138, 255, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(46, 92, 255, 0.14), transparent 28%),
    linear-gradient(180deg, var(--glass-bg-soft) 0%, var(--glass-bg-main) 48%, var(--glass-bg-warm) 100%);
}

.workspace-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(236, 241, 252, 0.72), rgba(248, 250, 255, 0.86));
}

.workspace-primary {
  background:
    linear-gradient(180deg, rgba(15, 32, 63, 0.72), rgba(18, 43, 76, 0.58));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.workspace-brand {
  border-radius: var(--glass-radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.workspace-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14));
}

.workspace-primary-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-primary-item:hover,
.workspace-primary-item.active {
  background: linear-gradient(180deg, rgba(39, 83, 255, 0.4), rgba(39, 83, 255, 0.26));
  border-color: rgba(132, 164, 255, 0.28);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(25, 57, 171, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.workspace-primary-item.active {
  box-shadow:
    0 12px 28px rgba(25, 57, 171, 0.24),
    inset 0 0 0 1px rgba(196, 212, 255, 0.2);
}

.workspace-primary-label {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.workspace-primary-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-primary-foot .session-badge,
.workspace-primary-foot .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f7fbff;
}

.workspace-secondary {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.34);
}

.workspace-eyebrow,
.workspace-content .panel .muted,
.workspace-content .muted,
.muted,
.workspace-view-head p,
.workspace-secondary-head .muted {
  color: var(--glass-text-soft);
}

.workspace-view-item {
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow-sm);
}

.workspace-view-item:hover,
.workspace-view-item.active {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(39, 83, 255, 0.18);
}

.workspace-main {
  gap: 16px;
}

.workspace-main::before {
  background-image:
    radial-gradient(circle at center, rgba(80, 119, 255, 0.1), transparent 56%),
    url("/static/web/background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 35% auto;
  background-position: center center, center center;
  opacity: 0.11;
}

.workspace-topbar {
  padding: 2px 2px 0;
}

.workspace-tabs-panel,
.workspace-content.panel,
.workspace-content .panel,
.panel {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.workspace-tabs-panel {
  border-radius: var(--glass-radius-lg);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--glass-shadow-sm);
}

.workspace-tabs {
  gap: 10px;
}

.workspace-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 20px rgba(26, 46, 94, 0.07);
}

.workspace-tab.active {
  background: linear-gradient(180deg, rgba(39, 83, 255, 0.88), rgba(31, 72, 234, 0.78));
  border-color: rgba(112, 149, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(32, 65, 190, 0.22);
}

.workspace-tab:not(.active) {
  color: rgba(23, 35, 56, 0.76);
}

.workspace-tab-close {
  background: rgba(255, 255, 255, 0.36);
}

.workspace-tab.active .workspace-tab-close {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.user-pill,
.panel-tip,
.metric-pill,
.detail-item,
.node-focus-card,
.stat-card,
.inline-menu,
.drawer-sheet,
.table-wrap {
  background: var(--glass-card-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workspace-content .panel,
.panel,
.detail-hero-panel,
.current-node-panel,
.customer-preview-panel,
.customer-list-panel,
.workspace-panel {
  border-radius: var(--glass-radius-lg);
}

.workspace-content .outline-btn,
.workspace-content .ghost-btn,
.workspace-content .primary-btn,
.workspace-content .warn-btn,
.login-card .outline-btn,
.login-card .ghost-btn,
.login-card .primary-btn,
.login-card .warn-btn {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: var(--ws-font-button);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(24, 42, 81, 0.08);
}

.primary-btn {
  background: linear-gradient(135deg, var(--glass-klein), var(--glass-klein-deep));
  color: #ffffff;
  border-color: rgba(111, 144, 255, 0.48);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2d5cff, #2149dd);
}

.outline-btn,
.ghost-btn {
  background: rgba(255, 255, 255, 0.42);
  color: var(--glass-text-main);
  border-color: rgba(162, 183, 222, 0.3);
}

.outline-btn:hover,
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.warn-btn {
  background: rgba(255, 255, 255, 0.44);
  color: #a34736;
  border-color: rgba(224, 155, 136, 0.32);
}

.workspace-content input,
.workspace-content select,
.workspace-content textarea,
.login-card input,
.login-card select,
.login-card textarea {
  border-radius: 18px;
  border: 1px solid rgba(167, 185, 219, 0.28);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--glass-text-main);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.workspace-content input::placeholder,
.workspace-content textarea::placeholder,
.login-card input::placeholder,
.login-card textarea::placeholder {
  color: rgba(58, 76, 108, 0.46);
}

.workspace-content input:focus,
.workspace-content select:focus,
.workspace-content textarea:focus,
.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus {
  border-color: rgba(39, 83, 255, 0.32);
  box-shadow:
    0 0 0 4px rgba(39, 83, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.workspace-data-table {
  background: transparent;
  min-width: 920px;
}

.workspace-data-table th {
  background: rgba(255, 255, 255, 0.34);
  color: rgba(34, 48, 78, 0.7);
  border-bottom: 1px solid rgba(157, 176, 210, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.workspace-data-table td {
  border-bottom: 1px solid rgba(163, 180, 212, 0.16);
}

.workspace-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.26);
}

.table-status-badge,
.session-badge {
  border-radius: 999px;
  background: rgba(39, 83, 255, 0.12);
  border: 1px solid rgba(39, 83, 255, 0.12);
  color: var(--glass-cyan-deep);
}

.list-item,
.compact-row-item,
.workspace-content .list-item {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--glass-radius-md);
  box-shadow: 0 10px 24px rgba(28, 46, 88, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.customer-row-item.is-current {
  border-color: rgba(39, 83, 255, 0.28);
  box-shadow:
    0 14px 34px rgba(32, 65, 190, 0.12),
    inset 0 0 0 1px rgba(39, 83, 255, 0.12);
}

.login-standalone {
  background:
    radial-gradient(circle at top left, rgba(84, 122, 255, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 74, 128, 0.12), transparent 26%);
}

.login-brand-panel,
.login-card-minimal {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 28px 68px rgba(23, 42, 83, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.login-brand-panel {
  background:
    linear-gradient(180deg, rgba(22, 47, 96, 0.62), rgba(31, 67, 122, 0.46));
}

.login-card-minimal {
  background: rgba(255, 255, 255, 0.48);
}

.login-card-head h1,
.workspace-view-head h2,
.workspace-secondary-head h2,
.project-hero-block > div:first-child h2 {
  letter-spacing: -0.02em;
  color: var(--glass-text-main);
}

.workspace-content .panel-head h3,
.preview-head h3,
.current-node-panel .panel-head h3,
.project-detail-page h4 {
  color: rgba(20, 34, 60, 0.94);
}

@media (max-width: 900px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-primary,
  .workspace-secondary {
    padding: 16px;
  }

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

  .workspace-main {
    padding: 16px;
  }

  .workspace-topbar,
  .workspace-view-head {
    flex-direction: column;
  }

  .workspace-view-toolbar {
    justify-content: stretch;
  }

  .login-standalone {
    padding: 18px;
  }

  .login-layout-balanced {
    grid-template-columns: 1fr;
  }

  .login-brand-panel,
  .login-card-minimal {
    min-height: 0;
  }

  .login-brand-panel {
    padding: 16px;
  }

  .login-brand-media {
    min-height: 220px;
  }

  .login-card-minimal {
    padding: 24px;
  }

  .toolbar-grid,
  .compact-toolbar,
  .advanced-grid,
  .project-top-grid,
  .hero-key-grid,
  .dashboard-work-grid,
  .customer-split-layout,
  .node-inline-form,
  .project-filter-grid,
  .compact-stats {
    grid-template-columns: 1fr;
  }

  .project-list-meta,
  .summary-strip,
  .inline-menu,
  .tab-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .drawer-sheet {
    width: 100%;
    padding: 18px;
  }

  .workspace-data-table {
    min-width: 760px;
  }

  .node-return-row {
    grid-template-columns: 1fr;
  }

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

/* Glassmorphism v3 polish */
:root {
  --ws-font-title: 30px;
  --ws-font-section: 19px;
  --ws-font-body: 14px;
  --ws-font-button: 13px;
  --ws-font-meta: 12px;
  --ws-font-small: 11px;

  --glass-page-0: #eef2f7;
  --glass-page-1: #f3f5f9;
  --glass-page-2: #edf3ff;
  --glass-page-3: #f8faff;
  --glass-text-main: #1f2a37;
  --glass-text-strong: #162033;
  --glass-text-soft: #6b7280;
  --glass-text-faint: rgba(71, 88, 114, 0.72);
  --glass-klein: #2d5bff;
  --glass-klein-deep: #163dcc;
  --glass-klein-soft: rgba(45, 91, 255, 0.12);
  --glass-cyan-deep: #163e63;
  --glass-card: rgba(255, 255, 255, 0.28);
  --glass-card-strong: rgba(255, 255, 255, 0.36);
  --glass-card-soft: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.42);
  --glass-border-soft: rgba(167, 184, 215, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.54);
  --glass-shadow-lg: 0 30px 84px rgba(24, 38, 74, 0.16);
  --glass-shadow-md: 0 18px 46px rgba(28, 43, 78, 0.11);
  --glass-shadow-sm: 0 10px 24px rgba(33, 48, 82, 0.08);
  --glass-radius-xl: 34px;
  --glass-radius-lg: 26px;
  --glass-radius-md: 20px;
  --glass-radius-sm: 16px;
}

body[data-page="workspace"],
body[data-page="login"] {
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 91, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(71, 126, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(17, 92, 170, 0.1), transparent 24%),
    linear-gradient(140deg, var(--glass-page-0) 0%, var(--glass-page-1) 38%, var(--glass-page-2) 74%, var(--glass-page-3) 100%);
  color: var(--glass-text-main);
}

.workspace-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    transparent;
}

.workspace-main::before {
  inset: 16px 16px 16px 0;
  border-radius: 30px;
  background-image:
    radial-gradient(circle at 28% 18%, rgba(76, 118, 255, 0.18), transparent 28%),
    radial-gradient(circle at 72% 66%, rgba(40, 102, 190, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 56%),
    url("/static/web/background.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, 42% auto;
  background-position: left 8% top 10%, right 10% bottom 18%, center center, center right 8%;
  opacity: 0.12;
}

.workspace-primary,
.workspace-secondary,
.workspace-tabs-panel,
.workspace-content.panel,
.workspace-content .panel,
.panel {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-md);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}

.workspace-primary {
  background:
    linear-gradient(180deg, rgba(17, 32, 62, 0.84), rgba(21, 39, 71, 0.7)),
    rgba(16, 29, 57, 0.74);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 50px rgba(14, 26, 48, 0.16);
}

.workspace-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.16);
}

.workspace-secondary-head h2,
.workspace-view-head h2,
.login-stage-copy h1,
.login-card-head h1,
.login-card-head h2,
.project-hero-block > div:first-child h2 {
  color: var(--glass-text-strong);
  letter-spacing: -0.035em;
}

.workspace-content .panel-head h3,
.preview-head h3,
.current-node-panel .panel-head h3,
.project-detail-page h4 {
  font-size: var(--ws-font-section);
  color: rgba(22, 32, 51, 0.96);
  letter-spacing: -0.02em;
}

.muted,
.workspace-content .muted,
.workspace-secondary-head .muted,
.workspace-view-head p,
.table-help,
.login-help,
.login-card-head .muted {
  color: var(--glass-text-soft);
}

.workspace-primary-item {
  min-height: 78px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(11, 20, 39, 0.08);
}

.workspace-primary-item:hover,
.workspace-primary-item.active {
  background: linear-gradient(180deg, rgba(45, 91, 255, 0.46), rgba(45, 91, 255, 0.24));
  border-color: rgba(160, 187, 255, 0.26);
  box-shadow:
    0 16px 30px rgba(20, 52, 155, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.workspace-primary-label {
  color: rgba(248, 250, 255, 0.94);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.16;
}

.workspace-primary-foot .session-badge,
.workspace-primary-foot .ghost-btn {
  min-height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workspace-view-item {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workspace-view-item .label {
  font-size: var(--ws-font-body);
  font-weight: 600;
}

.workspace-tabs-panel {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(33, 48, 82, 0.06);
}

.workspace-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 6px 18px rgba(31, 46, 79, 0.06);
}

.workspace-tab-label {
  font-size: var(--ws-font-button);
  font-weight: 600;
}

.workspace-tab:not(.active) {
  color: rgba(31, 42, 55, 0.72);
}

.workspace-tab.active {
  background: linear-gradient(135deg, rgba(45, 91, 255, 0.96), rgba(22, 61, 204, 0.86));
  border-color: rgba(134, 167, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(33, 74, 205, 0.26);
}

.workspace-tab-close {
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.18s ease, color 0.18s ease;
}

.workspace-tab.active .workspace-tab-close {
  background: rgba(255, 255, 255, 0.16);
}

.workspace-tab-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

.workspace-content .panel,
.panel,
.detail-item,
.metric-pill,
.node-focus-card,
.project-summary-card,
.workspace-data-table tbody tr,
.list-item,
.compact-row-item,
.workspace-content .list-item {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.workspace-content .panel,
.panel {
  border-radius: var(--glass-radius-lg);
}

.panel-tip,
.metric-pill,
.detail-item,
.node-focus-card,
.project-summary-card {
  background: rgba(255, 255, 255, 0.24);
}

.workspace-content .outline-btn,
.workspace-content .ghost-btn,
.workspace-content .primary-btn,
.workspace-content .warn-btn,
.login-dialog-card .outline-btn,
.login-dialog-card .ghost-btn,
.login-dialog-card .primary-btn,
.login-dialog-card .warn-btn {
  min-height: 40px;
  border-radius: 999px;
  font-size: var(--ws-font-button);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(29, 44, 77, 0.08);
}

.primary-btn {
  background: linear-gradient(135deg, var(--glass-klein), var(--glass-klein-deep));
  border: 1px solid rgba(125, 158, 255, 0.34);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(33, 75, 219, 0.22);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #3b67ff, #2951e0);
}

.outline-btn,
.ghost-btn {
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--glass-text-main);
}

.outline-btn:hover,
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.warn-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #a24e3b;
  border: 1px solid rgba(220, 146, 126, 0.22);
}

.workspace-content input,
.workspace-content select,
.workspace-content textarea,
.login-dialog-card input,
.login-dialog-card select,
.login-dialog-card textarea {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 6px 14px rgba(26, 42, 78, 0.05);
  color: var(--glass-text-main);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.workspace-content input::placeholder,
.workspace-content textarea::placeholder,
.login-dialog-card input::placeholder,
.login-dialog-card textarea::placeholder {
  color: rgba(72, 89, 116, 0.58);
}

.workspace-data-table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.workspace-data-table thead th {
  background: transparent;
  border-bottom: 0;
  color: rgba(31, 42, 55, 0.62);
  font-size: var(--ws-font-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
}

.workspace-data-table tbody tr {
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.workspace-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 24px rgba(28, 43, 78, 0.1);
  transform: translateY(-1px);
}

.workspace-data-table td {
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

.workspace-data-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.workspace-data-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.table-status-badge,
.session-badge {
  border-radius: 999px;
  background: rgba(45, 91, 255, 0.12);
  border: 1px solid rgba(45, 91, 255, 0.18);
  color: var(--glass-cyan-deep);
  font-size: var(--ws-font-small);
  font-weight: 600;
}

.list-item,
.compact-row-item,
.workspace-content .list-item {
  border-radius: 18px;
}

.list-item-head strong,
.row-primary strong,
.workspace-data-table strong {
  color: var(--glass-text-strong);
}

.login-immersive {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 91, 255, 0.18), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(93, 135, 255, 0.14), transparent 22%),
    radial-gradient(circle at 74% 78%, rgba(21, 91, 170, 0.12), transparent 24%),
    linear-gradient(145deg, #eef2f7 0%, #f3f5f9 44%, #edf3ff 74%, #f8faff 100%);
}

.login-stage {
  position: relative;
  width: min(1240px, 100%);
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.login-stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  pointer-events: none;
}

.login-stage-glow-a {
  inset: 8% auto auto 6%;
  width: 420px;
  height: 420px;
  background: rgba(45, 91, 255, 0.24);
}

.login-stage-glow-b {
  inset: auto 4% 10% auto;
  width: 460px;
  height: 460px;
  background: rgba(28, 93, 179, 0.15);
}

.login-stage-shell {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  place-items: center;
}

.login-brand-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 664px;
  height: 332px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 40px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
    url("/static/web/logo.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center center, center center, center center;
  background-size: 100% 100%, 100% 100%, 100% auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 30px 68px rgba(24, 42, 84, 0.16);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.login-brand-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 58%);
  border-radius: inherit;
  pointer-events: none;
}

.login-brand-trigger:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(147, 176, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 34px 76px rgba(24, 42, 84, 0.18);
}

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

.login-dialog-backdrop {
  background: rgba(12, 20, 39, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-dialog-card {
  width: min(446px, calc(100vw - 32px));
  padding: 34px 32px 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 72px rgba(22, 39, 76, 0.15);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  display: grid;
  gap: 14px;
}

.login-dialog-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 6px 14px rgba(31, 46, 79, 0.05);
  color: rgba(31, 42, 55, 0.64);
}

.login-card-head {
  display: grid;
  gap: 0;
}

.login-card-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.login-dialog-card .stack-form {
  gap: 12px;
}

.login-dialog-card .stack-form input {
  min-height: 48px;
  padding: 0 16px;
}

.login-inline-error {
  border-radius: 14px;
  background: rgba(255, 245, 242, 0.62);
  border: 1px solid rgba(211, 126, 102, 0.22);
}

@media (max-width: 900px) {
  .workspace-main::before {
    background-size: auto, auto, auto, 56% auto;
    background-position: left 12% top 12%, right 8% bottom 20%, center center, center center;
  }

  .login-stage-shell {
    min-height: 0;
    padding: 0;
  }

  .login-brand-trigger {
    width: 256px;
    height: 256px;
    background-size: 100% 100%, 100% 100%, 72% auto;
  }
}

/* Final visual polish */
:root {
  --glass-text-main: #1f2a37;
  --glass-text-strong: #111c2f;
  --glass-text-soft: #566377;
  --glass-text-faint: rgba(63, 79, 103, 0.82);
  --glass-border-soft: rgba(166, 183, 214, 0.22);
  --glass-card: rgba(255, 255, 255, 0.26);
  --glass-card-strong: rgba(255, 255, 255, 0.36);
  --glass-card-soft: rgba(255, 255, 255, 0.17);
  --glass-shadow-lg: 0 28px 72px rgba(24, 38, 74, 0.15);
  --glass-shadow-md: 0 16px 38px rgba(28, 43, 78, 0.1);
  --glass-shadow-sm: 0 8px 18px rgba(33, 48, 82, 0.07);
}

body[data-page="workspace"],
body[data-page="login"] {
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 91, 255, 0.15), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(71, 126, 255, 0.13), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(17, 92, 170, 0.08), transparent 24%),
    linear-gradient(140deg, var(--glass-page-0) 0%, var(--glass-page-1) 38%, var(--glass-page-2) 74%, var(--glass-page-3) 100%);
}

.workspace-main::before {
  background-image:
    radial-gradient(circle at 28% 18%, rgba(76, 118, 255, 0.15), transparent 28%),
    radial-gradient(circle at 72% 66%, rgba(40, 102, 190, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 56%),
    url("/static/web/background.jpg");
  opacity: 0.1;
}

.workspace-secondary-head .muted,
.workspace-view-head p,
.workspace-content .muted,
.muted,
.table-help,
.login-help,
.login-card-head .muted,
.empty-state,
.inline-empty,
.customer-preview-empty span,
.workspace-content .empty-state,
.workspace-content .inline-empty,
.workspace-view-item .meta,
.meta-line,
.workspace-data-table td .muted,
.panel-tip,
.mobile-note {
  color: var(--glass-text-faint);
}

.workspace-data-table thead th,
.workspace-data-table th,
.summary-strip .muted,
.dashboard-identity-strip,
.dashboard-identity-strip .muted,
.dashboard-scroll-list .muted,
.customer-info-strip,
.customer-preview-panel .muted,
.customer-list-panel .muted,
.project-list-meta .muted {
  color: rgba(39, 56, 83, 0.76);
}

.workspace-secondary-head h2,
.workspace-view-head h2,
.login-card-head h1,
.login-card-head h2,
.project-hero-block > div:first-child h2,
.detail-hero h2 {
  color: var(--glass-text-strong);
}

.workspace-content .panel-head h3,
.preview-head h3,
.current-node-panel .panel-head h3,
.project-detail-page h4,
.workspace-panel h3 {
  color: rgba(19, 31, 51, 0.96);
}

.workspace-secondary,
.workspace-tabs-panel,
.workspace-content.panel,
.workspace-content .panel,
.panel {
  background: var(--glass-card);
  box-shadow: var(--glass-shadow-md);
}

.dashboard-page > .panel,
.dashboard-page .dashboard-scroll-panel,
.dashboard-page #dashboardQuickSection,
.dashboard-page #notificationSection {
  box-shadow: var(--glass-shadow-sm);
}

.dashboard-page > .panel:first-of-type,
.dashboard-page .dashboard-scroll-panel,
.customer-preview-panel,
.detail-hero-panel,
.current-node-panel,
.admin-workspace-section {
  background: var(--glass-card-strong);
}

.detail-hero-panel {
  box-shadow: var(--glass-shadow-lg);
}

.current-node-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.24));
  box-shadow: 0 18px 42px rgba(30, 55, 116, 0.11);
}

.customer-list-panel,
.workspace-panel {
  background: var(--glass-card-soft);
}

.customer-preview-panel .list-item,
.customer-list-panel .list-item,
.workspace-data-table tbody tr,
.dashboard-scroll-list .compact-row-item,
.quick-row-inline .outline-btn,
.quick-row-inline .ghost-btn,
.quick-row-inline .primary-btn {
  box-shadow: var(--glass-shadow-sm);
}

.dashboard-page {
  gap: 14px;
}

.dashboard-identity-strip {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.26);
}

.dashboard-scroll-panel {
  min-height: 0;
}

.dashboard-scroll-panel .panel-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.dashboard-scroll-list .compact-row-item {
  padding: 12px 14px;
}

.dashboard-scroll-list .list-item-head strong,
.dashboard-scroll-list .row-primary strong {
  font-size: 15px;
}

.dashboard-scroll-list .action-row {
  margin-top: 8px;
}

#dashboardQuickActions {
  gap: 8px;
}

#dashboardQuickActions .outline-btn,
#dashboardQuickActions .ghost-btn,
#dashboardQuickActions .primary-btn {
  min-height: 36px;
  padding-inline: 14px;
}

.customer-list-panel .panel-head,
.customer-preview-panel .panel-head {
  margin-bottom: 12px;
}

.customer-row-list {
  gap: 10px;
}

.customer-row-item,
.customer-preview-panel .list-item {
  padding: 13px 14px;
}

.customer-preview-empty {
  min-height: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  border: 1px dashed rgba(133, 154, 196, 0.22);
}

.customer-preview-stack {
  gap: 14px;
}

.workspace-data-table {
  border-spacing: 0 6px;
}

.workspace-data-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
}

.workspace-data-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.workspace-data-table tbody tr {
  background: rgba(255, 255, 255, 0.16);
}

.workspace-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 20px rgba(28, 43, 78, 0.08);
}

.table-status-badge,
.session-badge {
  background: rgba(45, 91, 255, 0.1);
  border-color: rgba(45, 91, 255, 0.16);
  color: #2448b7;
}

.project-top-grid {
  gap: 14px;
  align-items: start;
}

.detail-hero-panel .detail-hero {
  padding: 18px;
}

.project-hero-block {
  gap: 10px;
}

.project-hero-block .muted {
  color: var(--glass-text-faint);
}

.current-node-panel .panel-head {
  margin-bottom: 8px;
}

.current-node-panel .panel-head .muted {
  color: rgba(58, 76, 108, 0.78);
}

.current-node-panel .node-focus-card,
.current-node-panel .panel-tip {
  background: rgba(255, 255, 255, 0.28);
}

.admin-workspace-section {
  box-shadow: var(--glass-shadow-md);
}

.login-immersive {
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 91, 255, 0.16), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(93, 135, 255, 0.12), transparent 22%),
    radial-gradient(circle at 74% 78%, rgba(21, 91, 170, 0.1), transparent 24%),
    linear-gradient(145deg, #eef2f7 0%, #f3f5f9 44%, #edf3ff 74%, #f8faff 100%);
}

.login-stage-glow {
  filter: blur(34px);
}

.login-stage-glow-a {
  background: rgba(45, 91, 255, 0.18);
}

.login-stage-glow-b {
  background: rgba(28, 93, 179, 0.11);
}

.login-brand-trigger {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 26px 56px rgba(24, 42, 84, 0.14);
}

.login-dialog-card {
  box-shadow: 0 24px 56px rgba(22, 39, 76, 0.13);
}

.login-card-head h2 {
  font-size: 38px;
}

.login-dialog-close {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(31, 42, 55, 0.54);
}

.login-dialog-card .stack-form {
  gap: 10px;
}

.login-dialog-card input {
  min-height: 50px;
}
