.service-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px max(18px,calc((100vw - 1450px)/2)); border-bottom:1px solid #263149; background:#080d19; }
.service-identity { display:flex; align-items:center; gap:12px; color:#e9edff; }
.service-identity img { height:32px; width:32px; }
.service-identity strong,.service-identity small { display:block; }
.service-identity small { font-size:.68rem; color:#a9b3cf; letter-spacing:.1em; }
.service-shell { max-width:1480px; margin:auto; display:grid; grid-template-columns:13rem minmax(0,1fr); gap:20px; padding:20px; }
.service-side { align-self:start; display:grid; gap:5px; padding:10px; border:1px solid #263149; border-radius:12px; background:#080d19; }
.service-side a { color:#bbc6e4; padding:9px 12px; border-radius:8px; text-decoration:none; }
.service-side a[aria-current=page] { background:#29214d; color:#ebe4ff; }
.service-content { min-width:0; display:grid; align-content:start; gap:14px; }
.service-content h1 { font-size:clamp(1.45rem, 4vw, 2rem); margin:0; }
.service-content .panel { min-width:0; }
.service-card { display:grid; gap:12px; padding:16px; }
.service-card h2, .service-card p { margin:0; }
.service-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.service-actions a { text-decoration:none; }
.service-forms { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:12px; }
.service-forms .editor-field { min-width:0; }
.service-forms button { align-self:end; justify-self:start; }
.service-login { max-width:480px; margin:44px auto; padding:0 16px; }
.service-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; }
.service-grid section { padding:14px; background:#151d30; border:1px solid #263149; border-radius:10px; }
.service-grid strong { display:block; color:#e3d7ff; font-size:1.4rem; }
.service-bars { display:grid; gap:6px; }
.service-bars div { display:grid; grid-template-columns:105px 1fr 40px; gap:8px; align-items:center; }
.service-bars progress { width:100%; accent-color:#a18bff; }
.service-preview { border:1px solid #354166; border-radius:12px; padding:16px; overflow:hidden; }
.service-preview img { display:block; max-height:100px; width:100%; object-fit:cover; margin-bottom:8px; }
.service-secret { overflow-wrap:anywhere; user-select:all; }
.service-compact .service-card { padding:10px; gap:8px; }
.service-operational-preview { width:100%; min-height:360px; border:1px solid #354166; border-radius:8px; }
@media (max-width:760px) {
  .service-shell { grid-template-columns:1fr; padding:12px; gap:12px; }
  .service-side { display:flex; overflow:auto; }
  .service-side a { white-space:nowrap; }
  .service-header { padding:12px; }
}

.surface-label { margin-inline-start:.55rem; color:#d9c8ff; font-size:.75rem; }
.surface-summary .surface-logo { width:36px; height:36px; margin:0; object-fit:contain; }
.surface-mark { color:#d1c1ff; font-size:1.6rem; line-height:1; }
.service-side a[aria-current=page] { box-shadow:inset 3px 0 0 var(--surface-accent,#987bff); }
.surface-slate { min-height:100vh; background:#141923; }
.surface-slate .service-header,.surface-slate .service-side { background:#171d28; }
.surface-slate .service-content .panel { background:#202735; }
.service-operational-preview.service-preview-phone { display:block; max-width:390px; min-height:660px; margin:auto; }

/* Customer workspace */
.service-side a:has(> .icon) { display:flex; align-items:center; gap:10px; }
.service-side a > .icon { flex:0 0 18px; width:18px; height:18px; color:#a7b4da; }
.service-side a[aria-current=page] > .icon { color:#d2c0ff; }
.portal-page { display:grid; min-width:0; gap:16px; }
.portal-intro { margin:-4px 0 0; color:#aebad8; font-size:.93rem; line-height:1.6; }
.portal-hero { position:relative; isolation:isolate; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,27%);
  align-items:center; gap:22px; padding:clamp(20px,3vw,35px); border:1px solid #3d456e; border-radius:16px;
  background:radial-gradient(ellipse at 75% 0%, #39305d, transparent 65%),linear-gradient(120deg,#181b34,#131b2e); }
.portal-hero h2 { margin:5px 0 3px; font-size:clamp(1.4rem,3vw,2.2rem); line-height:1.22; overflow-wrap:anywhere; }
.portal-hero p { margin:7px 0 19px; color:#bed0eb; line-height:1.65; }
.portal-team { color:#ddd1ff; font-size:.88rem; font-weight:650; }
.portal-cover { position:absolute; inset:0 0 0 auto; width:55%; height:100%; object-fit:cover; opacity:.28; z-index:-1; }
.portal-completion { display:grid; gap:7px; min-width:0; color:#becae5; background:#15172ae6; border:1px solid #495276;
  border-radius:13px; padding:16px; font-size:.85rem; }
.portal-completion strong { color:#e5d8ff; letter-spacing:-.02em; font-size:1.75rem; line-height:1.2; }
.portal-completion progress { width:100%; height:9px; accent-color:#ab91ff; }
.portal-hero .button.primary { border-color:#ac95ff; background:#654db5; color:white; }
.portal-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.portal-metric { display:flex; align-items:center; min-width:0; gap:10px; padding:13px; border:1px solid #333d5d;
  border-radius:12px; background:#171f35; color:#ecedff; text-decoration:none; }
.portal-metric:hover { background:#222744; border-color:#7562bc; }
.portal-metric small,.portal-metric strong { display:block; }
.portal-metric small { color:#b7c3e1; font-size:.8rem; white-space:nowrap; }
.portal-metric strong { font-size:1.35rem; line-height:1.25; }
.portal-symbol { display:inline-grid; width:35px; height:35px; place-items:center; flex:0 0 35px; border-radius:9px; background:#332b56; color:#d3bfff; }
.portal-arrow { margin-inline-start:auto; flex:0 0 15px; color:#b3a4dc; }
.portal-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:14px; }
.portal-columns .service-card h2,.portal-page .service-card h2 { font-size:1.06rem; }
.portal-list,.portal-timeline { list-style:none; padding:0; margin:0; }
.portal-list li,.portal-timeline li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-top:1px solid #303950; }
.portal-list a { color:#e0dcff; text-underline-offset:3px; overflow-wrap:anywhere; }
.portal-list small,.portal-timeline time { display:block; color:#a9b6d8; font-size:.78rem; }
.portal-empty { display:flex; align-items:center; gap:12px; border:1px dashed #414a69; border-radius:10px; padding:12px;
  color:#dce3f9; background:#141b2e; }
.portal-empty p { color:#aebbd9; font-size:.84rem; margin-top:4px; }
.portal-status { display:inline-flex; align-items:center; gap:5px; padding:.24rem .58rem; border-radius:20px; white-space:nowrap;
  font-size:.76rem; font-weight:650; color:#bdc8e4; background:#27304a; }
.portal-status::before { content:''; width:5px; aspect-ratio:1; background:currentColor; border-radius:50%; }
.portal-status.active { background:#38305b; color:#e1d0ff; }
.portal-status.done { background:#203d3a; color:#a5ead0; }
.portal-status.waiting { background:#403525; color:#f5d797; }
.portal-toolbar { display:flex; align-items:end; gap:10px; }
.portal-toolbar form { flex:1; grid-template-columns:minmax(180px,2fr) minmax(110px,1fr) minmax(100px,1fr) auto; }
.portal-toolbar button,.portal-record-actions button { min-height:38px; }
.portal-record-actions:empty { display:none; }
.portal-pagination { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#aebad8; font-size:.85rem; }
.portal-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.portal-tabs a { text-decoration:none; color:#bac7e5; background:#182139; border:1px solid #334363; padding:8px 13px; border-radius:8px; }
.portal-tabs a[aria-current=page] { color:#f1eaff; border-color:#987bff; background:#302650; }
.portal-unread { font-size:.86rem; color:#d8c4ff; }
.portal-timeline { margin-top:12px; }
.portal-timeline li { border-top:0; border-inline-start:2px solid #5d4f96; margin-inline-start:6px; padding:6px 0 10px 12px; }
.portal-page a:focus-visible,.portal-page button:focus-visible { outline:2px solid #cebaff; outline-offset:3px; }
@media (max-width:1100px) {
  .portal-toolbar { flex-wrap:wrap; }
  .portal-toolbar form { flex-basis:100%; }
  .portal-metric .portal-arrow { display:none; }
}
@media (max-width:760px) {
  .portal-hero { grid-template-columns:minmax(0,1fr); gap:14px; padding:16px; }
  .portal-completion { padding:11px; }
  .portal-cover { width:100%; opacity:.2; }
  .portal-columns,.portal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-metric { padding:10px; }
  .portal-toolbar form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-toolbar form .editor-field:first-child { grid-column:1/-1; }
}
@media (max-width:540px) {
  .portal-columns { grid-template-columns:minmax(0,1fr); }
  .portal-empty { flex-wrap:wrap; }
  .portal-metric { gap:8px; }
  .portal-metric .portal-symbol { width:28px; height:28px; flex-basis:28px; }
  .portal-metric .portal-symbol .icon { width:17px; height:17px; }
  .portal-metric small { font-size:.74rem; }
  .portal-page .lab-table { min-width:610px; }
}

/* Formal and demonstration customer workspaces share the accepted sidebar and home design. */
.connected-workspace .nav-item.active { box-shadow:inset 3px 0 var(--workspace-accent,#987bff); }
.connected-workspace .brand-mark img { width:100%; height:100%; object-fit:contain; }
.connected-workspace .workspace-label small { overflow-wrap:anywhere; }
.connected-workspace .client-hero-cover { position:absolute; inset:0 0 0 auto; width:55%; height:100%; object-fit:cover; opacity:.21; z-index:-1; }
.connected-workspace .client-hero > div { min-width:0; overflow-wrap:anywhere; }
.connected-workspace .nav-count { flex-shrink:0; }
.connected-slate { min-height:100vh; --surface:#202735; --line:#383f4e; background:#141923; }
.connected-slate .topbar,.connected-slate .sidebar { background:#171d28; }
.connected-compact .metric { min-height:111px; padding:10px 12px; }
.connected-compact .work-main { padding-block:18px; }
