/*
 * D&S Group Studio Design — editorial application shell.
 * This stylesheet deliberately never changes application logic, data, or routes.
 * Site-derived tokens, when available, are loaded AFTER this file.
 */
:root {
  --ds-surface: #f7f7f5;
  --ds-surface-raised: #ffffff;
  --ds-ink: #131313;
  --ds-ink-soft: #666662;
  --ds-line: #dadad6;
  --ds-dark: #101010;
  --ds-accent: #242424;
  --ds-font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: var(--ds-ink);
  --muted: var(--ds-ink-soft);
  --line: var(--ds-line);
  --bg: var(--ds-surface);
  --card: var(--ds-surface-raised);
  --navy: var(--ds-dark);
  --navy2: #181818;
  --accent: var(--ds-accent);
  --accent-dark: #000000;
  --accent-bg: #efefed;
  --radius: 5px;
  --shadow: none;
}
html, body {font-family:var(--ds-font); color:var(--ds-ink); background:var(--ds-surface)}
html {scrollbar-gutter:stable}
::selection {background:#282828;color:#fff}
/* Site-like horizontal studio masthead: the application remains fully navigable. */
.app-shell {display:block;min-height:100vh}
.sidebar {
  width:100%;height:81px;min-height:81px;position:sticky;top:0;z-index:30;
  padding:0 clamp(15px,3.4vw,56px);display:flex;flex-direction:row;align-items:center;gap:clamp(8px,1.3vw,21px);
  background:var(--ds-dark);border-bottom:1px solid #ffffff32;color:#f5f4ef;
  box-shadow:none;
}
.sidebar .logo-area {padding:0;border:0;min-width:205px;gap:13px}
.brand-badge {
  background:transparent;box-shadow:none;border:1px solid #f5f5f0;color:#fff;
  width:43px;height:43px;border-radius:0;font-size:18px;font-weight:900;letter-spacing:-.095em;
}
.brand-badge span {color:#fff}
.ds-logo-asset {max-height:43px;max-width:120px;height:auto;width:auto;object-fit:contain}
.logo-area.with-logo .brand-badge {display:none}
.logo-name {font-size:11px;line-height:1.3;letter-spacing:.115em;font-weight:800;color:#fff}
.logo-sub {font-size:9px;line-height:1.25;letter-spacing:.08em;color:#b8b8b4;font-weight:550;margin-top:3px}
.sidebar .side-label {display:none}
.sidebar .side-menu {display:flex;flex-direction:row;align-items:center;gap:3px;min-width:0}
.sidebar .side-menu .nav-item {
  width:auto;min-height:38px;padding:8px 10px;flex:none;white-space:nowrap;border-radius:2px;
  color:#d1d1cb;font-size:11px;letter-spacing:.025em;font-weight:620;
}
.sidebar .side-menu .nav-item .ic {width:15px;height:15px;color:#a8a8a3}
.sidebar .side-menu .nav-item.active {background:#ffffff16;color:white}
.sidebar .side-menu .nav-item.active .ic {color:white}
.sidebar .side-menu .nav-item:hover {background:#ffffff16;color:white}
.sidebar .side-menu .nav-item:focus-visible {outline:2px solid #fff;outline-offset:-2px}
.sidebar > .side-menu:not(nav) {border-left:1px solid #ffffff34;padding-left:10px}
.sidebar > .side-menu:not(nav) .nav-item {color:#fff}
.sidebar .side-bottom {margin:0 0 0 auto;padding:0;border:0;display:flex;align-items:center;gap:7px;min-width:0}
.sidebar .account {padding:0;gap:7px}
.sidebar .avatar {height:30px;width:30px;border-radius:0;background:#ffffff1c;color:#fff;font-size:10px}
.sidebar .account .who {font-size:10px;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .account .role {font-size:9px;margin-top:2px}
.sidebar .logout {padding:9px;width:34px;height:34px;border:1px solid #ffffff2c;overflow:hidden;white-space:nowrap;font-size:0;border-radius:2px}
.sidebar .logout .ic {width:15px;height:15px}
.main {width:100%;min-width:0}
.topbar {height:56px;padding:0 clamp(16px,3.7vw,62px);background:var(--ds-surface-raised);border-bottom:1px solid var(--ds-line);backdrop-filter:none;top:81px;z-index:12}
.top-location {font-size:12px;letter-spacing:.025em}
.breadcrumb,.clock {font-size:10px;color:#777774}
.content {max-width:1700px;padding:clamp(24px,3.6vw,58px) clamp(16px,3.7vw,62px) 80px}
.page-heading {margin-bottom:30px;padding-bottom:23px;border-bottom:1px solid var(--ds-line)}
.page-heading h1, .workspace-head h1 {font-size:clamp(30px,3vw,47px);line-height:1.08;letter-spacing:-.065em;font-weight:730}
.page-heading h1 {margin:8px 0 11px}
.subtitle {color:var(--ds-ink-soft);max-width:760px;line-height:1.75}
.eyebrow,.wb-overline,.hero .hero-overline {color:var(--ds-ink-soft);letter-spacing:.17em;font-size:10px;font-weight:800}
.card,.wb-panel,.tool-group,.modal,.sector-tile {background:var(--ds-surface-raised);border:1px solid var(--ds-line);border-radius:var(--radius);box-shadow:none}
.card-pad {padding:clamp(18px,2vw,28px)}
.card:hover {box-shadow:none}
.section-title {font-size:14px;letter-spacing:-.025em}
.stat-card {min-height:144px;border-top:2px solid var(--ds-dark)}
.stat-number {font-size:clamp(34px,3.1vw,49px);font-weight:720;color:var(--ds-ink);margin-top:21px}
.stat-icon {background:#ededeb;color:#282824;border-radius:2px}
.stat-label,.stat-desc {color:#70706b}
.btn,.wb-btn {border:1px solid var(--ds-line);background:white;color:var(--ds-ink);box-shadow:none;border-radius:2px;font-weight:680;letter-spacing:.01em;transition:border-color .18s,background .18s,color .18s}
.btn:hover,.wb-btn:hover {border-color:#141414;background:#f6f6f3;color:#111}
.btn-primary,.wb-btn.wb-primary {background:var(--ds-dark);color:#fff;border-color:var(--ds-dark);box-shadow:none}
.btn-primary:hover,.wb-btn.wb-primary:hover {background:#333;color:#fff;border-color:#333}
.btn-soft {background:#eeeeeb;border-color:#eeeeeb;color:#171717}
.btn-ghost {background:transparent;border-color:transparent}
.input,.select,.textarea,.wb-field input,.wb-field textarea,.wb-field select,.wb-search {border:1px solid #d0d0cb;border-radius:2px;background:#fff;color:#161615}
.input:focus,.select:focus,.textarea:focus,.wb-field input:focus,.wb-field textarea:focus,.wb-field select:focus,.wb-search:focus {border-color:#222;box-shadow:0 0 0 2px #00000013}
.field label,.wb-field>span {color:#44443e}
.hero {background:var(--ds-dark);border:1px solid #202020;border-radius:3px;padding:clamp(25px,2.7vw,46px);min-height:175px}
.hero:after {display:none}
.hero h2 {font-size:clamp(22px,2vw,34px);font-weight:700;letter-spacing:-.05em}
.hero p {color:#b7b7b1}
.hero .hero-overline {color:#bbbcb6}
.hero .btn {background:#fff;color:#111;border-color:#fff}
.progress {background:#e3e3df;border-radius:1px}
.progress>span {background:#111;border-radius:1px}
.pill {border-radius:2px}
.workspace-head {padding-bottom:5px}
.workspace-topline,.workspace-topline button {font-size:10px;color:#73736e}
.workspace-nav {gap:4px;margin:23px 0 25px;border-color:var(--ds-line)}
.workspace-tab {font-size:11px;letter-spacing:.012em;font-weight:650}
.workspace-tab.active {color:#161616;border-color:#161616}
.sector-tile {border-radius:2px;min-height:250px;transition:background .2s,border-color .2s}
.sector-tile:hover {transform:none;background:#f2f2ef;border-color:#555;box-shadow:none}
.sector-number {color:#343430}
.sector-tag {color:#74746f}
.quote-line {background:#fafaf8;border-color:#e1e1dc;border-radius:2px}
.quote-totals,.wb-total {background:#f4f4f1;border:1px solid #e4e4e0;border-radius:2px}
.proposal-sheet,.wb-presentation {border:1px solid #ddd;border-radius:2px;box-shadow:none}
/* Studio 360° inherits the same application-wide design language. */
.wb-panel {padding:clamp(17px,2vw,27px)}
.wb-heading h2 {font-size:clamp(27px,2.7vw,41px);font-weight:720;letter-spacing:-.055em}
.wb-nav {border-bottom-color:var(--ds-line)}
.wb-nav-tab {border-radius:2px;color:#61615b}
.wb-nav-tab.selected {background:#151515;color:#fff;box-shadow:none}
.wb-stat,.wb-banner,.wb-note {background:#f4f4f1;border:1px solid #e4e4df;border-radius:2px}
.wb-stat strong {color:var(--ds-ink)}
.wb-progress {background:#e4e4df;border-radius:1px}
.wb-progress span {background:#1b1b1b;border-radius:1px}
.wb-step:hover {background:#f5f5f2}
.wb-step b {color:#393936}
.wb-chips span {background:#efefeb;color:#333;border-radius:2px}
.wb-group {border-radius:2px}
.wb-group.active,.wb-question.active {background:#f0f0ed;color:#111}
.wb-question em {color:#15634b}
.wb-editor .wb-output {background:#f0f0ee;color:#444;border-radius:2px}
.wb-record {border-color:#e0e0dc}
.wb-report-top {border-color:#151515}
.wb-report-top b,.wb-report-title small,.wb-report-grid h2,.wb-report-summary b {color:#1c1c1c}
.wb-report-summary {border-color:#151515}
.wb-print-page .wb-presentation,.proposal-sheet {font-family:var(--ds-font)}
/* Branded login, without decorative artificial glows/gradients. */
.login-page {grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);background:#fff}
.login-left {background:#101010;padding:clamp(30px,4.8vw,79px);border:0}
.login-left:before {display:none}
.login-left .logo-area {border:0}
.login-title {font-size:clamp(46px,5.9vw,93px);line-height:1.03;letter-spacing:-.075em;font-weight:690;max-width:920px}
.login-title em {font-weight:390;color:#b5b5ae}
.login-intro {color:#bbbcb6;line-height:1.8}
.login-right {padding:clamp(28px,4vw,72px);background:#f8f8f6}
.login-form {max-width:420px}
.login-form h1 {font-size:clamp(30px,3vw,43px);letter-spacing:-.055em}
.login-form .btn {min-height:46px}
.login-footer {border-color:#dcdcd7}
.boot {background:#101010;color:#fff}
@media(max-width:1420px) {
  .sidebar {gap:9px;padding-left:20px;padding-right:20px}
  .sidebar .logo-area {min-width:180px}
  .sidebar .side-menu .nav-item {padding:7px;font-size:10px;gap:6px}
  .sidebar .account .role {display:none}
}
@media(max-width:1140px) {
  .sidebar > .side-menu:not(nav) {display:none}
  .sidebar .logo-area {min-width:166px}
}
@media(max-width:920px) {
  .sidebar {height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:1fr auto;gap:8px;padding:13px 16px 0;position:sticky!important;transform:none!important;left:auto!important;width:100%!important}
  .sidebar .logo-area {grid-column:1;min-width:0}
  .sidebar .side-bottom {grid-column:2;grid-row:1;margin-left:auto}
  .sidebar .account {display:none}
  .sidebar nav.side-menu {display:flex!important;grid-column:1/-1;grid-row:2;overflow-x:auto;gap:3px;padding:7px 0 11px;scrollbar-width:thin}
  .sidebar nav.side-menu .nav-item {font-size:11px;padding:10px 9px}
  .sidebar .logout {font-size:0;display:flex}
  .page-overlay {display:none!important}
  .topbar {top:111px!important;height:46px;padding:0 16px}
  .topbar .only-mobile {display:none!important}
  .topbar .breadcrumb {display:none}
  .content {padding:26px 16px 65px}
  .page-heading h1,.workspace-head h1 {font-size:32px}
  .login-page {grid-template-columns:1fr}
  .login-left {min-height:370px;padding:28px}
  .login-title {font-size:clamp(42px,9vw,66px)}
  .login-right {padding:32px 20px 60px}
}
@media(max-width:560px) {
  .sidebar .logo-name {font-size:10px}
  .sidebar .logo-sub {font-size:8px}
  .sidebar .brand-badge {width:36px;height:36px;font-size:15px}
  .sidebar .nav-item .ic {width:14px;height:14px}
  .topbar {top:109px!important}
  .topbar .top-location {font-size:11px}
  .page-heading {gap:12px}
  .page-heading h1 {font-size:30px}
  .stat-card {min-height:126px}
}
@media print {
  .sidebar,.topbar {display:none!important}
  .app-shell,.main,.content {display:block!important;max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
  .proposal-sheet,.wb-presentation {border:0!important;box-shadow:none!important}
}

/* Lifecycle, notices, and legacy modules: remove SaaS-blue appearance. */
.lifecycle-card,.phase-card {background:#fff;border:1px solid var(--ds-line);border-radius:2px;box-shadow:none}
.lifecycle-card.current {background:#f3f3f0;border:1px solid #444;box-shadow:none}
.life-index {background:#e9e9e5;color:#252521;border-radius:2px}
.life-state {background:#ecece9;color:#292925;border-radius:2px}
.lifecycle-divider {color:#595950}
.phase-num,.workspace-topline button,.sector-number {color:#474743}
.callout {border-color:#deded9;background:#f7f7f5;border-radius:2px}
.blueprint-link.active {background:#ebebe8;color:#111}
.pill.active,.pill.progress {background:#e8e8e4;color:#111}
.pill.planning,.pill.todo {background:#ededeb;color:#4e4e49}
.quote-total-final strong,.quote-totals .quote-total-final {color:#111}
.wb-report-state {color:#333}
