/* ADAPT/AI dashboard — approved October 2026 mock.
   Shared components follow the approved mock. Production adapters below retain
   existing authentication, navigation, settings, and member-permission hooks. */
:root {
  --paper: #faf6ec;
  --cream: #f5ebdd;
  --ink: #1a1810;
  --soft: #3e382a;
  --muted: #6e6650;
  --green: #2d5a3d;
  --green-dark: #244730;
  --terra: #b44e31;
  --terra-dark: #8d3824;
  --bone: #d2c9ae;
  --wash: #e8eee3;
  --field: #fffdf7;
  --line: #ded6c2;
  --input-border: #8e856f;
  --shadow: 0 18px 70px #1a18101a;
  --font: 'Albert Sans', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Existing operational panels consume these aliases. */
  --bg: var(--paper);
  --surface: var(--field);
  --bg-card: var(--field);
  --surface-2: var(--cream);
  --surface-sunk: var(--paper);
  --off-white: var(--cream);
  --text: var(--ink);
  --text-dim: var(--muted);
  --text-muted: var(--muted);
  --border: var(--line);
  --border-light: var(--line);
  --brand: var(--green);
  --brand-light: var(--green-dark);
  --brand-dim: var(--wash);
  --brand-subtle: var(--wash);
  --brand-glow: #c4d3bf;
  --sidebar-bg: var(--cream);
  --sidebar: var(--cream);
  --sidebar-fg: var(--muted);
  --sidebar-text: var(--muted);
  --sidebar-fg-hi: var(--ink);
  --sidebar-text-active: var(--paper);
  --sidebar-hover-bg: #ebe3d2;
  --sidebar-active-bg: var(--green);
  --sidebar-accent: var(--green);
  --heading: var(--font);
  --editorial: var(--serif);
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 10px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 10px 35px #1a181012;
}
.workspace-brand {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.workspace-brand * { box-sizing: border-box; }
[hidden], .workspace-brand [hidden] { display: none !important; }
.workspace-brand .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.workspace-brand :focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.workspace-brand input:not([type=checkbox]):not([type=radio]),
.workspace-brand textarea,
.workspace-brand select { min-width: 0; max-width: 100%; }
.ws-skip {
  position: fixed;
  left: 15px;
  top: -100px;
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  z-index: 9999;
}
.ws-skip:focus { top: 8px; }

/* Approved mock components: setup, Home, business, settings, and forms. */
.workspace-brand button {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: inherit;
  transition: background .18s,color .18s,border-color .18s,transform .18s;
}
.workspace-brand input {
  font: inherit;
  touch-action: manipulation;
}
.workspace-brand select {
  font: inherit;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%231a1810' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
  padding-right: 48px;
}
.workspace-brand textarea {
  font: inherit;
  touch-action: manipulation;
}
.workspace-brand a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  text-underline-offset: 4px;
}
.workspace-brand button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.workspace-brand button:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand input:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand select:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand textarea:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand summary:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.workspace-brand button:active:not(:disabled) {
  transform: translateY(1px);
}
.workspace-brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  font-size: clamp(34px,3.35vw,50px);
}
.workspace-brand h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  font-size: 30px;
}
.workspace-brand h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.workspace-brand p {
  margin: 0;
  color: var(--muted);
}
.workspace-brand small {
  font-size: 13px;
}
.workspace-brand .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.65;
}
.workspace-brand .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-dark);
}
.workspace-brand .muted {
  color: var(--muted);
}
.workspace-brand .tiny {
  font-size: 13px;
}
.workspace-brand .green {
  color: var(--green);
}
.workspace-brand .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.workspace-brand .business-glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bone);
  border-radius: 6px;
}
.workspace-brand .avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bone);
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.workspace-brand .connected .icon {
  width: 15px;
  height: 15px;
}
.workspace-brand .page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.workspace-brand .page-intro h1 {
  margin: 7px 0 12px;
}
.workspace-brand .page-intro p {
  max-width: 560px;
  font-size: 16px;
}
.workspace-brand .date-note {
  font-size: 13px;
  padding-top: 16px;
  white-space: nowrap;
  color: var(--muted);
}
.workspace-brand .page-enter {
  animation: enter .25s var(--ease);
}
.workspace-brand .button {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 46px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.3;
}
.workspace-brand .button:hover {
  background: var(--green-dark);
}
.workspace-brand .button.secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--bone);
}
.workspace-brand .button.secondary:hover {
  background: var(--wash);
  border-color: var(--green);
}
.workspace-brand .button.light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--green);
}
.workspace-brand .button.light:hover {
  background: var(--cream);
}
.workspace-brand .button.small {
  padding: 10px 16px;
  min-height: 44px;
}
.workspace-brand .link-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}
.workspace-brand .link-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workspace-brand .icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.workspace-brand .icon-button:hover {
  background: var(--wash);
}
.workspace-brand .button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.workspace-brand .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--wash);
  color: var(--green);
  white-space: nowrap;
}
.workspace-brand .pill.warm {
  background: var(--cream);
  color: var(--terra-dark);
}
.workspace-brand .pill .icon {
  width: 14px;
  height: 14px;
}
.workspace-brand .pill.neutral {
  background: var(--cream);
  color: var(--muted);
}
.workspace-brand .outline-note {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.workspace-brand .welcome-grid {
  display: grid;
  grid-template-columns: minmax(0,1.38fr) minmax(280px,1fr);
  gap: 30px;
  align-items: start;
}
.workspace-brand .setup-panel {
  border: 1px solid var(--bone);
  border-radius: 8px;
  overflow: hidden;
  background: var(--field);
}
.workspace-brand .panel-heading {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.workspace-brand .panel-heading h2 {
  font: 600 17px var(--font);
  letter-spacing: 0;
}
.workspace-brand .steps-count {
  font-size: 13px;
  color: var(--muted);
}
.workspace-brand .setup-step {
  display: flex;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.workspace-brand .setup-step:last-child {
  border-bottom: 0;
}
.workspace-brand .step-marker {
  display: grid;
  place-items: center;
  width: 29px;
  min-width: 29px;
  height: 29px;
  border: 1px solid var(--bone);
  border-radius: 50%;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}
.workspace-brand .step-marker.done {
  background: var(--wash);
  border-color: var(--wash);
  color: var(--green);
}
.workspace-brand .step-marker.current {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
.workspace-brand .step-content {
  min-width: 0;
  flex: 1;
}
.workspace-brand .step-content h3 {
  font-size: 16px;
}
.workspace-brand .step-content p {
  font-size: 14px;
  margin-top: 5px;
  max-width: 420px;
}
.workspace-brand .step-content .button {
  margin-top: 16px;
}
.workspace-brand .step-content .saved-detail {
  color: var(--green);
  font-size: 13px;
}
.workspace-brand .step-content button.link-button {
  margin-top: 5px;
}
.workspace-brand .setup-step.future {
  background: var(--paper);
}
.workspace-brand .setup-step.future h3 {
  color: var(--muted);
}
.workspace-brand .setup-step.future p {
  font-size: 13px;
}
.workspace-brand .setup-bottom {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.workspace-brand .setup-bottom .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.workspace-brand .agent-panel {
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.workspace-brand .agent-panel-body {
  padding: 26px;
}
.workspace-brand .agent-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.workspace-brand .agent-avatar {
  height: 42px;
  width: 42px;
  border: 1px solid #7d9a74;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.workspace-brand .wave {
  display: block;
  width: 2px;
  height: 12px;
  background: var(--paper);
  border-radius: 2px;
}
.workspace-brand .wave:nth-child(2) {
  height: 22px;
}
.workspace-brand .wave:nth-child(3) {
  height: 16px;
}
.workspace-brand .wave:nth-child(4) {
  height: 8px;
}
.workspace-brand .agent-label p {
  font-size: 12px;
  color: #e1e8d8;
}
.workspace-brand .agent-label b {
  font-size: 17px;
  font-weight: 500;
}
.workspace-brand .agent-panel .eyebrow {
  color: #e1e8d8;
  font-size: 10px;
}
.workspace-brand .agent-number {
  font: 400 clamp(24px,2.4vw,34px)/1.3 var(--serif);
  letter-spacing: -.025em;
  margin: 5px 0 8px;
  font-variant-numeric: tabular-nums;
}
.workspace-brand .agent-panel p {
  color: #e1e8d8;
  font-size: 13px;
}
.workspace-brand .number-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.workspace-brand .agent-panel .icon-button {
  color: var(--paper);
  border-color: #779274;
  width: 44px;
  height: 44px;
  min-width: 44px;
}
.workspace-brand .agent-panel .icon-button:hover {
  background: var(--green-dark);
}
.workspace-brand .agent-panel :focus-visible {
  outline-color: var(--paper);
}
.workspace-brand .readiness {
  list-style: none;
  padding: 18px 0 4px;
  margin: 20px 0 0;
  border-top: 1px solid #688467;
}
.workspace-brand .readiness li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.workspace-brand .readiness .state {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #e1e8d8;
  font-size: 12px;
}
.workspace-brand .readiness .state .icon {
  width: 15px;
  height: 15px;
}
.workspace-brand .readiness .waiting {
  opacity: .82;
}
.workspace-brand .agent-panel-art {
  height: 96px;
  overflow: hidden;
  background: var(--cream);
  border-top: 1px solid #779274;
}
.workspace-brand .agent-panel-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}
.workspace-brand .knowledge-strip {
  margin-top: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--bone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.workspace-brand .knowledge-strip h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.workspace-brand .knowledge-strip p {
  font-size: 14px;
  margin-top: 5px;
  max-width: 580px;
}
.workspace-brand .knowledge-strip .button {
  flex-shrink: 0;
}
.workspace-brand .saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px;
}
.workspace-brand .saved-tags span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--green);
}
.workspace-brand .saved-tags .icon {
  width: 14px;
  height: 14px;
}
.workspace-brand .status-note {
  padding: 20px 24px;
  border-left: 3px solid var(--terra);
  background: var(--cream);
  margin: 0 0 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.workspace-brand .status-note h3 {
  font-size: 17px;
}
.workspace-brand .status-note p {
  font-size: 14px;
  margin: 5px 0 12px;
}
.workspace-brand .status-note .icon {
  color: var(--terra-dark);
}
.workspace-brand .status-note.success {
  border-color: var(--green);
  background: var(--wash);
}
.workspace-brand .status-note.success .icon {
  color: var(--green);
}
.workspace-brand .status-note .button {
  margin-top: 4px;
}
.workspace-brand .daily-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr);
  gap: 34px;
}
.workspace-brand .section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.workspace-brand .section-top h2 {
  font-size: 27px;
}
.workspace-brand .section-top .count {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0;
}
.workspace-brand .attention-list {
  border-top: 1px solid var(--bone);
}
.workspace-brand .attention-row {
  padding: 23px 0;
  border-bottom: 1px solid var(--bone);
}
.workspace-brand .attention-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}
.workspace-brand .attention-head .avatar {
  background: var(--cream);
  height: 38px;
  width: 38px;
}
.workspace-brand .attention-head p {
  font-size: 12px;
}
.workspace-brand .attention-head b {
  font-size: 15px;
  font-weight: 600;
}
.workspace-brand .attention-head .pill {
  margin-left: auto;
}
.workspace-brand .attention-row h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 7px;
}
.workspace-brand .attention-row>p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 560px;
}
.workspace-brand .attention-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.workspace-brand .quiet-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.workspace-brand .quiet-stats b {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  display: block;
}
.workspace-brand .quiet-stats p {
  font-size: 12px;
  margin-top: 9px;
}
.workspace-brand .activity {
  margin-top: 29px;
}
.workspace-brand .activity h3 {
  font-size: 15px;
  margin-bottom: 18px;
}
.workspace-brand .activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
}
.workspace-brand .activity-item .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--green);
}
.workspace-brand .activity-item p {
  font-size: 13px;
  color: var(--soft);
}
.workspace-brand .activity-item small {
  color: var(--muted);
  font-size: 12px;
}
.workspace-brand .mini-agent {
  padding: 20px 22px;
  background: var(--wash);
  border: 1px solid #bdcbb7;
  border-radius: 7px;
}
.workspace-brand .mini-agent .agent-label {
  margin-bottom: 14px;
}
.workspace-brand .mini-agent .agent-avatar {
  border-color: #9aac91;
}
.workspace-brand .mini-agent .wave {
  background: var(--green);
}
.workspace-brand .mini-agent .agent-label p {
  color: var(--muted);
}
.workspace-brand .mini-agent .agent-label .pill {
  margin-left: auto;
}
.workspace-brand .mini-agent>p {
  font-size: 13px;
}
.workspace-brand .mini-agent .number-copy {
  margin: 12px 0 5px;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.workspace-brand .mini-agent .icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
}
.workspace-brand .improve-note {
  margin-top: 25px;
  padding: 22px 0;
  border-top: 1px solid var(--bone);
}
.workspace-brand .improve-note h3 {
  font: 400 23px var(--serif);
  margin-bottom: 8px;
}
.workspace-brand .improve-note p {
  font-size: 14px;
}
.workspace-brand .empty-state {
  padding: 40px 22px;
  text-align: center;
  border: 1px solid var(--bone);
  border-radius: 8px;
}
.workspace-brand .empty-state .icon {
  color: var(--green);
  width: 32px;
  height: 32px;
}
.workspace-brand .empty-state h2 {
  margin: 12px 0;
  font-size: 29px;
}
.workspace-brand .empty-state p {
  max-width: 420px;
  margin: auto;
  font-size: 14px;
}
.workspace-brand .business-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px 0 26px;
  border-bottom: 1px solid var(--bone);
  margin-bottom: 26px;
}
.workspace-brand .business-summary .business-glyph {
  width: 48px;
  height: 48px;
  background: var(--cream);
}
.workspace-brand .business-summary h2 {
  font-family: var(--font);
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 600;
}
.workspace-brand .business-summary p {
  font-size: 13px;
  margin-top: 4px;
}
.workspace-brand .business-summary .pill {
  margin-left: auto;
}
.workspace-brand .knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr);
  gap: 40px;
}
.workspace-brand .section-eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 7px;
}
.workspace-brand .settings-list {
  border-top: 1px solid var(--bone);
}
.workspace-brand .setting-row {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid var(--bone);
  background: transparent;
}
.workspace-brand .setting-row:hover {
  background: var(--cream);
}
.workspace-brand .setting-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: 7px;
  color: var(--green);
}
.workspace-brand .setting-text {
  flex: 1;
  min-width: 0;
}
.workspace-brand .setting-text b {
  display: flex;
  font-size: 15px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.workspace-brand .setting-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: break-word;
}
.workspace-brand .setting-row>.icon {
  width: 17px;
  color: var(--muted);
  margin-left: 8px;
  flex-shrink: 0;
}
.workspace-brand .knowledge-aside {
  padding: 24px;
  border: 1px solid var(--bone);
  border-radius: 8px;
  background: var(--cream);
  align-self: start;
}
.workspace-brand .knowledge-aside h2 {
  font-size: 28px;
  margin: 12px 0;
}
.workspace-brand .knowledge-aside p {
  font-size: 14px;
  line-height: 1.65;
}
.workspace-brand .quote {
  margin: 20px 0 14px;
  padding: 16px 0;
  border-top: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
  font: 400 19px/1.45 var(--serif);
  color: var(--ink);
}
.workspace-brand .knowledge-aside .tiny {
  font-size: 12px;
}
.workspace-brand .section-space {
  margin-top: 30px;
}
.workspace-brand .settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.workspace-brand .signin-method {
  margin-top: 20px;
  border-top: 1px solid var(--bone);
  padding-top: 20px;
}
.workspace-brand .signin-method>div {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 19px;
}
.workspace-brand .signin-method .icon {
  color: var(--green);
}
.workspace-brand .signin-method p {
  font-size: 13px;
}
.workspace-brand .signin-method .pill {
  margin-left: auto;
}
.workspace-brand .plain-note {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 16px;
}
.workspace-brand .ws-dialog {
  padding: 0;
  border: 1px solid var(--bone);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  box-shadow: var(--shadow);
  overflow: auto;
}
.workspace-brand .ws-dialog::backdrop {
  background: #1a181070;
  backdrop-filter: blur(3px);
}
.workspace-brand .ws-dialog[open] {
  animation: enter .22s var(--ease);
}
.workspace-brand .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--bone);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.workspace-brand .ws-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--bone);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.workspace-brand .sheet-head h2 {
  font-size: 28px;
  line-height: 1.2;
}
.workspace-brand .ws-dialog > header h2 {
  font-size: 28px;
  line-height: 1.2;
}
.workspace-brand .sheet-body {
  padding: 25px 28px 28px;
}
.workspace-brand .ws-dialog-body {
  padding: 25px 28px 28px;
}
.workspace-brand .sheet-body>p {
  font-size: 14px;
  margin-bottom: 24px;
}
.workspace-brand .ws-dialog-body>p {
  font-size: 14px;
  margin-bottom: 24px;
}
.workspace-brand .sheet-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  position: sticky;
  bottom: 0;
}
.workspace-brand .ws-dialog > footer {
  padding: 18px 28px;
  border-top: 1px solid var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  position: sticky;
  bottom: 0;
}
.workspace-brand .sheet-footer p {
  font-size: 12px;
}
.workspace-brand .ws-dialog > footer p {
  font-size: 12px;
}
.workspace-brand .field {
  margin-bottom: 20px;
}
.workspace-brand .field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.workspace-brand .field .label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.workspace-brand .field input {
  width: 100%;
  border: 1px solid var(--bone);
  border-radius: 5px;
  min-height: 48px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.5;
  border-color: var(--input-border);
  padding-left: 16px;
  padding-right: 16px;
}
.workspace-brand .field select {
  width: 100%;
  border: 1px solid var(--bone);
  border-radius: 5px;
  min-height: 50px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.5;
  border-color: var(--input-border);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%231a1810' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
  padding-right: 48px;
  padding-left: 16px;
}
.workspace-brand .field textarea {
  width: 100%;
  border: 1px solid var(--bone);
  border-radius: 5px;
  min-height: 95px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  border-color: var(--input-border);
  padding-left: 16px;
  padding-right: 16px;
}
.workspace-brand input.text-input {
  width: 100%;
  border: 1px solid var(--bone);
  border-radius: 5px;
  min-height: 48px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.5;
  border-color: var(--input-border);
}
.workspace-brand .field .input-note {
  font-size: 12px;
  margin-top: 7px;
}
.workspace-brand .field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  column-gap: 18px;
  row-gap: 0;
}
.workspace-brand .field-pair .field {
  min-width: 0;
}
.workspace-brand .error {
  color: var(--terra-dark);
  font-size: 13px;
  margin-top: 8px;
  min-height: 0;
}
.workspace-brand .error:not(:empty) {
  padding-top: 2px;
}
.workspace-brand .choice-group {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.workspace-brand .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--bone);
  border-radius: 5px;
  min-height: 51px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--field);
  font-size: 14px;
}
.workspace-brand .choice:has(input:checked) {
  background: var(--wash);
  border-color: var(--green);
}
.workspace-brand .choice input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.workspace-brand .choice span {
  flex: 1;
}
.workspace-brand .choice small {
  color: var(--muted);
  display: block;
}
.workspace-brand .range-field {
  display: flex;
  gap: 16px;
  align-items: center;
}
.workspace-brand .range-field input[type=range] {
  flex: 1;
  min-width: 0;
  accent-color: var(--green);
  padding: 0;
  border: 0;
  background: none;
}
.workspace-brand .range-number {
  display: flex;
  align-items: center;
  border: 1px solid var(--bone);
  border-radius: 5px;
  background: var(--field);
  padding-right: 12px;
  font-size: 13px;
  border-color: var(--input-border);
  gap: 2px;
}
.workspace-brand .range-number input[type=number] {
  width: 72px;
  border: 0;
  background: none;
  text-align: center;
  padding-left: 8px;
}
.workspace-brand .map-preview {
  height: 144px;
  position: relative;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid #bdcbb7;
  border-radius: 5px;
  margin-bottom: 24px;
}
.workspace-brand .map-preview svg {
  height: 100%;
  width: 100%;
  display: block;
}
.workspace-brand .map-caption {
  position: absolute;
  bottom: 9px;
  left: 12px;
  font-size: 11px;
  background: var(--paper);
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--muted);
}
.workspace-brand .info-block {
  padding: 15px 17px;
  background: var(--cream);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--soft);
  margin: 20px 0;
  overflow-wrap: break-word;
}
.workspace-brand .info-block strong {
  color: var(--green);
}
.workspace-brand .route-line {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
  margin-bottom: 22px;
}
.workspace-brand .route-line p {
  font-size: 12px;
}
.workspace-brand .route-line b {
  font-size: 14px;
}
.workspace-brand .route-line>.icon {
  color: var(--terra);
}
.workspace-brand .instructions {
  padding-left: 21px;
  font-size: 14px;
  color: var(--soft);
  line-height: 1.75;
}
.workspace-brand .instructions li {
  padding-left: 4px;
  margin-bottom: 10px;
}
.workspace-brand .service-edit {
  border: 1px solid var(--bone);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.workspace-brand .service-edit summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  background: var(--field);
}
.workspace-brand .service-edit summary::-webkit-details-marker {
  display: none;
}
.workspace-brand .service-edit summary b {
  font-size: 15px;
}
.workspace-brand .service-edit summary small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-brand .service-edit[open] summary {
  border-bottom: 1px solid var(--line);
}
.workspace-brand .service-edit .service-fields {
  padding: 20px 17px 4px;
}
.workspace-brand .advanced summary {
  font-size: 13px;
  color: var(--green);
  min-height: 44px;
  padding: 12px 0;
  background: none;
  border: 0!important;
}
.workspace-brand .advanced .field-pair {
  margin-top: 12px;
}
.workspace-brand .hours-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.workspace-brand .hours-row b {
  font-size: 14px;
}
.workspace-brand .hours-row input {
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
  background: var(--field);
  border: 1px solid var(--bone);
  border-radius: 4px;
  font-size: 15px;
}
.workspace-brand .sms-preview {
  background: var(--wash);
  padding: 17px 20px;
  border-radius: 8px 8px 8px 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--soft);
  margin: 16px 0;
}
.workspace-brand .toggle-row {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.workspace-brand .toggle-row span {
  flex: 1;
}
.workspace-brand .toggle-row b {
  display: block;
  font-size: 14px;
}
.workspace-brand .toggle-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.workspace-brand .toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  min-width: 22px;
  margin: 0 3px;
}
.workspace-brand .confirmation {
  padding: 15px 0 0;
  text-align: center;
}
.workspace-brand .confirmation h3 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}
.workspace-brand .confirmation p {
  font-size: 14px;
  margin: 12px 0 22px;
}
.workspace-brand .unsaved-note {
  padding: 16px 22px;
  border-top: 1px solid var(--bone);
  background: var(--cream);
  position: sticky;
  bottom: 0;
  z-index: 4;
}
.workspace-brand .unsaved-note p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.workspace-brand .unsaved-note .button-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.workspace-brand .bare-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.workspace-brand .field input[type=range] {
  padding: 0;
}
.workspace-brand .field input[type=number] {
  padding-right: 10px;
}
.workspace-brand .sheet-head .icon-button {
  flex-shrink: 0;
}
.workspace-brand .ws-dialog > header .icon-button {
  flex-shrink: 0;
}
.workspace-brand .sheet-body>p:last-child {
  margin-bottom: 0;
}
.workspace-brand .ws-dialog-body>p:last-child {
  margin-bottom: 0;
}
.workspace-brand .sheet-body form>.field:last-child {
  margin-bottom: 0;
}
.workspace-brand .ws-dialog-body form>.field:last-child {
  margin-bottom: 0;
}
.workspace-brand .field-pair+.info-block {
  margin-top: 4px;
}
.workspace-brand .sheet-body>.info-block:last-child {
  margin-bottom: 0;
}
.workspace-brand .ws-dialog-body>.info-block:last-child {
  margin-bottom: 0;
}
.workspace-brand form>.info-block:last-child {
  margin-bottom: 0;
}
.workspace-brand .error:empty {
  margin: 0;
}
.workspace-brand .sheet-footer>.button {
  flex-shrink: 0;
}
.workspace-brand .ws-dialog > footer>.button {
  flex-shrink: 0;
}
.workspace-brand .sheet-footer>.link-button {
  flex-shrink: 0;
}
.workspace-brand .ws-dialog > footer>.link-button {
  flex-shrink: 0;
}
.workspace-brand .sheet-footer .link-button {
  padding: 8px 0;
}
.workspace-brand .ws-dialog > footer .link-button {
  padding: 8px 0;
}
.workspace-brand .button .icon {
  flex-shrink: 0;
}
.workspace-brand .link-button .icon {
  flex-shrink: 0;
}
.workspace-brand .sheet-body p {
  overflow-wrap: break-word;
}
.workspace-brand .ws-dialog-body p {
  overflow-wrap: break-word;
}
.workspace-brand .route-line>div {
  flex: 1;
}
.workspace-brand .route-line>div:last-child {
  text-align: right;
}
.workspace-brand .pending-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #2d5a3d0e;
}
.workspace-brand .row-pending {
  display: inline-flex;
  align-items: center;
  padding: 3px;
}
.workspace-brand .home-greeting {
  padding: 4px 0 28px;
}
.workspace-brand .home-greeting h1 {
  font-size: clamp(42px,4.6vw,68px);
  margin: 12px 0 14px;
  letter-spacing: -.045em;
}
.workspace-brand .home-greeting h1>span {
  color: var(--terra);
}
.workspace-brand .home-greeting p {
  font-size: 17px;
  max-width: 760px;
  line-height: 1.6;
}
.workspace-brand .home-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
}
.workspace-brand .period-control {
  display: flex;
  align-items: center;
  gap: 16px;
}
.workspace-brand .home-display {
  display: flex;
  align-items: center;
  gap: 16px;
}
.workspace-brand .period-control label {
  font-size: 14px;
  font-weight: 600;
}
.workspace-brand .period-control select {
  min-height: 44px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--field);
  color: var(--ink);
  padding-left: 14px;
  font-size: 14px;
}
.workspace-brand .segmented {
  display: flex;
  align-items: center;
  border: 1px solid var(--bone);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.workspace-brand .segmented button {
  border: 0;
  border-radius: 3px;
  padding: 9px 14px;
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.workspace-brand .segmented button[aria-pressed=true] {
  background: var(--wash);
  color: var(--green);
  font-weight: 600;
}
.workspace-brand .home-display>.button {
  border-color: var(--bone);
  padding: 10px 16px;
  font-size: 13px;
  min-height: 46px;
}
.workspace-brand .home-display>.button>.icon {
  width: 17px;
}
.workspace-brand .agent-ribbon {
  padding: 18px 22px;
  border: 1px solid var(--bone);
  background: var(--wash);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.workspace-brand .ribbon-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 170px;
}
.workspace-brand .ribbon-identity .agent-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--green);
  color: var(--paper);
}
.workspace-brand .ribbon-identity b {
  font-size: 14px;
  font-weight: 600;
}
.workspace-brand .ribbon-identity b span {
  font-weight: 400;
  color: var(--muted);
}
.workspace-brand .ribbon-identity p {
  font-size: 13px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.workspace-brand .ribbon-status {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}
.workspace-brand .ribbon-status>span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
}
.workspace-brand .ribbon-status .icon {
  width: 15px;
  height: 15px;
}
.workspace-brand .agent-ribbon>.link-button {
  font-size: 13px;
  min-height: 44px;
}
.workspace-brand .ribbon-note {
  flex-basis: 100%;
  font-size: 14px;
  border-top: 1px solid var(--bone);
  padding-top: 16px;
  margin-top: -8px;
}
.workspace-brand .agent-ribbon.preparing {
  background: var(--cream);
}
.workspace-brand .value-grid {
  display: grid;
  grid-template-columns: minmax(250px,.95fr) minmax(0,1.65fr);
  gap: 20px;
  margin-bottom: 26px;
}
.workspace-brand .value-primary {
  border-radius: 8px;
  background: var(--green);
  color: var(--paper);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.workspace-brand .value-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
}
.workspace-brand .value-top .icon {
  color: #d7e2cc;
}
.workspace-brand .value-primary>strong {
  font: 400 clamp(42px,4.4vw,64px)/1.1 var(--serif);
  letter-spacing: -.04em;
  margin: 18px 0 12px;
  font-variant-numeric: tabular-nums;
}
.workspace-brand .value-primary h2 {
  font: 500 16px/1.4 var(--font);
  letter-spacing: 0;
  max-width: 220px;
}
.workspace-brand .value-primary p {
  color: #d7e2cc;
  font-size: 12px;
  margin: 7px 0 14px;
}
.workspace-brand .value-primary .link-button {
  color: var(--paper);
  font-size: 12px;
  border-top: 1px solid #faf6ec33;
  padding: 12px 0 0;
  margin-top: auto;
  width: 100%;
  justify-content: space-between;
  min-height: 44px;
}
.workspace-brand .value-primary .link-button .icon {
  width: 17px;
}
.workspace-brand .metric-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border: 1px solid var(--bone);
  border-radius: 8px;
  background: var(--field);
  padding: 24px 0;
}
.workspace-brand .metric-card {
  padding: 4px 22px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.workspace-brand .metric-card:first-child {
  border-left: 0;
}
.workspace-brand .metric-card>.icon {
  color: var(--green);
  margin-bottom: 25px;
}
.workspace-brand .metric-card>strong {
  font: 400 44px/1 var(--serif);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.workspace-brand .metric-card>strong small {
  font: 400 15px var(--font);
  color: var(--muted);
  letter-spacing: 0;
}
.workspace-brand .metric-card h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 15px 0 8px;
  max-width: 130px;
}
.workspace-brand .metric-card p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 150px;
}
.workspace-brand .overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(290px,1fr);
  gap: 24px;
  margin-bottom: 38px;
}
.workspace-brand .overview-grid.decisions-only {
  grid-template-columns: 1fr;
}
.workspace-brand .widget {
  border: 1px solid var(--bone);
  border-radius: 8px;
  background: var(--field);
  min-width: 0;
  overflow: hidden;
}
.workspace-brand .widget-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 18px;
}
.workspace-brand .widget-heading h2 {
  font: 600 18px/1.4 var(--font);
  letter-spacing: -.015em;
}
.workspace-brand .widget-heading p {
  font-size: 13px;
  margin-top: 5px;
}
.workspace-brand .widget-heading>.pill {
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 3px;
}
.workspace-brand .activity-chart {
  padding: 8px 24px 24px;
}
.workspace-brand .activity-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.workspace-brand .chart-grid path {
  stroke: var(--line);
  stroke-dasharray: 3 4;
  fill: none;
}
.workspace-brand .chart-bar {
  fill: #c6d7c2;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grow-in .5s var(--ease);
}
.workspace-brand .chart-missed {
  fill: var(--green);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grow-in .5s var(--ease);
}
.workspace-brand .activity-chart text {
  font: 12px var(--font);
  fill: var(--muted);
}
.workspace-brand .activity-chart text.chart-number {
  fill: var(--green);
  font-weight: 600;
}
.workspace-brand .chart-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.workspace-brand .chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-brand .chart-legend i {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 2px;
  background: #c6d7c2;
}
.workspace-brand .chart-legend span:last-child i {
  background: var(--green);
}
.workspace-brand .activity-table-wrap {
  padding: 0 26px 20px;
}
.workspace-brand .activity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.workspace-brand .activity-table th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.workspace-brand .activity-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.workspace-brand .activity-table th:first-child {
  padding-left: 0;
}
.workspace-brand .activity-table thead th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.workspace-brand .activity-table tbody th {
  font-weight: 500;
}
.workspace-brand .decision-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  width: 100%;
}
.workspace-brand .decision-compact:hover {
  background: var(--cream);
}
.workspace-brand .decision-compact>span:nth-child(2) {
  flex: 1;
}
.workspace-brand .decision-compact b {
  font-size: 14px;
  display: block;
}
.workspace-brand .decision-compact small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.workspace-brand .decision-compact em {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  font-style: normal;
  display: block;
  margin-top: 12px;
}
.workspace-brand .decision-compact>.icon {
  width: 18px;
  color: var(--green);
}
.workspace-brand .count {
  font-family: var(--font);
  font-size: 12px;
}
.workspace-brand .caught-up {
  padding: 30px 26px 42px;
  max-width: 340px;
}
.workspace-brand .caught-up>.icon {
  color: var(--green);
  background: var(--wash);
  box-sizing: content-box;
  padding: 10px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.workspace-brand .caught-up h3 {
  font-size: 16px;
}
.workspace-brand .caught-up p {
  font-size: 13px;
  margin-top: 8px;
}
.workspace-brand .strengthen-widget {
  margin: 30px 0 34px;
}
.workspace-brand .strengthen-widget .section-top {
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.workspace-brand .strengthen-widget h2 {
  font-size: 30px;
}
.workspace-brand .strengthen-widget .section-top p {
  font-size: 14px;
  margin-top: 7px;
}
.workspace-brand .improvement-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.workspace-brand .improvement-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.workspace-brand .improvement-grid:has(>.improvement-card:nth-child(4)) {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.workspace-brand .improvement-card {
  border: 1px solid var(--bone);
  border-radius: 7px;
  padding: 20px;
  text-align: left;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background .18s,border-color .18s;
}
.workspace-brand .improvement-card:hover {
  background: var(--field);
  border-color: var(--green);
}
.workspace-brand .improvement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 16px;
}
.workspace-brand .improvement-meta>span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-brand .improvement-meta small {
  font-size: 10px;
}
.workspace-brand .improvement-card b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.workspace-brand .improvement-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 22px;
}
.workspace-brand .improvement-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  width: 100%;
}
.workspace-brand .improvement-action .icon {
  width: 17px;
}
.workspace-brand .improvement-note {
  font-size: 12px;
  margin-top: 13px;
}
.workspace-brand .completed-improvements {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px;
  background: var(--wash);
  border: 1px solid var(--bone);
  border-radius: 6px;
  color: var(--green);
  font-size: 14px;
}
.workspace-brand .recent-widget {
  margin: 26px 0;
}
.workspace-brand .recent-widget .widget-heading {
  align-items: center;
}
.workspace-brand .recent-widget .widget-heading a {
  font-size: 13px;
  white-space: nowrap;
}
.workspace-brand .recent-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.workspace-brand .recent-row:hover {
  background: var(--cream);
}
.workspace-brand .recent-row>span:nth-child(2) {
  flex: 1;
}
.workspace-brand .recent-row b {
  font-size: 14px;
  display: block;
}
.workspace-brand .recent-row small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-brand .recent-time {
  font-size: 12px;
  color: var(--muted);
  min-width: 70px;
  text-align: right;
}
.workspace-brand .fresh-inbox {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-top: 1px solid var(--line);
}
.workspace-brand .fresh-inbox>.icon {
  color: var(--green);
  width: 24px;
  height: 24px;
}
.workspace-brand .fresh-inbox h3 {
  font-size: 15px;
}
.workspace-brand .fresh-inbox p {
  font-size: 13px;
  margin-top: 5px;
}
.workspace-brand .value-definitions {
  margin: 0;
}
.workspace-brand .ws-definitions {
  margin: 0;
}
.workspace-brand .value-definitions>div {
  padding: 20px 0;
  border-top: 1px solid var(--bone);
}
.workspace-brand .ws-definitions>div {
  padding: 20px 0;
  border-top: 1px solid var(--bone);
}
.workspace-brand .value-definitions dt {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.workspace-brand .ws-definitions dt {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.workspace-brand .value-definitions dd {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.workspace-brand .ws-definitions dd {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.workspace-brand .thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--wash);
  color: var(--green);
  white-space: nowrap;
}
.workspace-brand .thread-badge.needs {
  background: #f5e4d6;
  color: var(--terra-dark);
}
.workspace-brand .thread-badge.working {
  background: #eee9dc;
  color: var(--soft);
}
.workspace-brand .thread-badge.done {
  background: var(--wash);
  color: var(--green);
}
.workspace-brand .integration-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  min-height: 44px;
  padding: 8px 4px;
  white-space: nowrap;
}
.workspace-brand .integration-header .icon {
  width: 17px;
  height: 17px;
}
.workspace-brand .integration-missing {
  border: 1px solid var(--bone);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--soft);
}
.workspace-brand .jobber-prompt {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--bone);
  border-radius: 8px;
  background: var(--cream);
  padding: 24px 26px;
  margin: 0 0 26px;
}
.workspace-brand .jobber-prompt>div {
  flex: 1;
  min-width: 0;
}
.workspace-brand .integration-glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: 8px;
  color: var(--green);
}
.workspace-brand .integration-glyph .icon {
  width: 22px;
  height: 22px;
}
.workspace-brand .jobber-prompt .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.workspace-brand .jobber-prompt h2 {
  font-size: 25px;
  line-height: 1.2;
}
.workspace-brand .jobber-prompt p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 640px;
  margin-top: 8px;
}
.workspace-brand .jobber-prompt>.button {
  flex-shrink: 0;
}
.workspace-brand .jobber-settings {
  margin-bottom: 34px;
  background: var(--wash);
}
.workspace-brand .jobber-settings h2 {
  font-size: 30px;
}
.workspace-brand .jobber-settings p {
  font-size: 14px;
  max-width: 670px;
}
.workspace-brand .integration-account {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--bone);
  border-radius: 7px;
  background: var(--field);
}
.workspace-brand .integration-account>div {
  flex: 1;
  min-width: 0;
}
.workspace-brand .integration-account h3 {
  font-size: 17px;
}
.workspace-brand .integration-account p {
  font-size: 13px;
  margin-top: 4px;
}
.workspace-brand .integration-account>.pill {
  font-size: 11px;
}
.workspace-brand .integration-benefits {
  margin: 24px 0 0;
  border-top: 1px solid var(--bone);
}
.workspace-brand .integration-benefits>div {
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.workspace-brand .integration-benefits .icon {
  color: var(--green);
  margin-top: 2px;
}
.workspace-brand .integration-benefits b {
  font-size: 14px;
  display: block;
}
.workspace-brand .integration-benefits small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.55;
}
.workspace-brand .metric-explainer {
  font-size: 12px;
  min-height: 44px;
  margin-top: -20px;
  margin-bottom: 14px;
}
.workspace-brand .metric-explainer .icon {
  width: 15px;
  height: 15px;
}

