/* UI-01 / private workspace only. New shell and design tokens, no public CSS changes.
   Legacy content modules retain their own structural CSS through UI-02/UI-03/PRICE-02. */
body.workspace-ui01 {
  --ws-sidebar-width: 228px;
  --ws-topbar-height: 64px;
  --ws-radius: 12px;
  --ws-blue: #1359ff;
  --ws-blue-hover: #0846d6;
  --ws-active: #e5edff;
  --ws-bg: #f6f8fc;
  --ws-panel: #fff;
  --ws-border: #e0e6f0;
  --ws-ink: #111c35;
  --ws-muted: #53627b;
  --ws-soft: #f0f4fb;
  --ws-shadow: 0 3px 12px rgba(26, 49, 95, .045);
  --ws-decoration: rgba(110, 155, 255, .13);
  margin: 0;
  min-width: 0;
  color: var(--ws-ink);
  background: var(--ws-bg);
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.5;
}
html[data-theme="light"] body.workspace-ui01 {
  --app-bg: var(--ws-bg);
  --app-surface: var(--ws-panel);
  --app-surface-2: var(--ws-soft);
  --app-surface-3: #e9eef8;
  --app-line: var(--ws-border);
  --app-line-strong: #cbd6e7;
  --app-text: var(--ws-ink);
  --app-muted: var(--ws-muted);
  --app-cyan: var(--ws-blue);
  --app-violet: #6848ce;
  --app-success: #16734a;
  --app-warning: #805a07;
  --app-danger: #b4232c;
}
html[data-theme="dark"] body.workspace-ui01 {
  --ws-blue: #8aabff;
  --ws-blue-hover: #aec4ff;
  --ws-active: #233b68;
  --ws-bg: #101722;
  --ws-panel: #172132;
  --ws-border: #2d3c50;
  --ws-ink: #edf2ff;
  --ws-muted: #a9b7ce;
  --ws-soft: #202c41;
  --ws-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  --ws-decoration: rgba(96, 138, 239, .09);
  --app-bg: var(--ws-bg);
  --app-text: var(--ws-ink);
  background: var(--ws-bg);
  color: var(--ws-ink);
}
.workspace-ui01 .workspace-symbols { position: absolute; overflow: hidden; pointer-events: none; }
.workspace-ui01 .workspace-topbar svg,
.workspace-ui01 .workspace-sidebar svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.workspace-ui01 .workspace-topbar *, .workspace-ui01 .workspace-sidebar * { box-sizing: border-box; }
.workspace-ui01 .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--ws-topbar-height);
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ws-border);
  background: var(--ws-panel);
  color: var(--ws-ink);
}
.workspace-shell-ready .workspace-topbar { margin-left: var(--ws-sidebar-width); }
.workspace-topbar-start, .workspace-topbar-end { display: flex; align-items: center; gap: 14px; min-width: 0; }
.workspace-breadcrumb { font-weight: 650; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.workspace-ui01 .workspace-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ws-muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.workspace-ui01 .workspace-icon-button[disabled] { opacity: .55; cursor: default; }
.workspace-ui01 .workspace-mobile-toggle, .workspace-ui01 .workspace-mobile-brand { display: none; }
.workspace-ui01 .workspace-profile { position: relative; min-width: 0; }
.workspace-ui01 .workspace-profile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  padding: 5px;
  color: var(--ws-ink);
}
.workspace-profile summary::-webkit-details-marker { display: none; }
.workspace-profile summary::marker { content: ""; }
.workspace-ui01 .workspace-profile summary:hover,
.workspace-ui01 .workspace-icon-button:hover:not(:disabled) { background: var(--ws-soft); }
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ws-active);
  color: var(--ws-blue);
  font-size: 12px;
  font-weight: 750;
  flex: 0 0 34px;
}
.workspace-profile-label { display: grid; gap: 1px; text-align: left; line-height: 1.25; }
.workspace-profile-label strong { font-size: 13px; font-weight: 650; color: var(--ws-ink); white-space: nowrap; }
.workspace-profile-label small { font-size: 11px; color: var(--ws-muted); white-space: nowrap; }
.workspace-ui01 .workspace-profile .workspace-chevron { width: 14px; height: 14px; flex-basis: 14px; color: var(--ws-muted); }
.workspace-profile[open] .workspace-chevron { transform: rotate(180deg); }
.workspace-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 45;
  width: min(280px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: var(--ws-panel);
  box-shadow: 0 12px 32px rgba(23, 41, 76, .15);
}
.workspace-profile-identity { display: grid; gap: 3px; padding: 10px; border-bottom: 1px solid var(--ws-border); margin-bottom: 5px; }
.workspace-profile-identity strong { font-size: 12px; color: var(--ws-ink); }
.workspace-ui01 #workspace-email { display: block!important; max-width: 100%; white-space: normal; overflow-wrap: anywhere; margin: 0; color: var(--ws-muted)!important; font-size: 12px!important; }
.workspace-ui01 .workspace-profile-action { display: block; border: 0; width: 100%; padding: 10px; text-decoration: none; color: var(--ws-ink); background: transparent; text-align: left; font: inherit; border-radius: 7px; cursor: pointer; }
.workspace-ui01 .workspace-profile-action:hover { background: var(--ws-soft); color: var(--ws-blue); }
.workspace-ui01 .workspace-signout { color: var(--app-danger); }
.workspace-shell-ready #partner-app { max-width: none; width: auto; margin: 0 0 0 var(--ws-sidebar-width); padding: 0; }
.workspace-shell-ready #secutest-app-v2 { display: block; min-height: calc(100vh - var(--ws-topbar-height)); background: var(--ws-bg); }
.workspace-ui01 .workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 35;
  width: var(--ws-sidebar-width);
  padding: 23px 14px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-right: 1px solid var(--ws-border);
  background: radial-gradient(ellipse at 0% 108%, var(--ws-decoration) 0 15%, transparent 15.5% 100%), var(--ws-panel);
  color: var(--ws-ink);
}
.workspace-ui01 .workspace-brand { display: flex; align-items: center; gap: 7px; padding: 0 8px; color: var(--ws-ink); text-decoration: none; font-size: 25px; font-weight: 770; line-height: 1.15; letter-spacing: -.055em; }
.workspace-ui01 .workspace-brand img { width: 29px; height: 29px; flex: 0 0 29px; object-fit: contain; }
.workspace-brand-accent { color: var(--ws-blue); }
.workspace-tagline { margin: 12px 8px 23px; color: var(--ws-muted); font-weight: 500; font-size: 12px; line-height: 1.5; }
.workspace-ui01 .workspace-nav { display: flex; flex-direction: column; gap: 4px; }
/* partner-subscription.js appends its old Account anchor to this compatibility
   mount. Settings already targets the same real #app-account panel. */
