/* CRM-BRAND-01. Asembly's cobalt identity across the working application. */
:root {
  --cobalt: #0056fb;
  --ink: #252a27;
  --muted: #526078;
  --line: #e3e8f0;
  --paper: #f8faff;
}

body { color: var(--ink); background: var(--paper); }
.testing-banner {
  min-height: 32px;
  padding: 6px 20px;
  background: #fff;
  color: #526078;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.shell { grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100vh - 32px); padding: 12px; gap: 12px; }
.sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
  height: calc(100dvh - 56px);
  padding: 28px 16px 20px;
  gap: 38px;
  background: linear-gradient(165deg, #0056fb 0%, #064dcc 100%);
  color: #fff;
  border: 0;
  border-radius: 20px;
}
.sidebar .brand { padding: 0 12px; font-size: 25px; letter-spacing: -.9px; }
.sidebar .brandmark { background: transparent; padding: 0; width: 35px; height: 39px; border-radius: 0; }
.workspace-name {
  color: #dbe8ff;
  font-size: 10px;
  margin: 0 14px 16px;
  letter-spacing: .12em;
}
.nav { gap: 6px; }
.nav button {
  position: relative;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #edf3ff;
  gap: 12px;
  padding: 11px 13px;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.nav .icon { width: 18px; height: 18px; }
.nav button:hover { background: #ffffff12; }
.nav button[aria-current="page"] {
  background: #fff;
  color: #004edc;
  border-color: #fff;
  box-shadow: 0 4px 12px #0031901c;
  font-weight: 500;
}
.sidebar button:focus-visible, .sidebar a:focus-visible { outline-color: #fff; outline-offset: 4px; }
.sidebar-account {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid #ffffff36;
}
.sidebar-account strong { font-size: 13px; font-weight: 500; display: block; }
.sidebar-account p { color: #dbe8ff; font-size: 12px; line-height: 1.6; margin: 7px 0 16px; }
.sidebar-account a { color: #fff; display: inline-flex; gap: 8px; align-items: center; font-size: 12px; text-decoration: none; min-height: 32px; }
.sidebar-account a:hover { text-decoration: underline; }
.sidebar-account .icon { width: 15px; height: 15px; }
.topbar {
  min-height: 72px;
  padding: 16px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  gap: 16px;
}
.breadcrumb { color: var(--muted); font-size: 13px; gap: 12px; }
.breadcrumb strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.topbar .actions { gap: 18px; }
.account-label { display: flex; align-items: center; gap: 9px; color: #526078; font-size: 12px; }
.account-label .icon { width: 18px; height: 18px; color: #0056fb; }
.signout { min-height: 40px; padding: 8px 12px; border: 1px solid #e3e8f0; font-size: 12px; background: #fff; border-radius: 8px; }
.content { max-width: 1440px; padding: 34px 36px 48px; }
.page-head { margin-bottom: 25px; gap: 18px; }
.page-head h1 { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -1.1px; line-height: 1.25; margin: 7px 0 10px; font-weight: 500; }
.page-head p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 640px; }
.eyebrow { color: #0056fb; font-size: 10px; letter-spacing: .12em; }
.btn { border-radius: 9px; border-color: #dce4ef; }
.btn.primary {
  background: linear-gradient(115deg, #0056fb, #175ee6);
  border-color: #0056fb;
  box-shadow: 0 2px 3px #0056fb12, inset 0 1px #ffffff30;
}
.btn.primary:hover:not(:disabled) { background: #064dcc; box-shadow: 0 4px 12px #0056fb20; }
.metric-grid { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 24px 0; }
.metric, .metric:first-child {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 22px 24px;
}
.metric + .metric { border-left: 1px solid var(--line); }
.metric span, .metric:first-child span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 32px; font-weight: 500; margin: 8px 0 5px; letter-spacing: -1px; }
.metric:first-child strong { color: #0056fb; }
.metric small, .metric:first-child small { color: #526078; font-size: 12px; line-height: 1.5; }
.toolbar { margin: 24px 0 18px; gap: 10px; }
.toolbar input, .toolbar select, .field input, .field textarea, .field select { border-color: #dce4ef; border-radius: 8px; }
.panel { border-radius: 18px; border-color: var(--line); box-shadow: 0 2px 4px #252a2702; margin: 20px 0; }
.panel-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; font-weight: 500; letter-spacing: -.2px; }
.panel-body { padding: 20px 24px 24px; }
.panel-body:has(> .table-scroll) { padding: 0; }
.panel-body > .table-scroll { margin: 0; }
.panel-body > .table-scroll td, .panel-body > .table-scroll th { padding: 16px 24px; }
th { background: #fafbfd; font-size: 10px; color: #526078; letter-spacing: .06em; }
td { color: #38443f; }
td strong { color: #252a27; }
.status-pill { border-radius: 6px; padding: 4px 8px; }
.freshness { padding: 4px 0 20px; }
.business-toolbar { border-radius: 11px; background: #fff; border-color: var(--line); }
.coverage { background: #eff5ff; color: #3e536f; border: 1px solid #e0eaff; border-radius: 10px; }
.workspace-tools { background: transparent; border-color: var(--line); border-radius: 10px; }
.footer-hint { margin-top: 24px; font-size: 11px; }
dialog { border-radius: 16px; border-color: #dce4ef; }
.dialog-head { padding: 24px; }
.dialog-head h2 { font-size: 23px; }
.dialog-body { padding: 24px; }
.login-layout { gap: 100px; }
.login-story .brand { margin-bottom: 55px; }
.login-story h1 { color: #252a27; font-size: clamp(38px, 4.7vw, 58px); letter-spacing: -2.3px; }
.login-card { border-radius: 17px; border-color: #e1e7f0; box-shadow: 0 16px 65px #0056fb08; }
.login-card h2 { font-size: 27px; }
.login-card .field input { border-radius: 9px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); background: white; color: #0056fb; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1100px) and (min-width: 701px) {
  .shell { grid-template-columns: 206px minmax(0, 1fr); }
  .sidebar { padding: 26px 12px 20px; }
  .topbar { padding: 16px 24px; }
  .content { padding: 30px 24px; }
  .account-label { display: none; }
  .metric, .metric:first-child { padding: 20px 18px; }
  .login-layout { gap: 40px; }
}
@media (max-width: 700px) {
  .testing-banner { gap: 6px; padding: 7px 16px; }
  .testing-banner > span:last-child { font-size: 11px; }
  .shell { display: block; padding: 8px; }
  .sidebar { position: static; height: auto; padding: 19px 16px 15px; gap: 18px; border-radius: 16px; }
  .sidebar .brand { font-size: 23px; padding: 0 6px; }
  .sidebar .brandmark { width: 30px; height: 32px; }
  .workspace-name, .sidebar-account { display: none; }
  .nav { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nav button { min-height: 63px; font-size: 12px; padding: 9px 5px; gap: 6px; border-radius: 8px; }
  .nav button:only-child { min-height: 44px; padding: 10px 12px; }
  .topbar { min-height: 60px; padding: 10px 17px; gap: 10px; margin-top: 8px; border-radius: 14px; }
  .breadcrumb { font-size: 11px; gap: 7px; }
  .breadcrumb strong { font-size: 12px; }
  .breadcrumb .workspace-crumb { display: none; }
  .account-label { display: none; }
  .topbar .actions { gap: 0; }
  .signout { min-height: 40px; font-size: 12px; }
  .content { padding: 25px 9px 32px; }
  .page-head h1 { font-size: 28px; max-width: none; }
  .page-head p { font-size: 14px; }
  .metric-grid { gap: 0; }
  .metric, .metric:first-child { padding: 17px 11px; }
  .metric span, .metric:first-child span { font-size: 12px; min-height: 36px; }
  .metric strong { font-size: 28px; }
  .metric small, .metric:first-child small { font-size: 11px; }
  .panel, .metric-grid { border-radius: 16px; }
  .panel-head { padding: 18px; }
  .panel-body { padding: 18px; }
  .panel-body > .table-scroll { margin: 0; }
  .panel-body > .table-scroll .responsive-table td { padding: 0; }
  .responsive-table tr { padding: 18px; }
  .table-count { font-size: 11px; }
  .business-toolbar { padding: 16px; }
  .login-layout { padding: 26px 20px 40px; }
  .login-story h1 { font-size: 40px; }
  .login-story .brand { margin-bottom: 28px; }
  .login-card { padding: 25px 22px; }
  .dialog-body, .dialog-head { padding: 20px; }
}
@media (max-width: 370px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric span, .metric:first-child span { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav button, .btn { transition: none; }
}

/* Proposed staff delivery panels. */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.overview-grid .panel { margin: 0; }
.overview-grid + .panel { margin-top: 22px; }
.client-stage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.client-stage strong { font-weight: 500; color: #0056fb; padding: 5px 9px; background: #eff5ff; border-radius: 6px; }
.client-contact { padding-top: 18px; }
.client-contact + .client-contact { border-top: 1px solid var(--line); margin-top: 18px; }
.client-contact-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.client-contact-head strong { font-size: 15px; font-weight: 500; }
.record-reference { font-size: 11px; color: var(--muted); }
.client-contact p { font-size: 13px; color: var(--muted); margin: 5px 0 16px; overflow-wrap: anywhere; }
.client-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 0 0 12px; }
.client-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.client-facts dd { font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.client-next { grid-column: 1 / -1; }
.next-action-title { font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.5px; margin: 0 0 8px; }
.next-action-owner { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.delivery-blockers { border-left: 2px solid #0056fb; padding-left: 14px; margin: 18px 0 24px; font-size: 13px; }
.delivery-blockers strong { font-size: 12px; font-weight: 500; }
.delivery-blockers ul { margin: 8px 0 0; padding-left: 16px; color: var(--muted); }
.delivery-blockers li + li { margin-top: 5px; }
@media (max-width: 1000px) { .overview-grid { grid-template-columns: 1fr; } }