/* Approved component breakpoints. */
@media(min-width:1600px) {
  .workspace-brand .welcome-grid {
    gap: 46px;
  }
  .workspace-brand .agent-panel-body {
    padding: 30px;
  }
  .workspace-brand .setup-step {
    padding: 27px 30px;
  }
  .workspace-brand .agent-panel-art {
    height: 130px;
  }
  .workspace-brand .value-primary {
    padding: 30px 32px;
  }
  .workspace-brand .metric-card {
    padding: 6px 28px;
  }
}
@media(max-width:1250px) {
  .workspace-brand .value-grid {
    grid-template-columns: minmax(230px,.9fr) minmax(0,1.4fr);
  }
  .workspace-brand .metric-card {
    padding: 4px 16px;
  }
  .workspace-brand .metric-card>strong {
    font-size: 38px;
  }
  .workspace-brand .metric-card h3 {
    font-size: 13px;
  }
  .workspace-brand .metric-card p {
    font-size: 11px;
  }
  .workspace-brand .ribbon-status {
    gap: 14px;
  }
  .workspace-brand .agent-ribbon {
    gap: 16px;
  }
  .workspace-brand .overview-grid {
    grid-template-columns: minmax(0,1.15fr) minmax(280px,1fr);
    gap: 18px;
  }
  .workspace-brand .widget-heading {
    padding: 22px 20px 16px;
  }
  .workspace-brand .widget-heading>.pill {
    display: none;
  }
  .workspace-brand .decision-compact {
    padding: 19px 20px;
    gap: 10px;
  }
  .workspace-brand .improvement-grid:has(>.improvement-card:nth-child(4)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .workspace-brand .recent-row {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media(max-width:1150px) {
  .workspace-brand .welcome-grid {
    gap: 22px;
    grid-template-columns: minmax(0,1.25fr) minmax(255px,1fr);
  }
  .workspace-brand .setup-step {
    padding: 21px 21px;
  }
  .workspace-brand .agent-panel-body {
    padding: 21px;
  }
  .workspace-brand .daily-grid {
    gap: 24px;
    grid-template-columns: minmax(0,1.5fr) minmax(235px,1fr);
  }
  .workspace-brand .date-note {
    display: none;
  }
  .workspace-brand .jobber-prompt {
    gap: 18px;
    padding: 22px;
  }
  .workspace-brand .jobber-prompt>.integration-glyph {
    display: none;
  }
  .workspace-brand .jobber-prompt p {
    max-width: 470px;
  }
}
@media(max-width:1050px) and (min-width:901px) {
  .workspace-brand .value-grid {
    grid-template-columns: 1fr;
  }
  .workspace-brand .value-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
  }
  .workspace-brand .value-top {
    grid-column: 1/-1;
  }
  .workspace-brand .value-primary>strong {
    grid-row: 2/4;
  }
  .workspace-brand .value-primary h2 {
    margin-top: 20px;
  }
  .workspace-brand .value-primary .link-button {
    grid-column: 1/-1;
    margin-top: 10px;
  }
  .workspace-brand .metric-card h3 {
    max-width: none;
  }
  .workspace-brand .metric-card p {
    max-width: none;
  }
  .workspace-brand .overview-grid {
    grid-template-columns: 1fr;
  }
  .workspace-brand .period-control label {
    display: none;
  }
  .workspace-brand .home-display {
    gap: 10px;
  }
}
@media(max-width:900px) {
  .workspace-brand .settings-columns {
    gap: 26px;
  }
  .workspace-brand .home-greeting h1 {
    font-size: 56px;
  }
  .workspace-brand .agent-ribbon {
    padding: 18px;
  }
  .workspace-brand .ribbon-status {
    gap: 12px;
  }
  .workspace-brand .ribbon-status>span {
    font-size: 11px;
  }
  .workspace-brand .segmented button {
    min-height: 40px;
  }
  .workspace-brand .improvement-card {
    padding: 20px;
  }
  .workspace-brand .home-controls {
    gap: 14px;
  }
  .workspace-brand .integration-header {
    font-size: 12px;
  }
  .workspace-brand .integration-header.connected {
    display: none;
  }
  .workspace-brand .integration-missing {
    padding: 8px 12px;
  }
  .workspace-brand .jobber-settings {
    align-items: flex-start;
  }
  .workspace-brand .jobber-prompt>.button {
    font-size: 13px;
    padding: 12px 16px;
  }
}
@media(max-width:680px) {
  .workspace-brand .page-intro {
    margin-bottom: 25px;
    gap: 12px;
  }
  .workspace-brand .page-intro h1 {
    font-size: 37px;
    line-height: 1.1;
  }
  .workspace-brand .page-intro p {
    font-size: 16px;
  }
  .workspace-brand .page-intro>.button {
    align-self: center;
  }
  .workspace-brand .welcome-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .workspace-brand .daily-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .workspace-brand .knowledge-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .workspace-brand .settings-columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .workspace-brand .agent-side {
    grid-row: 1;
  }
  .workspace-brand .agent-panel-body {
    padding: 20px;
  }
  .workspace-brand .agent-label {
    margin-bottom: 17px;
  }
  .workspace-brand .agent-number {
    font-size: 30px;
  }
  .workspace-brand .agent-panel-art {
    display: none;
  }
  .workspace-brand .readiness {
    margin-top: 13px;
    padding-top: 14px;
  }
  .workspace-brand .readiness li {
    margin-bottom: 10px;
  }
  .workspace-brand .agent-panel p {
    font-size: 13px;
  }
  .workspace-brand .setup-panel {
    border-radius: 7px;
  }
  .workspace-brand .panel-heading {
    padding: 20px;
  }
  .workspace-brand .setup-step {
    padding: 22px 20px;
    gap: 12px;
  }
  .workspace-brand .setup-step p {
    font-size: 14px;
  }
  .workspace-brand .setup-step h3 {
    font-size: 16px;
  }
  .workspace-brand .knowledge-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 26px;
    padding: 24px 0;
  }
  .workspace-brand .knowledge-strip p {
    font-size: 14px;
  }
  .workspace-brand .saved-tags {
    gap: 12px;
  }
  .workspace-brand .daily-grid .daily-aside {
    grid-row: auto;
  }
  .workspace-brand .attention-row h3 {
    font-size: 18px;
  }
  .workspace-brand .attention-head .pill {
    font-size: 11px;
  }
  .workspace-brand .attention-actions {
    align-items: flex-start;
    gap: 8px;
  }
  .workspace-brand .attention-actions .button {
    font-size: 13px;
    padding: 12px 14px;
  }
  .workspace-brand .attention-actions .link-button {
    font-size: 13px;
  }
  .workspace-brand .business-summary {
    align-items: flex-start;
  }
  .workspace-brand .business-summary .pill {
    display: none;
  }
  .workspace-brand .knowledge-aside {
    margin-top: 0;
  }
  .workspace-brand .setting-row {
    min-height: 90px;
  }
  .workspace-brand .setting-text b {
    font-size: 16px;
  }
  .workspace-brand .setting-text span {
    font-size: 14px;
  }
  .workspace-brand .settings-columns .section-space {
    margin-top: 0;
  }
  .workspace-brand .ws-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 8px;
  }
  .workspace-brand .sheet-head {
    padding: 19px 20px;
    gap: 18px;
  }
  .workspace-brand .ws-dialog > header {
    padding: 19px 20px;
    gap: 18px;
  }
  .workspace-brand .sheet-head h2 {
    font-size: 26px;
  }
  .workspace-brand .ws-dialog > header h2 {
    font-size: 26px;
  }
  .workspace-brand .sheet-body {
    padding: 22px 20px;
  }
  .workspace-brand .ws-dialog-body {
    padding: 22px 20px;
  }
  .workspace-brand .sheet-footer {
    padding: 16px 20px;
    gap: 14px;
  }
  .workspace-brand .ws-dialog > footer {
    padding: 16px 20px;
    gap: 14px;
  }
  .workspace-brand .sheet-footer p {
    max-width: 125px;
    font-size: 11px;
  }
  .workspace-brand .ws-dialog > footer p {
    max-width: 125px;
    font-size: 11px;
  }
  .workspace-brand .sheet-footer .button {
    font-size: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace-brand .ws-dialog > footer .button {
    font-size: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace-brand .field label {
    font-size: 15px;
  }
  .workspace-brand .field .label {
    font-size: 15px;
  }
  .workspace-brand .choice {
    font-size: 15px;
  }
  .workspace-brand .field-pair {
    gap: 12px;
  }
  .workspace-brand .route-line {
    gap: 12px;
  }
  .workspace-brand .route-line b {
    font-size: 13px;
  }
  .workspace-brand .route-line p {
    font-size: 12px;
  }
  .workspace-brand .hours-row {
    grid-template-columns: 80px 1fr;
  }
  .workspace-brand .status-note {
    padding: 18px;
  }
  .workspace-brand .quiet-stats {
    gap: 12px;
  }
  .workspace-brand .quiet-stats b {
    font-size: 32px;
  }
  .workspace-brand .quiet-stats p {
    font-size: 12px;
  }
  .workspace-brand .signin-method>div {
    gap: 10px;
  }
  .workspace-brand .signin-method .pill {
    font-size: 11px;
  }
  .workspace-brand .signin-method p {
    overflow-wrap: anywhere;
  }
  .workspace-brand .attention-row>p {
    font-size: 16px;
  }
  .workspace-brand .sheet-body>p {
    font-size: 16px;
  }
  .workspace-brand .ws-dialog-body>p {
    font-size: 16px;
  }
  .workspace-brand .knowledge-aside p {
    font-size: 16px;
  }
  .workspace-brand .step-content p {
    font-size: 16px;
  }
  .workspace-brand .knowledge-aside .tiny {
    font-size: 13px;
  }
  .workspace-brand .home-greeting {
    padding: 2px 0 24px;
  }
  .workspace-brand .home-greeting h1 {
    font-size: 44px;
    margin: 12px 0 15px;
  }
  .workspace-brand .home-greeting p {
    font-size: 16px;
    line-height: 1.6;
  }
  .workspace-brand .home-greeting .eyebrow {
    font-size: 10px;
    letter-spacing: .09em;
  }
  .workspace-brand .home-controls {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0 22px;
    gap: 14px;
  }
  .workspace-brand .period-control {
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }
  .workspace-brand .period-control label {
    font-size: 14px;
  }
  .workspace-brand .period-control select {
    font-size: 16px;
    min-height: 46px;
    padding-left: 12px;
    max-width: 175px;
  }
  .workspace-brand .home-display {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .workspace-brand .home-display>.button {
    padding: 10px 13px;
    min-height: 48px;
  }
  .workspace-brand .segmented button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .workspace-brand .agent-ribbon {
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
  }
  .workspace-brand .ribbon-identity {
    flex: 1;
  }
  .workspace-brand .ribbon-status {
    flex-basis: 100%;
    order: 3;
    gap: 12px;
    justify-content: space-between;
  }
  .workspace-brand .ribbon-status>span {
    font-size: 11px;
    gap: 4px;
  }
  .workspace-brand .ribbon-status .icon {
    width: 13px;
    height: 13px;
  }
  .workspace-brand .agent-ribbon>.link-button {
    font-size: 12px;
  }
  .workspace-brand .ribbon-note {
    order: 4;
    font-size: 14px;
    margin-top: 0;
    padding-top: 16px;
  }
  .workspace-brand .value-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }
  .workspace-brand .value-primary {
    padding: 24px;
  }
  .workspace-brand .value-primary>strong {
    font-size: 56px;
    margin: 16px 0 10px;
  }
  .workspace-brand .value-primary h2 {
    font-size: 16px;
    max-width: none;
  }
  .workspace-brand .value-primary p {
    font-size: 13px;
  }
  .workspace-brand .value-primary .link-button {
    font-size: 13px;
    margin-top: 8px;
    padding-top: 12px;
    min-height: 48px;
  }
  .workspace-brand .metric-cards {
    padding: 20px 0;
  }
  .workspace-brand .metric-card {
    padding: 0 14px;
  }
  .workspace-brand .metric-card>.icon {
    margin-bottom: 18px;
    width: 18px;
    height: 18px;
  }
  .workspace-brand .metric-card>strong {
    font-size: 34px;
  }
  .workspace-brand .metric-card>strong small {
    font-size: 12px;
  }
  .workspace-brand .metric-card h3 {
    font-size: 12px;
    margin: 12px 0 0;
    line-height: 1.5;
  }
  .workspace-brand .metric-card p {
    display: none;
  }
  .workspace-brand .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .workspace-brand .widget-heading {
    padding: 20px;
  }
  .workspace-brand .widget-heading h2 {
    font-size: 17px;
  }
  .workspace-brand .widget-heading p {
    font-size: 13px;
  }
  .workspace-brand .activity-chart {
    padding: 5px 15px 22px;
  }
  .workspace-brand .chart-legend {
    font-size: 10px;
    gap: 12px;
    margin-top: 12px;
  }
  .workspace-brand .activity-chart text {
    font-size: 14px;
  }
  .workspace-brand .activity-chart text.chart-number {
    font-size: 14px;
  }
  .workspace-brand .activity-table-wrap {
    padding: 0 20px 20px;
  }
  .workspace-brand .activity-table {
    font-size: 12px;
  }
  .workspace-brand .activity-table th {
    padding: 10px 5px;
  }
  .workspace-brand .activity-table td {
    padding: 10px 5px;
  }
  .workspace-brand .decision-compact {
    padding: 20px;
  }
  .workspace-brand .decision-compact b {
    font-size: 15px;
  }
  .workspace-brand .decision-compact small {
    font-size: 13px;
  }
  .workspace-brand .decision-compact em {
    font-size: 13px;
  }
  .workspace-brand .strengthen-widget .section-top {
    display: block;
  }
  .workspace-brand .strengthen-widget h2 {
    font-size: 29px;
  }
  .workspace-brand .strengthen-widget .section-top p {
    font-size: 15px;
  }
  .workspace-brand .improvement-count {
    display: block;
    margin-top: 10px;
  }
  .workspace-brand .improvement-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workspace-brand .improvement-grid:has(>.improvement-card:nth-child(4)) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workspace-brand .improvement-card {
    padding: 20px;
  }
  .workspace-brand .improvement-meta {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .workspace-brand .improvement-meta small {
    font-size: 11px;
  }
  .workspace-brand .improvement-card b {
    font-size: 17px;
  }
  .workspace-brand .improvement-card p {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: 400px;
  }
  .workspace-brand .improvement-action {
    font-size: 14px;
  }
  .workspace-brand .improvement-note {
    font-size: 13px;
    line-height: 1.6;
  }
  .workspace-brand .recent-row {
    gap: 12px;
    padding: 18px;
  }
  .workspace-brand .recent-row b {
    font-size: 14px;
  }
  .workspace-brand .recent-row small {
    font-size: 12px;
  }
  .workspace-brand .recent-time {
    display: none;
  }
  .workspace-brand .recent-row>.icon {
    display: none;
  }
  .workspace-brand .recent-widget .widget-heading {
    gap: 10px;
  }
  .workspace-brand .recent-widget .widget-heading p {
    display: none;
  }
  .workspace-brand .recent-widget .widget-heading a {
    font-size: 12px;
  }
  .workspace-brand .fresh-inbox {
    padding: 22px 20px;
  }
  .workspace-brand .fresh-inbox p {
    font-size: 14px;
  }
  .workspace-brand .thread-badge {
    font-size: 11px;
  }
  .workspace-brand .jobber-prompt {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 18px;
  }
  .workspace-brand .jobber-prompt h2 {
    font-size: 28px;
  }
  .workspace-brand .jobber-settings h2 {
    font-size: 28px;
  }
  .workspace-brand .jobber-prompt p {
    font-size: 15px;
  }
  .workspace-brand .jobber-prompt>.button {
    font-size: 14px;
    min-height: 48px;
  }
  .workspace-brand .integration-account {
    padding: 18px;
    gap: 12px;
  }
  .workspace-brand .integration-account>.pill {
    display: none;
  }
  .workspace-brand .integration-benefits b {
    font-size: 15px;
  }
  .workspace-brand .integration-benefits small {
    font-size: 14px;
  }
  .workspace-brand .integration-header {
    gap: 6px;
    font-size: 12px;
  }
  .workspace-brand .integration-missing .icon {
    width: 15px;
    height: 15px;
  }
  .workspace-brand .business-summary>.link-button {
    font-size: 12px;
    margin-left: 54px;
  }
  .workspace-brand .business-summary:has(>.link-button) {
    flex-wrap: wrap;
  }
}
@media(max-width:480px) {
  .workspace-brand .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .workspace-brand .sheet-head h2 {
    font-size: 25px;
  }
  .workspace-brand .ws-dialog > header h2 {
    font-size: 25px;
  }
  .workspace-brand .route-line {
    display: grid;
    grid-template-columns: 1fr 20px;
    gap: 14px;
    padding: 18px 0;
  }
  .workspace-brand .route-line>div:first-child {
    grid-column: 1;
  }
  .workspace-brand .route-line>.icon {
    grid-column: 2;
    grid-row: 1/3;
    transform: rotate(90deg);
  }
  .workspace-brand .route-line>div:last-child {
    grid-column: 1;
    text-align: left;
  }
  .workspace-brand .route-line b {
    font-size: 15px;
  }
  .workspace-brand .route-line p {
    font-size: 12px;
  }
  .workspace-brand .ribbon-status {
    justify-content: flex-start;
    column-gap: 14px;
  }
  .workspace-brand .ribbon-status>span:last-child {
    flex-basis: 100%;
  }
  .workspace-brand .home-greeting h1 {
    font-size: 41px;
  }
  .workspace-brand .home-display>.button {
    font-size: 12px;
  }
  .workspace-brand .home-display>.button>.icon {
    width: 15px;
  }
  .workspace-brand .metric-card {
    padding: 0 12px;
  }
  .workspace-brand .metric-card h3 {
    font-size: 11px;
  }
  .workspace-brand .metric-card>strong {
    font-size: 32px;
  }
  .workspace-brand .value-primary h2 {
    max-width: 250px;
  }
  .workspace-brand .recent-row {
    flex-wrap: wrap;
  }
  .workspace-brand .recent-row .thread-badge {
    margin-left: 52px;
  }
  .workspace-brand .recent-row>span:nth-child(2) {
    flex-basis: calc(100% - 60px);
  }
  .workspace-brand .sheet-footer p {
    max-width: 100px;
  }
  .workspace-brand .ws-dialog > footer p {
    max-width: 100px;
  }
  .workspace-brand .improvement-meta small {
    font-size: 12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .workspace-brand *::before {
    animation: none!important;
    transition: none!important;
  }
  .workspace-brand *::after {
    animation: none!important;
    transition: none!important;
  }
  .workspace-brand .chart-bar {
    animation: none;
  }
  .workspace-brand .chart-missed {
    animation: none;
  }
}
@media(forced-colors:active) {
  .workspace-brand select {
    appearance: auto;
    background-image: none;
    padding-right: 12px;
  }
  .workspace-brand .field select {
    appearance: auto;
    background-image: none;
    padding-right: 12px;
  }
  .workspace-brand .pending-dot {
    border: 4px solid CanvasText;
  }
  .workspace-brand .chart-bar {
    fill: GrayText;
  }
  .workspace-brand .chart-missed {
    fill: CanvasText;
  }
}
@keyframes enter { from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)} }
@keyframes grow-in { from{transform:scaleY(.03)}to{transform:scaleY(1)} }


/* Authenticated production shell. */
.workspace-brand #app-shell { display: flex; min-height: 100dvh; }
.workspace-brand #sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 226px;
  height: 100dvh;
  max-height: 100dvh;
  padding: 28px 18px 24px;
  overflow-y: auto;
  background: var(--cream);
  border-right: 1px solid var(--line);
}
.workspace-brand #main-content {
  flex: 1;
  min-width: 0;
  min-height: 100dvh;
  margin-left: 226px;
  padding: 0;
  background: var(--paper);
}
.workspace-brand .sidebar-header { padding: 0; border: 0; }
.workspace-brand .ws-wordmark {
  display: inline-block;
  color: var(--ink);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.075em;
  text-decoration: none;
}
.workspace-brand .ws-wordmark span { color: var(--terra); }
.workspace-brand .ws-wordmark sup {
  position: relative;
  top: -15px;
  left: 3px;
  font: 10px var(--font);
  letter-spacing: 0;
  vertical-align: baseline;
}
.workspace-brand .sidebar-header .ws-wordmark { margin: 0 14px 35px; }
.workspace-brand .sidebar-logo { display: flex; align-items: center; gap: 10px; margin: 0 14px 28px; }
.workspace-brand .logo-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--bone);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
.workspace-brand .sidebar-biz-name {
  color: var(--ink);
  font: 700 13px/1.5 var(--font);
  white-space: normal;
  overflow-wrap: anywhere;
}
.workspace-brand .sidebar-plan-badge {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font: 400 12px/1.5 var(--font);
  letter-spacing: 0;
  text-transform: none;
}
.workspace-brand .sidebar-plan-badge::before { display: none; }
.workspace-brand .sidebar-nav { display: flex; flex: 0; flex-direction: column; gap: 8px; padding: 0; }
.workspace-brand .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: 400 14px/1.5 var(--font);
  text-align: left;
}
.workspace-brand .nav-item > span:not(.ws-dot) { white-space: nowrap; }
.workspace-brand .nav-item > svg:first-child { width: 20px; height: 20px; flex-shrink: 0; opacity: 1; stroke-width: 1.65; }
.workspace-brand .nav-item:hover:not(.active) { background: #ebe3d2; color: var(--ink); }
.workspace-brand .nav-item.active { background: var(--green); color: var(--paper); font-weight: 600; }
.workspace-brand .nav-item.active::before { display: none; }
.owner-workspace .sidebar-section-label,
.owner-workspace .nav-item:is([data-view=customers], [data-view=bookings], [data-view=pipeline], [data-view=team], [data-view=integrations]) { display: none !important; }
.workspace-brand .sidebar-bottom { margin-top: auto; padding: 28px 0 0; border: 0; }
.workspace-brand .ws-help-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 14px;
}
.workspace-brand .sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 20px 0 0;
  border-top: 1px solid var(--bone);
  border-radius: 0;
  cursor: default;
}
.workspace-brand .sidebar-user:hover { background: transparent; }
.workspace-brand .sidebar-user-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--soft);
  font: 600 13px var(--font);
}
.workspace-brand .sidebar-user-info { flex: 1; min-width: 0; gap: 0; }
.workspace-brand .sidebar-user-name { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; }
.workspace-brand .sidebar-user-role { color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.workspace-brand .ws-account-button { margin: 0; padding: 0; border: 0; min-width: 44px; min-height: 44px; background: transparent; color: var(--ink); }
.workspace-brand .ws-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #2d5a3d0e;
}
.workspace-brand .nav-item > .ws-dot { margin-left: auto; margin-right: 4px; }
.workspace-brand .nav-item.active > .ws-dot { background: var(--green); outline: 2px solid var(--paper); box-shadow: none; }
.workspace-brand .dashboard-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 82px;
  min-height: 82px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 10;
}
.workspace-brand .topbar-breadcrumb { font-size: 14px; color: var(--muted); letter-spacing: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workspace-brand .topbar-breadcrumb strong { color: var(--ink); font-weight: 500; }
.workspace-brand .topbar-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.workspace-brand .topbar-title-row,
.workspace-brand .topbar-live-badge,
.workspace-brand .mobile-subheader,
.workspace-brand .ws-mobile-wordmark,
.owner-workspace #topbar-range,
.owner-workspace #mobile-topbar-range { display: none; }
.workspace-brand .topbar-help-btn {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.workspace-brand .topbar-help-btn svg { width: 20px; height: 20px; stroke-width: 1.65; }
.workspace-brand .topbar-help-btn:hover { background: var(--wash); }
.workspace-brand #ws-trial { font-size: 13px; color: var(--muted); }
#owner-workspace { display: none; }
.owner-workspace #owner-workspace { display: block; }
.owner-workspace #overview-container,
.owner-workspace #testDriveBanner,
.owner-workspace #setupCompactMount { display: none !important; }
.workspace-brand .ws-page,
.workspace-brand #view-settings > .page-content {
  width: 100%;
  max-width: 1410px !important;
  min-width: 0;
  margin: auto;
  padding: 38px 42px 60px !important;
}
.workspace-brand #bottom-bar { display: none; }

/* Existing dialog builders use these names; geometry matches the approved sheet. */
.workspace-brand .ws-dialog {
  margin: auto;
  inset: 0;
  padding: 0;
  overflow: hidden;
}
.workspace-brand .ws-dialog[open] { display: flex; flex-direction: column; }
.workspace-brand .ws-dialog > header,
.workspace-brand .ws-dialog > footer { flex-shrink: 0; }
.workspace-brand .ws-dialog-body { overflow-y: auto; min-height: 0; }
.workspace-brand .ws-dialog-feedback { flex-shrink: 0; margin: 0; padding: 14px 28px; border-top: 1px solid var(--bone); background: var(--wash); color: var(--ink); font-size: 14px; line-height: 1.5; }
.workspace-brand .bk-form-row.bk-time-row { display: block; }
.workspace-brand .bk-form-row .time-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.workspace-brand .bk-time-field { display: grid; gap: 8px; min-width: 0; text-align: left; font: 500 13px/1.5 var(--font); color: var(--muted); }
.workspace-brand .bk-time-field select { width: 100%; min-width: 0; font: 400 14px/1.5 var(--font); }
.workspace-brand #bkDrawer[aria-hidden="true"],
.workspace-brand #help-drawer[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.workspace-brand .ws-dialog > header h2 { margin: 0; font: 400 28px/1.2 var(--serif); letter-spacing: -.035em; }
.workspace-brand .ws-dialog > footer:has(> .ws-button:first-child) { justify-content: flex-end; flex-wrap: wrap; }
.workspace-brand .ws-dialog > footer > .ws-button.secondary { order: -1; margin-right: auto; }
/* Long footer labels ("Sign out everywhere and replace my link") wrap inside
   the button on narrow screens instead of running past the clipped dialog edge.
   Same pattern as .settings-sms-verification button. */
.workspace-brand .ws-dialog > footer > .ws-button { flex-shrink: 1; max-width: 100%; white-space: normal; text-align: center; }
.workspace-brand .ws-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.workspace-brand .ws-button:hover { background: var(--green-dark); }
.workspace-brand .ws-button.secondary { background: transparent; color: var(--green); border-color: var(--bone); }
.workspace-brand .ws-button.secondary:hover { background: var(--wash); border-color: var(--green); }
.workspace-brand .ws-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.workspace-brand .ws-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.workspace-brand .ws-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.workspace-brand .ws-icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.workspace-brand .ws-icon-button svg { width: 20px; height: 20px; }
.workspace-brand .ws-icon-button:hover { background: var(--wash); }
.workspace-brand .ws-field { display: block; margin-bottom: 20px; color: var(--ink); font-size: 14px; font-weight: 600; }
.workspace-brand .ws-field input,
.workspace-brand .ws-field select,
.workspace-brand .ws-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--field);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.workspace-brand .ws-field select { min-height: 50px; padding-right: 48px; }
.workspace-brand .ws-field-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.workspace-brand .ws-dialog fieldset { padding: 0; margin: 0 0 22px; border: 0; }
.workspace-brand .ws-dialog legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.workspace-brand .ws-choice { display: flex; align-items: center; gap: 12px; min-height: 51px; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--bone); border-radius: 5px; background: var(--field); cursor: pointer; font-size: 14px; }
.workspace-brand .ws-choice:has(:checked) { background: var(--wash); border-color: var(--green); }
.workspace-brand .ws-choice input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.workspace-brand .ws-input-unit { display: block; position: relative; max-width: 240px; }
.workspace-brand .ws-input-unit input { padding-right: 70px; }
.workspace-brand .ws-input-unit > span { position: absolute; top: 12px; right: 16px; color: var(--muted); font-size: 13px; font-weight: 400; }
.workspace-brand .ws-phone-route { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-block: 1px solid var(--bone); margin: 0 0 22px; }
.workspace-brand .ws-phone-route > div { flex: 1; }
.workspace-brand .ws-phone-route > div:last-child { text-align: right; }
.workspace-brand .ws-phone-route > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--terra); }
.workspace-brand .ws-phone-route small { display: block; color: var(--muted); font-size: 12px; }
.workspace-brand .ws-phone-route strong { display: block; font-size: 14px; }
.workspace-brand .ws-notice { padding: 15px 17px; margin: 20px 0; background: var(--cream); border-radius: 5px; color: var(--soft); font-size: 13px; line-height: 1.65; }
.workspace-brand .ws-notice > p { margin: 8px 0 0; }
.workspace-brand .ws-error { color: var(--terra-dark); font-size: 13px; margin: 8px 0 0; }
.workspace-brand .ws-error:empty { display: none; }
.workspace-brand .ws-instructions { padding-left: 21px; color: var(--soft); font-size: 14px; line-height: 1.75; }
.workspace-brand .ws-instructions li { padding-left: 4px; margin-bottom: 10px; }
.workspace-brand .ws-instructions code { padding: 4px 8px; border-radius: 5px; background: var(--cream); overflow-wrap: anywhere; }
.workspace-brand .ws-definitions dt { margin-top: 20px; font-size: 15px; font-weight: 600; }
.workspace-brand .ws-definitions dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Retained operating tools and saved-setting editors. */
.workspace-brand .ws-settings-editor .settings-detail-nav { display: none; }
.workspace-brand .ws-settings-editor .settings-detail-body { padding: 25px 28px 28px; }
.workspace-brand .ws-settings-editor .settings-detail-footer { padding: 18px 28px; border-top: 1px solid var(--bone); background: var(--paper); }
.workspace-brand .settings-field { margin-bottom: 20px; }
.workspace-brand .settings-field label { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.workspace-brand .settings-field input,
.workspace-brand .settings-field textarea,
.workspace-brand .settings-field select {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--field);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
.workspace-brand .settings-field select { min-height: 50px; padding-right: 48px; }
.workspace-brand .settings-field textarea { min-height: 95px; resize: vertical; }
.workspace-brand .settings-field-row { gap: 18px; }
.workspace-brand .settings-field-hint { font-size: 12px; line-height: 1.5; }
.workspace-brand .settings-sms-verification { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace-brand .settings-sms-verification .sms-verification-field { margin-bottom: 12px; }
.workspace-brand .settings-sms-verification .settings-field-hint { margin: 6px 0 10px; color: var(--muted); }
.workspace-brand .settings-sms-verification [data-sms-status],
.workspace-brand .settings-sms-verification [data-sms-notice] { margin: 12px 0; font-size: 14px; overflow-wrap: anywhere; }
.workspace-brand .settings-sms-verification [data-sms-status] { font-weight: 600; }
.workspace-brand .sms-verification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.workspace-brand .settings-sms-verification button { min-height: 44px; max-width: 100%; white-space: normal; }
.workspace-brand .settings-sms-verification input { min-width: 0; width: 100%; }
.workspace-brand .settings-sms-verification input[readonly] { color: var(--muted); }
.workspace-brand .settings-sms-verification [data-sms-code-section] { margin-top: 20px; }
.workspace-brand .settings-sms-verification [data-sms-code] { max-width: 220px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.workspace-brand .settings-sms-verification .sms-verification-error { color: var(--terra-dark); margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.workspace-brand .settings-sms-verification button:disabled { opacity: .6; cursor: default; }
.workspace-brand .settings-sms-verification :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.workspace-brand .settings-save,
.workspace-brand .btn-primary,
.workspace-brand .btn.primary { min-height: 46px; padding: 12px 20px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--paper); box-shadow: none; font: 600 14px/1.3 var(--font); }
.workspace-brand .settings-save:hover,
.workspace-brand .btn-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: none; transform: none; }
.workspace-brand .svc-card,
.workspace-brand .faq-row { border-color: var(--bone); background: var(--field); box-shadow: none; }
.workspace-brand .settings-grid { gap: 20px; }
.workspace-brand .settings-back-btn { min-height: 44px; }
.workspace-brand .settings-breadcrumb-trail { font-size: 14px; }
.workspace-brand .ws-secondary-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Closed legacy drawers must not cast shadows into the new workspace. */
.workspace-brand .setup-drawer[aria-hidden="true"],
.workspace-brand .setup-sheet[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.workspace-brand .mobile-redirect-banner { display: none; }
.workspace-brand .topbar-help-btn.ws-mobile-signout { display: none; }

/* Cancellation shares the native modal layer with the billing sheet. */
.workspace-brand dialog.cancel-modal-overlay {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  overflow: auto;
  background: transparent;
  color: var(--ink);
}
.workspace-brand dialog.cancel-modal-overlay::backdrop { background: #1a181070; backdrop-filter: blur(3px); }
.workspace-brand .cancel-modal-card { background: var(--paper); border-color: var(--bone); box-shadow: var(--shadow); }

/* Account menu and safe editor exits use the same sheet vocabulary. */
.workspace-brand .sidebar-user { position: relative; }
.workspace-brand .ws-account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px;
  border: 1px solid var(--bone);
  border-radius: 7px;
  background: var(--field);
  box-shadow: var(--shadow);
  z-index: 5;
}
.workspace-brand .ws-account-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}
.workspace-brand .ws-account-menu button:hover { background: var(--wash); }
.workspace-brand .text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--green); font-size: 14px; font-weight: 600; }
.workspace-brand .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.workspace-brand .ws-editor-description { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.workspace-brand .ws-discard-confirm {
  flex-shrink: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--bone);
  background: var(--cream);
  color: var(--ink);
}
.workspace-brand .ws-discard-confirm strong { font-size: 16px; }
.workspace-brand .ws-discard-confirm p { margin-top: 6px; font-size: 14px; }
.workspace-brand .ws-discard-confirm > div { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.workspace-brand .ws-settings-editor .svc-card { margin-bottom: 12px; padding: 0; border: 1px solid var(--bone); border-radius: 6px; overflow: hidden; }
.workspace-brand .ws-settings-editor .svc-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  min-height: 68px;
  margin: 0;
  padding: 14px 17px;
  border: 0;
  background: var(--field);
  cursor: pointer;
  list-style: none;
}
.workspace-brand .ws-settings-editor .svc-card-header::-webkit-details-marker { display: none; }
.workspace-brand .ws-settings-editor .svc-card[open] .svc-card-header { border-bottom: 1px solid var(--line); }
.workspace-brand .ws-settings-editor .svc-card-num { grid-column: 1; font: 600 15px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.workspace-brand .ws-settings-editor .svc-summary-price { grid-column: 1; font-size: 12px; color: var(--muted); }
.workspace-brand .ws-settings-editor .svc-remove-btn { grid-column: 2; grid-row: 1 / 3; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.workspace-brand .ws-settings-editor .svc-remove-btn:hover { background: var(--cream); color: var(--terra-dark); }
.workspace-brand .ws-settings-editor .svc-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: 20px 17px; }
.workspace-brand .ws-settings-editor .svc-card-fields .settings-field { margin-bottom: 0; }
.workspace-brand .ws-settings-editor .svc-card:focus-within { border-color: var(--green); box-shadow: none; }

/* Shell breakpoints match the approved 900px navigation and 680px page switch. */
@media (min-width: 1600px) {
  .workspace-brand .ws-page,
  .workspace-brand #view-settings > .page-content { padding-top: 40px !important; }
}
@media (max-width: 1150px) {
  .workspace-brand #sidebar { width: 202px; padding-left: 12px; padding-right: 12px; }
  .workspace-brand #main-content { margin-left: 202px; }
  .workspace-brand .dashboard-topbar { padding: 0 27px; }
  .workspace-brand .ws-page,
  .workspace-brand #view-settings > .page-content { padding: 30px 27px 50px !important; }
}
@media (max-width: 900px) {
  .workspace-brand #sidebar { display: none; }
  .workspace-brand #main-content { margin: 0; padding: 0; }
  .workspace-brand .dashboard-topbar { display: flex; height: 68px; min-height: 68px; padding: 0 24px; }
  .workspace-brand .topbar-left { display: none; }
  .workspace-brand .ws-mobile-wordmark { display: inline-block; font-size: 27px; }
  .workspace-brand .topbar-help-btn.ws-mobile-signout { display: grid; }
  .workspace-brand .topbar-actions { gap: 14px; }
  .workspace-brand .ws-page,
  .workspace-brand #view-settings > .page-content { padding: 30px 24px 112px !important; }
  .workspace-brand #bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    height: auto;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bone);
    background: var(--paper);
    box-shadow: none;
    z-index: 100;
  }
  .workspace-brand .bottom-tab {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 7px 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font: 400 11px/1.5 var(--font);
  }
  .workspace-brand .bottom-tab.active { background: var(--wash); color: var(--green); font-weight: 600; }
  .workspace-brand .bottom-tab > svg:first-child { width: 20px; height: 20px; flex-shrink: 0; }
  .workspace-brand .bottom-tab .ws-dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 6px; min-width: 6px; height: 6px; margin: 0; border: 2px solid var(--paper); box-sizing: content-box; box-shadow: none; }
  .owner-workspace .bottom-tab:is([data-view=customers], [data-view=pipeline]) { display: none !important; }
}
@media (max-width: 680px) {
  .workspace-brand .dashboard-topbar { padding: 0 20px; }
  .workspace-brand .topbar-actions .integration-header { display: none; }
  .workspace-brand dialog.cancel-modal-overlay { padding: 10px; align-items: center; }
  .workspace-brand #ws-trial { font-size: 12px; }
  .workspace-brand .topbar-actions:has(.integration-missing) #ws-trial { display: none; }
  .workspace-brand .ws-page,
  .workspace-brand #view-settings > .page-content { padding: 26px 20px 110px !important; }
  .workspace-brand .ws-dialog > header h2 { font-size: 26px; }
  .workspace-brand .ws-discard-confirm { padding: 18px 20px; }
  .workspace-brand .ws-editor-description { font-size: 16px; }
  .workspace-brand .ws-field,
  .workspace-brand .ws-choice,
  .workspace-brand .settings-field label { font-size: 15px; }
  .workspace-brand .ws-field-pair { column-gap: 12px; }
  .workspace-brand .ws-phone-route { gap: 12px; }
  .workspace-brand .ws-phone-route strong { font-size: 13px; }
  .workspace-brand .ws-settings-editor .settings-detail-body { padding: 22px 20px; }
  .workspace-brand .ws-settings-editor .settings-detail-footer { padding: 16px 20px; }
  .workspace-brand .settings-field-row { flex-direction: column; grid-template-columns: 1fr; }
  .workspace-brand .settings-field-row > * { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .workspace-brand .topbar-actions #ws-trial { display: none; }
  .workspace-brand .ws-field-pair { grid-template-columns: 1fr; gap: 0; }
  .workspace-brand .ws-settings-editor .svc-card-fields { grid-template-columns: 1fr; }
  .workspace-brand .ws-dialog > header h2 { font-size: 25px; }
  .workspace-brand .ws-phone-route { display: grid; grid-template-columns: 1fr 20px; gap: 14px; padding: 18px 0; }
  .workspace-brand .ws-phone-route > div:first-child { grid-column: 1; }
  .workspace-brand .ws-phone-route > svg { grid-column: 2; grid-row: 1 / 3; transform: rotate(90deg); }
  .workspace-brand .ws-phone-route > div:last-child { grid-column: 1; text-align: left; }
  .workspace-brand .ws-phone-route strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-brand *, .workspace-brand *::before, .workspace-brand *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .workspace-brand select { appearance: auto; background-image: none; padding-right: 12px; }
}