.workspace-ui01 .workspace-nav > .app-nav-link:not(.workspace-item) { display: none; }
.workspace-ui01 .workspace-item { display: flex; align-items: center; gap: 10px; min-height: 38px; border: 0; padding: 8px 10px; color: var(--ws-ink); border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 530; line-height: 1.35; }
.workspace-ui01 .workspace-item svg { color: var(--ws-muted); }
.workspace-ui01 a.workspace-item:hover { background: var(--ws-soft); color: var(--ws-blue); }
.workspace-ui01 .workspace-item[aria-current="location"] { background: var(--ws-active); color: var(--ws-blue); font-weight: 700; }
.workspace-ui01 .workspace-item[aria-current="location"] svg { color: var(--ws-blue); stroke-width: 2; }
.workspace-ui01 .workspace-item-disabled { color: var(--ws-muted); cursor: default; }
.workspace-item-disabled small { margin-left: auto; color: var(--ws-muted); font-size: 10px; font-weight: 550; white-space: nowrap; }
.workspace-upgrade { margin: 22px 2px 0; padding: 14px 12px 12px; border: 1px solid var(--ws-border); background: var(--ws-soft); border-radius: 10px; box-shadow: var(--ws-shadow); }
.workspace-ui01 .workspace-upgrade > svg { color: var(--ws-blue); width: 23px; height: 23px; }
.workspace-ui01 .workspace-upgrade h2 { color: var(--ws-ink); font-size: 15px; line-height: 1.25; margin: 9px 0 6px; letter-spacing: -.02em; }
.workspace-upgrade p { color: var(--ws-muted); font-size: 11px; line-height: 1.5; margin: 0 0 12px; }
.workspace-ui01 .workspace-upgrade a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; color: var(--ws-blue); border: 1px solid var(--ws-blue); border-radius: 6px; font-size: 12px; font-weight: 650; text-decoration: none; }
.workspace-ui01 .workspace-upgrade a svg { width: 14px; height: 14px; flex-basis: 14px; }
.workspace-upgrade a:hover { background: var(--ws-active); }
.workspace-ui01 .workspace-topbar :focus-visible, .workspace-ui01 .workspace-sidebar :focus-visible { outline: 2px solid var(--ws-blue); outline-offset: 3px; }

/* New canvas and basic surfaces. Existing scanner, prospect table and billing
   remain single-instance, with stable IDs, events, and functionality. */
.workspace-shell-ready #secutest-app-v2 > .app-main {
  max-width: 1680px;
  margin: 0 auto;
  min-width: 0;
  padding: 25px 28px 64px;
  background: radial-gradient(ellipse at 112% -15%, var(--ws-decoration) 0 13%, transparent 13.4% 100%);
}
.workspace-shell-ready .app-page-header, .workspace-shell-ready .app-section { max-width: none; scroll-margin-top: calc(var(--ws-topbar-height) + 18px); }
.workspace-shell-ready .app-page-header { padding: 0 0 19px; border: 0; align-items: flex-start; }
.workspace-shell-ready .app-page-header .app-kicker { display: none; }
.workspace-ui01 #partner-app .app-page-header h1 { color: var(--ws-ink); font-size: clamp(25px, 2.3vw, 34px); font-weight: 750!important; letter-spacing: -.04em!important; line-height: 1.18; }
.workspace-shell-ready .app-page-header .app-lead { margin: 7px 0 0; font-size: 14px; color: var(--ws-muted); line-height: 1.5; }
.workspace-shell-ready .app-section { margin: 0 0 18px; padding: 22px; border: 1px solid var(--ws-border); background: var(--ws-panel); border-radius: var(--ws-radius); box-shadow: var(--ws-shadow); }
.workspace-shell-ready .app-section.app-metrics { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 12px; }
body.workspace-shell-ready .app-metric-card { border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-panel); box-shadow: var(--ws-shadow); }
.workspace-shell-ready .app-metric-value { color: var(--ws-ink); }
.workspace-shell-ready .app-metric-label, .workspace-shell-ready .app-metric-detail { color: var(--ws-muted); }
.workspace-shell-ready .app-scanner-workspace { border-radius: var(--ws-radius); }
html[data-theme="light"] .workspace-shell-ready .app-button:not(.app-button-secondary):not(.app-danger-button):not(.app-secondary-danger-button) { background: var(--ws-blue); border-color: var(--ws-blue); color: #fff; }
html[data-theme="light"] .workspace-shell-ready .app-button:not(.app-button-secondary):not(.app-danger-button):not(.app-secondary-danger-button):hover:not(:disabled) { background: var(--ws-blue-hover); border-color: var(--ws-blue-hover); }
.workspace-shell-ready .app-section-heading h2 { color: var(--ws-ink); }
@media (max-width: 900px) {
  .workspace-shell-ready .workspace-topbar { margin-left: 0; }
  .workspace-ui01 .workspace-topbar { padding: 0 16px; }
  .workspace-ui01 .workspace-mobile-toggle:not([hidden]) { display: inline-grid; }
  .workspace-ui01 .workspace-mobile-brand { display: inline; color: var(--ws-ink); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.05em; }
  .workspace-mobile-brand span { color: var(--ws-blue); }
  .workspace-shell-ready #partner-app { margin-left: 0; }
  .workspace-ui01 .workspace-sidebar { display: none; position: static; width: auto; border: 0; border-bottom: 1px solid var(--ws-border); padding: 16px; overflow: visible; background: var(--ws-panel); }
  .workspace-ui01 .workspace-sidebar.workspace-menu-open { display: flex; }
  .workspace-ui01 .workspace-sidebar .workspace-brand, .workspace-ui01 .workspace-sidebar .workspace-tagline { display: none; }
  .workspace-upgrade { margin-top: 12px; }
  .workspace-shell-ready #secutest-app-v2 > .app-main { padding: 20px 16px 45px; }
  .workspace-shell-ready .app-section { padding: 16px; }
}
@media (max-width: 560px) {
  .workspace-topbar-start, .workspace-topbar-end { gap: 7px; }
  .workspace-ui01 .workspace-topbar { height: 58px; padding: 0 10px; gap: 8px; }
  body.workspace-ui01 { --ws-topbar-height: 58px; }
  .workspace-breadcrumb, .workspace-profile-label { display: none; }
  .workspace-shell-ready .app-section { padding: 13px; margin-bottom: 12px; }
  .workspace-shell-ready .app-section.app-metrics { padding: 0; }
  .workspace-shell-ready #secutest-app-v2 > .app-main { padding: 18px 10px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-ui01 { scroll-behavior: auto; }
}
