:root {
  font-family: Arial, sans-serif;
  color: #192e40;
  background: #f4f5f3;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  padding: 37px 25px;
  background: #102b3e;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #d8c29a;
}
.wordmark span {
  display: block;
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: 0.04em;
  color: white;
  margin-top: 9px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8fa6b6;
  margin-top: 45px;
}
.side-current {
  padding: 14px 12px;
  border-left: 3px solid #c2a274;
  background: #1d3b4d;
  border-radius: 0 5px 5px 0;
}
.side-note {
  color: #b2c0c9;
  line-height: 1.9;
  font-size: 13px;
  margin-top: 35px;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.9;
  color: #d9e3e8;
}
.side-bottom span {
  font-size: 10px;
  color: #90a8b9;
}
main {
  max-width: 1580px;
  margin-left: 220px;
  padding: 38px 44px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: bold;
  color: #7a807f;
}
h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: normal;
  letter-spacing: -0.03em;
  margin: 10px 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
p {
  color: #67767f;
  line-height: 1.65;
  margin: 5px 0;
}
button {
  font: inherit;
  border: 1px solid #ccd4d5;
  background: white;
  color: #1f3c4e;
  border-radius: 5px;
  padding: 9px 13px;
  cursor: pointer;
}
button:hover {
  background: #edf2f3;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c4a36e;
  outline-offset: 3px;
}
.primary {
  background: #153b52;
  color: #fff;
  border-color: #153b52;
}
.primary:hover {
  background: #24556f;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mode {
  color: #6b582e;
  background: #f0e7d8;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}
.boundary {
  display: flex;
  gap: 16px;
  border: 1px solid #dfd7c7;
  background: #f9f6ef;
  border-radius: 6px;
  padding: 13px 16px;
  color: #726446;
  font-size: 12px;
}
.boundary strong {
  white-space: nowrap;
}
#notice {
  margin: 14px 0;
  color: #a03c29;
  min-height: 18px;
  font-size: 13px;
}
.login-panel {
  background: white;
  border: 1px solid #dbe1df;
  border-radius: 9px;
  max-width: 510px;
  margin: 45px auto;
  padding: 36px;
}
.login-panel h2 {
  font:
    27px Georgia,
    serif;
  margin-top: 15px;
}
.login-panel p {
  font-size: 13px;
  margin-bottom: 24px;
}
form {
  display: grid;
  gap: 18px;
}
label {
  font-size: 12px;
  font-weight: bold;
  display: grid;
  gap: 8px;
}
input {
  font: inherit;
  border: 1px solid #bdc9cd;
  border-radius: 5px;
  padding: 12px;
  width: 100%;
}
.overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 18px 0 35px;
}
.overview h2 {
  font:
    27px Georgia,
    serif;
  margin: 8px 0;
}
.metrics {
  display: flex;
  gap: 35px;
}
.metrics div {
  display: grid;
  gap: 7px;
  min-width: 75px;
}
.metrics strong {
  font-size: 31px;
  font-weight: normal;
}
.metrics span {
  font-size: 11px;
  color: #75818a;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 14px;
}
.section-title h2 {
  margin: 0;
}
.section-title > span {
  font-size: 11px;
  color: #8b9497;
}
.agents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.agent {
  border: 1px solid #d8dfdd;
  background: #fff;
  border-radius: 7px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  min-height: 192px;
}
.agent-code {
  font-size: 10px;
  color: #a68b5e;
  letter-spacing: 0.12em;
}
.agent h3 {
  font-size: 14px;
  margin: 11px 0 8px;
}
.agent p {
  font-size: 12px;
  flex: 1;
}
.agent-owner {
  font-size: 11px;
  color: #7b878c;
  margin: 15px 0 12px;
}
.agent button {
  font-size: 11px;
  width: 100%;
  text-align: left;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.3fr);
  gap: 23px;
  margin-top: 28px;
}
.jobs {
  display: grid;
  gap: 9px;
}
.job {
  text-align: left;
  padding: 17px;
  border: 1px solid #dce3e0;
  display: grid;
  gap: 9px;
  background: #fff;
  position: relative;
}
.job.selected {
  border-color: #5a7e92;
  box-shadow: inset 3px 0 #1a4f6c;
  background: #f7fafb;
}
.job strong {
  font-size: 13px;
}
.job small {
  color: #819098;
}
.status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #627b89;
}
.detail {
  margin-top: 20px;
  background: #fff;
  padding: 25px;
  border: 1px solid #dbe2df;
  border-radius: 7px;
  min-height: 320px;
  align-self: start;
}
.detail .eyebrow {
  margin-bottom: 12px;
}
.detail h2 {
  font:
    25px Georgia,
    serif;
  margin-top: 10px;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 19px 0;
}
.steps span {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #f0f2f1;
  color: #66767c;
}
.steps .current {
  background: #dceaf0;
  color: #244c63;
}
.evidence {
  font-size: 12px;
  line-height: 1.8;
  background: #f6f7f5;
  padding: 15px;
  border-radius: 5px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.evidence strong {
  display: block;
  margin-bottom: 5px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.actions button {
  flex: 1;
}
.artifact-hash {
  font-family: monospace;
  font-size: 10px;
  color: #7f8b91;
  overflow-wrap: anywhere;
  margin-top: 15px;
}
.detail table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 18px 0;
}
.detail th,
.detail td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid #e2e7e5;
}
.detail th {
  font-size: 10px;
  font-weight: normal;
  color: #849097;
}
.finding {
  border-left: 2px solid #c8ab7e;
  padding: 7px 12px;
  margin: 8px 0;
  font-size: 12px;
}
.activity {
  margin-top: 40px;
}
.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #e0e5e2;
  font-size: 11px;
  color: #71818b;
}
.empty {
  padding: 25px;
  background: #edf0ed;
  border-radius: 6px;
  font-size: 13px;
}
footer {
  font-size: 11px;
  color: #929d9f;
  margin: 42px 0 12px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding: 44px 60px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 180px;
    padding: 28px 20px;
  }
  main {
    margin-left: 180px;
    padding: 28px;
  }
  .agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .overview {
    align-items: flex-start;
  }
  .metrics {
    gap: 18px;
  }
  .detail {
    margin-top: 0;
  }
}
.connection-panel {
  margin: 22px 0;
  padding: 20px 24px;
  border: 1px solid #d9e3df;
  border-radius: 14px;
  background: #f5f9f7;
}
.login-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.manager-open {
  color: #174b68;
  font-weight: bold;
}
.connection-panel p {
  margin: 8px 0;
}
.connection-panel .section-title {
  margin: 0 0 10px;
}
.connection-note {
  color: #5c6b65;
  font-size: 13px;
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 20px;
    display: block;
  }
  .wordmark span {
    font-size: 20px;
  }
  .side-label,
  .side-current,
  .side-note,
  .side-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 22px;
  }
  h1 {
    font-size: 31px;
  }
  .boundary,
  .overview {
    display: block;
  }
  .boundary span {
    display: block;
    margin-top: 7px;
  }
  .metrics {
    margin-top: 22px;
    gap: 32px;
  }
  .header-actions {
    align-self: flex-start;
  }
  .agents {
    gap: 10px;
  }
  .agent {
    padding: 14px;
  }
  .section-title > span {
    max-width: 100px;
    text-align: right;
  }
  .work-grid {
    margin-top: 18px;
  }
  .actions {
    flex-direction: column;
  }
}

.decision-brief {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #c6d3ce;
  border-left: 4px solid #b28a50;
  border-radius: 8px;
  background: #f5f7f4;
}
.decision-brief h3 {
  margin: 8px 0;
  font:
    24px/1.25 Georgia,
    serif;
}
.finding p {
  margin: 8px 0;
}
.finding small {
  display: block;
  overflow-wrap: anywhere;
}

.workspace-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 30px;
  border-bottom: 1px solid #d5ded9;
  padding-bottom: 12px;
}
.workspace-tabs button[aria-pressed='true'] {
  color: white;
  background: #153b52;
  border-color: #153b52;
}
.team-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.team-intro h2 {
  font:
    30px/1.2 Georgia,
    serif;
  margin-top: 10px;
}
.access-note {
  background: #f4edde;
  color: #6c593c;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 12px;
}
.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 20px;
}
.task-intake,
.team-roster {
  padding: 24px;
  border: 1px solid #d5ded9;
  border-radius: 10px;
  background: white;
}
.team-roster {
  background: #eaf0ed;
}
.team-roster p {
  font-size: 12px;
  margin: 12px 0;
}
.team-roster strong {
  color: #294a59;
}
textarea,
select {
  font: inherit;
  color: inherit;
  border: 1px solid #bdc9cd;
  border-radius: 5px;
  padding: 12px;
  width: 100%;
  background: white;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c4a36e;
  outline-offset: 3px;
}
.brief-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.intake-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.intake-footer p {
  font-size: 11px;
  max-width: 400px;
}
.intake-footer button {
  flex-shrink: 0;
}
.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
  align-items: start;
}
.task-column {
  padding: 14px;
  border-radius: 10px;
  background: #e7ece8;
  min-height: 160px;
}
.task-column h3 {
  font-size: 12px;
  color: #53665c;
  margin: 5px 0 18px;
}
.task-card {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  padding: 18px;
  overflow-wrap: anywhere;
}
.task-card.selected {
  border-color: #315c6a;
  box-shadow: inset 3px 0 #315c6a;
}
.task-card strong {
  font-size: 14px;
  line-height: 1.4;
}
.task-card span:not(.eyebrow),
.task-card small {
  font-size: 11px;
  color: #687970;
}
.empty-column {
  font-size: 12px;
}
.task-conversation {
  background: #fff;
  border: 1px solid #d5ded9;
  padding: 28px;
  border-radius: 10px;
  max-width: 100%;
}
.task-conversation h2 {
  margin-top: 14px;
}
.task-conversation > p {
  font-size: 12px;
}
.task-conversation > form {
  margin: 22px 0;
  max-width: 800px;
}
.task-conversation > form > button {
  justify-self: start;
}
.conversation {
  max-height: 480px;
  overflow: auto;
  margin: 22px 0;
  display: grid;
  gap: 14px;
  overscroll-behavior: contain;
}
.message {
  background: #f2f5f1;
  padding: 18px;
  border-radius: 8px;
  max-width: 850px;
  overflow-wrap: anywhere;
}
.human-message {
  background: #eaf1f5;
}
.message strong {
  font-size: 12px;
}
.message p {
  white-space: pre-wrap;
  margin: 10px 0;
  font-size: 13px;
}
.message small {
  font-size: 10px;
  color: #65766c;
}
@media (max-width: 1200px) {
  .intake-layout {
    grid-template-columns: 1fr;
  }
  .team-roster {
    display: none;
  }
  .intake-footer {
    display: block;
  }
  .intake-footer p {
    max-width: none;
    margin-bottom: 15px;
  }
}
@media (max-width: 650px) {
  .task-board,
  .brief-fields {
    grid-template-columns: 1fr;
  }
  .team-intro {
    display: block;
  }
  .team-intro .mode {
    display: inline-block;
    margin-top: 14px;
  }
  .task-intake,
  .task-conversation {
    padding: 18px;
  }
  .workspace-tabs button {
    flex: 1;
  }
}

/* A distinct visual identity for the independent Manager workspace. */
:root {
  color: #202d42;
  background: #f7f5f0;
  font-family: 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
}
body {
  background-image: radial-gradient(ellipse at 95% 0%, #eee9f8 0, transparent 32%);
}
aside {
  width: 220px;
  background: #152438;
  padding: 36px 24px;
}
.wordmark {
  color: #e8bc87;
}
.side-current {
  background: #26364a;
  border-color: #e5a979;
  color: #f6e8d4;
}
.side-label {
  color: #b2b8ce;
}
.side-note {
  color: #c2c9d5;
  font:
    21px/1.6 Georgia,
    serif;
}
.sidebar-flourish {
  color: #f4ab91;
  font-size: 40px;
  display: block;
  margin-top: 24px;
}
main {
  padding: 36px 42px;
  max-width: 1800px;
}
header {
  margin-bottom: 24px;
}
header h1 {
  font-size: 37px;
  margin: 9px 0;
  color: #25334a;
}
header p {
  font-size: 13px;
  color: #687082;
}
.eyebrow {
  color: #727389;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.boundary {
  background: #efeee9;
  border: 0;
  align-items: center;
  border-radius: 8px;
  color: #5a6070;
  gap: 10px;
  font-size: 11px;
}
.boundary strong {
  color: #334858;
}
.connection-dot {
  width: 7px;
  height: 7px;
  background: #43807b;
  border-radius: 50%;
  flex-shrink: 0;
}
.mode {
  background: #eee4d5;
  color: #70592e;
}
.workspace-tabs {
  border-color: #dcdcd8;
  gap: 22px;
  margin: 14px 0 27px;
  padding-bottom: 0;
}
.workspace-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  font-size: 13px;
}
.workspace-tabs button[aria-pressed='true'] {
  background: transparent;
  color: #263f78;
  border-color: #5669bd;
}
.manager-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background: #202d46;
  color: #fff;
  min-height: 350px;
  box-shadow: 0 14px 40px #26334b10;
}
.manager-hero::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 93% 12%, #5c529b8c, transparent 55%),
    radial-gradient(ellipse at 48% 110%, #3d6e864a, transparent 60%);
}
.hero-copy {
  position: relative;
  padding: 38px 40px;
  z-index: 1;
}
.hero-copy .eyebrow {
  color: #d1bee8;
  font-size: 9px;
}
.hero-copy h2 {
  font:
    54px/1.06 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 21px 0;
}
.hero-copy h2 em {
  font-weight: normal;
  color: #f6b391;
}
.hero-copy p {
  color: #d0d7e3;
  max-width: 390px;
  font-size: 13px;
  line-height: 1.8;
}
.hero-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.hero-signature img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 2px solid #e8be8f;
}
.hero-signature strong {
  display: block;
  color: #fff3df;
  font-size: 13px;
}
.hero-signature span:not(.hero-spark) {
  display: block;
  color: #bac7d5;
  font-size: 10px;
  margin-top: 5px;
}
.hero-spark {
  color: #eab397;
  font-size: 28px;
  margin-left: 12px;
}
.hero-constellation {
  position: relative;
  min-height: 350px;
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #cad5f027;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one {
  width: 225px;
  height: 225px;
}
.orbit-two {
  width: 315px;
  height: 315px;
}
.constellation-core {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: #8b9ad117;
  border: 1px solid #d2d9fd2b;
  border-radius: 50%;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 27px;
  color: #efd6ab;
  box-shadow: 0 0 70px #9898e320;
}
.constellation-core span {
  font-size: 10px;
  color: #d0d5e5;
  line-height: 1.6;
  margin-top: 6px;
}
.orbit-person {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #ffffff24;
  background: #33415bda;
  border-radius: 50px;
  box-shadow: 0 10px 25px #15203933;
}
.orbit-person img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
}
.orbit-person > span {
  font:
    18px Georgia,
    serif;
}
.orbit-person small {
  display: block;
  margin-top: 5px;
  color: #d2d8e5;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 0.1em;
}
.orbit-sam {
  left: 9%;
  top: 13%;
  transform: rotate(-5deg);
}
.orbit-alex {
  right: 6%;
  top: 32%;
  transform: rotate(5deg);
}
.orbit-maya {
  left: 3%;
  top: 63%;
  transform: rotate(-3deg);
}
.orbit-nova {
  right: 5%;
  bottom: 6%;
  transform: rotate(4deg);
}
.meet-title {
  margin-top: 10px !important;
  font:
    27px Georgia,
    serif;
}
#tasks-workspace > .section-title {
  margin-top: 34px;
}
.specialist-deck {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.teammate {
  --agent: #705d94;
  --tint: #f0eaf5;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  border: 1px solid #e0dedb;
  border-radius: 14px;
  background: #ffffffd9;
  padding: 18px;
  min-width: 0;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.teammate img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.teammate strong {
  font:
    23px Georgia,
    serif;
  color: #273348;
}
.teammate-role {
  color: var(--agent);
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 8px 0;
}
.teammate small {
  color: #717584;
  font-size: 11px;
  line-height: 1.5;
  flex: 1;
}
.teammate-link {
  color: var(--agent);
  font-size: 10px;
  font-weight: 600;
  margin-top: 17px;
}
.teammate:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: 0 12px 24px #31394b0d;
  border-color: var(--agent);
}
.teammate[aria-pressed='true'] {
  background: var(--tint);
  border-color: var(--agent);
  box-shadow: inset 0 3px var(--agent);
}
.teammate-nora {
  --agent: #86692f;
  --tint: #f9efdb;
}
.teammate-alex {
  --agent: #36716c;
  --tint: #e8f2ee;
}
.teammate-sam {
  --agent: #a35f45;
  --tint: #f9eae2;
}
.teammate-maya {
  --agent: #785695;
  --tint: #efe8f5;
}
.teammate-nova {
  --agent: #4665aa;
  --tint: #e9eef9;
}
.access-note {
  background: transparent;
  border: 1px solid #deddd9;
  padding: 12px 16px;
  color: #676b77;
  font-size: 11px;
}
.access-note summary {
  cursor: pointer;
  color: #57657a;
}
.access-note p {
  margin: 10px 0 2px;
  font-size: 11px;
}
.intake-layout {
  grid-template-columns: minmax(0, 2.8fr) minmax(210px, 1fr);
  align-items: stretch;
}
.task-intake {
  padding: 27px;
  border-radius: 15px;
  border-color: #dcdedc;
  box-shadow: 0 5px 20px #16233804;
}
.composer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.composer-heading h3 {
  font:
    27px Georgia,
    serif;
  color: #293750;
  margin: 10px 0 0;
}
.compose-mark {
  font-size: 29px;
  color: #7e79ad;
  background: #f0edf8;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-align: center;
  line-height: 44px;
}
.starter-prompts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.starter-prompts button {
  font-size: 10px;
  color: #52649c;
  background: #f2f3fa;
  border-color: #e2e5f3;
  padding: 7px 10px;
  border-radius: 40px;
}
.task-intake label {
  font-size: 11px;
  color: #606a7b;
}
.task-intake textarea {
  font-size: 15px;
  line-height: 1.6;
  border-color: #d5d9e1;
  min-height: 105px;
}
.task-intake input,
.task-intake select {
  font-size: 12px;
  background: #fafbfb;
  border-color: #dce0e5;
}
.primary {
  background: #4d5fa5;
  border-color: #4d5fa5;
  border-radius: 7px;
}
.primary:hover {
  background: #3b4d90;
}
.intake-footer p {
  font-size: 10px;
  color: #7b7d88;
}
.intake-footer button {
  font-size: 12px;
  padding: 12px 16px;
}
.team-roster {
  background: #ede8e1;
  border: 0;
  border-radius: 15px;
  padding: 26px;
}
.team-roster h3 {
  font:
    27px/1.2 Georgia,
    serif;
  color: #4b4550;
  margin-top: 12px;
}
.team-roster p {
  font-size: 11px;
  color: #747077;
}
.team-roster strong {
  color: #4b5367;
}
.board-title h2 {
  font:
    29px Georgia,
    serif;
}
.task-column {
  background: #eeece8;
  border-top: 3px solid #d9b270;
  padding: 17px;
}
.task-column:nth-child(2) {
  background: #eaeaf2;
  border-color: #8b8dbc;
}
.task-column:nth-child(3) {
  background: #e9efec;
  border-color: #86a49c;
}
.task-column h3 {
  color: #575b6b;
  font-size: 11px;
}
.task-card {
  border: 1px solid #dfdde0;
  padding: 17px;
  border-radius: 9px;
  box-shadow: 0 3px 9px #27385404;
}
.task-card strong {
  font-size: 13px;
}
.task-card.selected {
  border-color: #8182b6;
  box-shadow:
    inset 3px 0 #8182b6,
    0 5px 15px #45507b0c;
}
.task-card .eyebrow {
  color: #6b6094;
  font-size: 8px;
}
.task-conversation {
  padding: 30px;
  border: 1px solid #dcdde2;
  border-radius: 15px;
}
.task-conversation h2 {
  font:
    27px/1.3 Georgia,
    serif;
}
.message {
  background: #f2eff8;
  border-radius: 13px 13px 13px 3px;
  padding: 20px;
}
.message > img {
  float: left;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border-radius: 50%;
}
.message > strong {
  display: block;
  color: #574b7a;
  padding-top: 8px;
}
.message > p {
  clear: both;
  padding-top: 6px;
}
.human-message {
  background: #eef3f5;
  border-radius: 13px 13px 3px 13px;
}
.task-sharing {
  margin: 26px 0;
  padding-top: 20px;
  border-top: 1px solid #e4e4e9;
}
.task-sharing h3,
#task-brief h3 {
  color: #5c5873;
  font:
    22px Georgia,
    serif;
}
@media (min-width: 1500px) {
  main {
    padding: 42px 60px;
  }
  .hero-copy h2 {
    font-size: 65px;
  }
  .manager-hero {
    min-height: 390px;
  }
  .hero-copy {
    padding: 43px;
  }
}
@media (max-width: 1250px) {
  .intake-layout {
    grid-template-columns: 1fr;
  }
  .team-roster {
    display: none;
  }
  .hero-copy {
    padding: 30px;
  }
  .hero-copy h2 {
    font-size: 46px;
  }
  .orbit-person img {
    width: 34px;
    height: 34px;
  }
  .orbit-person {
    padding-right: 9px;
    gap: 7px;
  }
  .orbit-person > span {
    font-size: 16px;
  }
  .orbit-one {
    width: 180px;
    height: 180px;
  }
  .orbit-two {
    width: 265px;
    height: 265px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 180px;
    padding: 28px 20px;
  }
  main {
    margin-left: 180px;
    padding: 28px;
  }
  .manager-hero {
    grid-template-columns: 1fr;
  }
  .hero-constellation {
    display: none;
  }
  .hero-copy {
    padding: 34px;
  }
  .hero-copy p {
    max-width: 450px;
  }
  .specialist-deck {
    grid-template-columns: repeat(5, 145px);
    overflow-x: auto;
    padding: 5px 0 12px;
    scrollbar-width: thin;
  }
  .task-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .task-column {
    min-height: auto;
  }
  .task-column h3 {
    margin-bottom: 12px;
  }
  .task-card {
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  aside {
    width: auto;
    padding: 20px 24px;
  }
  main {
    margin: 0;
    padding: 24px 18px;
  }
  header h1 {
    font-size: 32px;
  }
  header p {
    font-size: 12px;
  }
  .boundary {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
  }
  .boundary span:last-child {
    width: 100%;
    margin-top: 0;
  }
  .manager-hero {
    border-radius: 15px;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero-copy h2 {
    font-size: 43px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .hero-signature {
    margin-top: 22px;
  }
  .workspace-tabs {
    gap: 18px;
  }
  .workspace-tabs button {
    flex: initial;
    font-size: 11px;
  }
  .specialist-deck {
    grid-template-columns: repeat(5, 140px);
  }
  .teammate {
    padding: 16px;
  }
  .task-intake,
  .task-conversation {
    padding: 20px;
  }
  .composer-heading h3 {
    font-size: 24px;
  }
  .brief-fields {
    grid-template-columns: 1fr;
  }
  .compose-mark {
    display: none;
  }
  .board-title h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
#notice:empty {
  display: none;
}
.teammate {
  background: var(--tint);
}
.teammate[aria-pressed='true'] {
  box-shadow:
    inset 0 3px var(--agent),
    0 7px 18px #3f425412;
}
.chat-pending {
  border-left: 3px solid #8877b5;
  padding: 12px 16px;
  margin: 16px 0;
  color: #665583;
  background: #f6f1fc;
  border-radius: 5px;
  font-size: 12px;
}

/* Compact operations workspace: work first, restrained ink / teal / cobalt palette. */
:root {
  color: #233446;
  background: #f2f5f7;
}
body {
  background: #f2f5f7;
  background-image: none;
}
aside {
  width: 180px;
  padding: 28px 20px;
  background: #14283b;
}
.side-note {
  font:
    17px/1.65 Georgia,
    serif;
}
.sidebar-flourish {
  color: #77a7a5;
  font-size: 25px;
  margin-top: 20px;
}
main {
  margin-left: 180px;
  max-width: 1900px;
  padding: 22px 30px;
}
header {
  margin-bottom: 16px;
  align-items: center;
}
header h1 {
  font:
    30px/1.1 Georgia,
    serif;
  margin: 6px 0;
}
header p {
  font-size: 12px;
}
.boundary {
  background: #e9eef1;
  color: #556673;
  font-size: 10px;
  padding: 9px 12px;
  border-radius: 6px;
}
.boundary span:last-child {
  margin: 0;
}
.workspace-tabs {
  margin: 12px 0 20px;
  gap: 24px;
}
.workspace-tabs button {
  padding: 11px 0;
  font-size: 12px;
  white-space: nowrap;
}
.workspace-tabs button[aria-pressed='true'] {
  color: #245eaa;
  border-color: #3479b7;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.board-heading h2 {
  font:
    25px/1.2 Georgia,
    serif;
  margin: 7px 0;
}
.board-heading p {
  font-size: 11px;
  color: #3e746c;
}
.primary {
  background: #225f9c;
  border-color: #225f9c;
}
.primary:hover {
  background: #184a7d;
}
.task-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #dce4e8;
  margin-bottom: 16px;
}
.task-metrics > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.task-metrics strong {
  font:
    25px Georgia,
    serif;
  color: #27455b;
}
.task-metrics span {
  font-size: 10px;
  color: #667b87;
}
.agent-filter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.agent-filter-heading strong {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6d7b87;
}
.agent-filter-heading button {
  font-size: 10px;
  padding: 5px 9px;
  background: transparent;
}
.agent-filter-heading button[aria-pressed='true'] {
  color: #1e6090;
  border-color: #5488aa;
  background: #edf6fa;
}
.specialist-deck {
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  gap: 9px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 2px 0 8px;
}
.teammate {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dbe3e7;
  border-top: 2px solid var(--agent);
  box-shadow: none;
  min-height: 75px;
}
.teammate img {
  width: 36px;
  height: 36px;
  margin: 0;
  flex-shrink: 0;
}
.teammate > div {
  min-width: 0;
}
.teammate strong {
  display: block;
  font:
    18px Georgia,
    serif;
  color: #263f50;
}
.teammate-role {
  display: block;
  margin: 4px 0;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.teammate small {
  display: block;
  font-size: 9px;
  color: #667984;
  white-space: nowrap;
}
.teammate:hover {
  transform: none;
  box-shadow: 0 3px 10px #244b6510;
  background: #f8fbfd;
}
.teammate[aria-pressed='true'] {
  border-color: #2f719e;
  background: #eef6fa;
  box-shadow: inset 0 -2px #2f719e;
}
.teammate-nora {
  --agent: #9a854e;
  --tint: #f5f2e8;
}
.teammate-alex {
  --agent: #3d7b74;
  --tint: #e9f2ef;
}
.teammate-sam {
  --agent: #4e77ac;
  --tint: #edf2f8;
}
.teammate-maya {
  --agent: #607d7b;
  --tint: #edf3f1;
}
.teammate-nova {
  --agent: #425e7f;
  --tint: #edf2f7;
}
.board-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
}
.board-toolbar > span {
  margin-left: auto;
  color: #75838e;
  font-size: 10px;
}
.board-toolbar > button {
  font-size: 10px;
  padding: 6px 9px;
}
.board-filters {
  display: flex;
  gap: 5px;
  background: #e5ebee;
  border-radius: 7px;
  padding: 3px;
}
.board-filters button {
  background: transparent;
  border: 0;
  font-size: 11px;
  padding: 7px 11px;
}
.board-filters button[aria-pressed='true'] {
  background: #fff;
  color: #225f9c;
  box-shadow: 0 1px 3px #243d5010;
}
.task-work-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(390px, 1.2fr);
  gap: 18px;
  align-items: start;
}
.task-board {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  align-items: start;
}
.task-column {
  background: #e7edf0;
  border: 0;
  border-top: 3px solid #8ea4b4;
  border-radius: 8px;
  padding: 12px;
  min-height: auto;
}
.task-column:nth-child(2),
.task-column:nth-child(3) {
  background: #e7edf0;
}
.task-column.group-working {
  border-color: #5487b4;
}
.task-column.group-waiting {
  border-color: #a18d61;
}
.task-column.group-review {
  border-color: #3f8f86;
}
.task-column.group-completed {
  border-color: #39806d;
  background: #e6efeb;
}
.task-column h3 {
  margin: 2px 0 12px;
  font-size: 10px;
  color: #516775;
}
.task-card {
  padding: 12px;
  gap: 8px;
  border-radius: 7px;
  margin-bottom: 9px;
  border-color: #d6e0e5;
}
.task-card:last-child {
  margin-bottom: 0;
}
.task-card.selected {
  background: #f7fbfd;
  border-color: #4f829f;
  box-shadow: inset 3px 0 #4f829f;
}
.card-agent {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-agent img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.card-agent span {
  font-size: 9px !important;
  color: #3a6279 !important;
}
.task-card strong {
  font-size: 12px;
  line-height: 1.45;
}
.task-card > span,
.task-card > small {
  font-size: 10px;
  color: #6d7f89;
}
.due-chip {
  color: #2f6484 !important;
}
.task-conversation {
  margin: 0;
  padding: 20px;
  border-radius: 10px;
  border-color: #d8e2e7;
  min-height: 350px;
  position: sticky;
  top: 16px;
  max-height: 78vh;
  overflow: auto;
}
.conversation-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.conversation-heading img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.conversation-heading .eyebrow {
  color: #497389;
  font-size: 9px;
}
.task-conversation h2 {
  font:
    22px/1.3 Georgia,
    serif;
  margin: 12px 0 8px;
}
.task-meta {
  font-size: 10px !important;
  color: #73838e;
}
.conversation {
  max-height: 390px;
  margin: 15px 0;
  gap: 10px;
}
.message {
  padding: 14px;
  border-radius: 9px;
  background: #edf4f6;
}
.human-message {
  background: #f0f2f4;
}
.message > img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
}
.message > strong {
  font-size: 10px;
  color: #3c667a;
  padding-top: 6px;
}
.message > p {
  font-size: 12px;
}
.message small {
  font-size: 9px;
  color: #71838e;
}
.rich-text {
  clear: both;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
  padding-top: 6px;
}
.rich-text p {
  white-space: pre-wrap;
  margin: 8px 0;
  font-size: inherit;
  color: #405a68;
}
.rich-text h4 {
  font-size: 14px;
  margin: 8px 0;
  color: #294e63;
}
.rich-text ul {
  margin: 8px 0;
  padding-left: 19px;
  color: #405a68;
}
.rich-text table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  display: block;
  overflow-x: auto;
  margin: 12px 0;
}
.rich-text td,
.rich-text th {
  padding: 7px;
  border-bottom: 1px solid #d0dfe6;
  text-align: left;
  white-space: normal;
}
.rich-text pre {
  white-space: pre-wrap;
  background: #e6ecef;
  padding: 10px;
  border-radius: 5px;
}
.accept-result {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  padding: 6px 9px;
  color: #286a61;
  border-color: #95bdb5;
  background: #f8fcfa;
}
.reviewed-result {
  background: #eaf4ee;
  border: 1px solid #b6cfc1;
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  max-height: 340px;
  overflow: auto;
}
.reviewed-result > strong {
  display: block;
  font-size: 12px;
  color: #376852;
}
.reviewed-result > small {
  display: block;
  font-size: 9px;
  color: #688172;
  margin-top: 6px;
}
.reply-form {
  display: block;
  margin: 14px 0 !important;
}
.reply-form textarea {
  min-height: 72px;
  font-size: 12px;
  background: #fbfdfe;
}
.reply-form label {
  font-size: 11px;
}
.reply-form button {
  display: block;
  margin: 8px 0 0 auto;
  font-size: 11px;
  padding: 8px 17px;
}
.chat-pending {
  border-color: #3c8c93;
  background: #edf7f7;
  color: #3d7376;
  padding: 9px 12px;
  margin: 10px 0;
  font-size: 11px;
}
.task-files {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid #dfe7eb;
}
.task-files h3 {
  font-size: 12px;
  margin: 0 0 9px;
  color: #405c6d;
}
.file-drop-zone {
  display: grid;
  gap: 9px;
  border: 1px dashed #9ab7c9;
  border-radius: 7px;
  background: #f3f8fa;
  padding: 13px;
  color: #41697e;
  font-size: 11px;
  cursor: pointer;
}
.file-drop-zone input {
  background: transparent;
  padding: 0;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}
.file-drop-zone.drag-active {
  background: #dceef4;
  border-color: #337d9a;
}
.attachment-link {
  display: block;
  color: #27698b;
  text-decoration: none;
  font-size: 11px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.task-files .connection-note {
  font-size: 9px;
  margin-top: 7px;
}
.task-settings {
  border-top: 1px solid #e0e7eb;
  padding: 11px 0;
}
.task-settings summary {
  font-size: 11px;
  color: #476679;
  cursor: pointer;
}
.task-settings p {
  font-size: 11px;
  margin-top: 10px;
}
.task-settings form {
  margin-top: 12px;
  gap: 12px;
}
.task-settings label {
  font-size: 11px;
}
.task-settings input,
.task-settings select,
.task-settings textarea {
  font-size: 12px;
  padding: 9px;
}
.task-settings button,
.secondary-action {
  font-size: 10px;
  padding: 7px 10px;
}
.access-note {
  font-size: 10px;
  background: transparent;
  border-color: #d9e2e6;
  padding: 10px 13px;
}
.access-note p {
  font-size: 10px;
}
#task-composer {
  width: min(720px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #c5d6e0;
  border-radius: 13px;
  padding: 24px;
  box-shadow: 0 20px 100px #112d4c44;
  background: #fff;
  color: #233e52;
}
#task-composer::backdrop {
  background: #0e253d8c;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dialog-top button {
  padding: 2px 10px;
  font-size: 23px;
  border: 0;
}
#task-composer .task-intake {
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#task-composer h2 {
  font:
    27px Georgia,
    serif;
  margin: 0;
}
#task-composer form {
  gap: 16px;
}
#task-composer textarea {
  font-size: 13px;
  min-height: 90px;
}
#task-composer .starter-prompts button {
  color: #2a6c8d;
  background: #eef6f9;
  border-color: #d8e6ee;
  font-size: 9px;
}
#task-composer .intake-footer p {
  font-size: 9px;
}
.support-workspace {
  background: #fff;
  border: 1px solid #d9e3e9;
  border-radius: 10px;
  padding: 25px;
  min-height: 350px;
}
.support-workspace > h2 {
  font:
    27px Georgia,
    serif;
}
.support-workspace > p {
  font-size: 12px;
}
.support-workspace > h3 {
  margin-top: 25px;
  color: #345d74;
  font-size: 15px;
}
.schedule-card,
.mail-connection {
  padding: 18px;
  border: 1px solid #cfdee6;
  border-left: 3px solid #3a8084;
  border-radius: 8px;
  margin: 20px 0;
  background: #f5fafb;
}
.schedule-card h3 {
  margin: 8px 0;
  font-size: 17px;
}
.schedule-card p {
  font-size: 12px;
}
.schedule-card strong {
  display: block;
  margin-top: 12px;
  color: #356b73;
  font-size: 12px;
}
.result-row {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 9px;
  margin: 10px 0;
  width: 100%;
  padding: 16px;
}
.result-row span {
  font-size: 10px;
  color: #67808f;
}
.mail-connection strong,
.mail-connection span {
  display: block;
}
.mail-connection span {
  font-size: 11px;
  margin-top: 8px;
  color: #57808b;
}
.mail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin-top: 20px;
}
.mail-row {
  display: grid;
  text-align: left;
  gap: 7px;
  padding: 14px;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 6px;
}
.mail-row strong {
  font-size: 12px;
}
.mail-row span,
.mail-row small {
  font-size: 10px;
  color: #6d818d;
}
.mail-detail {
  padding: 18px;
  background: #f3f7f9;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.mail-detail h3 {
  font-size: 18px;
}
.mail-detail p {
  font-size: 12px;
}
footer {
  margin: 26px 0 10px;
  color: #91a1ab;
}
@media (min-width: 1500px) {
  main {
    padding: 24px 38px;
  }
}
@media (max-width: 1150px) {
  .task-work-layout {
    grid-template-columns: 1fr;
  }
  .task-board {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
  .task-conversation {
    position: static;
    max-height: none;
  }
  .task-metrics > div {
    display: grid;
    gap: 4px;
  }
}
@media (max-width: 650px) {
  aside {
    width: auto;
    padding: 17px 20px;
  }
  main {
    margin: 0;
    padding: 20px 16px;
  }
  header h1 {
    font-size: 28px;
  }
  header p {
    font-size: 11px;
  }
  header {
    gap: 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .mode {
    font-size: 9px;
    padding: 6px 9px;
  }
  .workspace-tabs {
    gap: 19px;
    overflow-x: auto;
  }
  .workspace-tabs button {
    font-size: 11px;
  }
  .board-heading h2 {
    font-size: 22px;
  }
  .board-heading .primary {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px 11px;
  }
  .task-metrics {
    gap: 8px;
  }
  .task-metrics strong {
    font-size: 22px;
  }
  .task-metrics span {
    font-size: 8px;
  }
  .specialist-deck {
    grid-template-columns: repeat(5, 145px);
  }
  .board-toolbar {
    gap: 7px;
  }
  .board-filters button {
    font-size: 10px;
    padding: 7px 8px;
  }
  .task-work-layout {
    gap: 14px;
  }
  .task-conversation {
    padding: 17px;
  }
  .task-board {
    grid-template-columns: 1fr;
  }
  .task-conversation h2 {
    font-size: 21px;
  }
  .mail-layout {
    grid-template-columns: 1fr;
  }
  .support-workspace {
    padding: 20px;
  }
  #task-composer {
    padding: 20px;
  }
}
.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 0 9px;
}
.brand-lockup img {
  width: 94px;
  height: 96px;
  object-fit: contain;
}
.brand-lockup > span {
  color: #f4f4ef;
  letter-spacing: 0.19em;
  font-size: 11px;
}
@media (max-width: 650px) {
  .brand-lockup {
    display: flex;
    gap: 15px;
    padding: 0;
    justify-content: start;
  }
  .brand-lockup img {
    width: 38px;
    height: 39px;
  }
  .brand-lockup > span {
    font-size: 13px;
  }
}

/* Unified white operations desk, with a compactable brand rail. */
:root,
body {
  background: #fff;
  background-image: none;
}
.nav-toggle {
  align-self: flex-end;
  margin: -12px -6px 14px 0;
  color: #c7d8e4;
  background: #243f54;
  border-color: #3a556a;
  border-radius: 5px;
  padding: 2px 10px;
  font-size: 20px;
}
body.nav-collapsed aside {
  width: 72px;
  padding: 22px 12px;
}
body.nav-collapsed main {
  margin-left: 72px;
}
body.nav-collapsed aside .brand-lockup img {
  width: 45px;
  height: 46px;
}
body.nav-collapsed aside .brand-lockup > span,
body.nav-collapsed aside .side-label,
body.nav-collapsed aside .side-current,
body.nav-collapsed aside .side-note,
body.nav-collapsed aside .side-bottom {
  display: none;
}
body.nav-collapsed .nav-toggle {
  align-self: center;
  margin: -10px 0 20px;
}
.task-work-layout {
  grid-template-columns: minmax(235px, 0.85fr) minmax(365px, 1.35fr) minmax(225px, 0.8fr);
  gap: 16px;
}
.task-board {
  grid-template-columns: 1fr;
}
.task-conversation {
  max-height: 70vh;
}
.task-metrics {
  padding: 12px 0;
  margin-bottom: 12px;
}
.task-metrics strong {
  font-size: 23px;
}
.board-heading h2 {
  font-size: 24px;
}
.operations-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}
.operations-card {
  border: 1px solid #dce5eb;
  border-radius: 9px;
  background: #fff;
  padding: 14px;
  overflow: hidden;
}
.operations-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.operations-card-heading h3 {
  font-size: 12px;
  margin: 0;
  color: #35566d;
}
.operations-card-heading button {
  color: #316f96;
  font-size: 9px;
  border: 0;
  background: transparent;
  padding: 0;
}
.operations-card p {
  font-size: 11px;
  line-height: 1.5;
}
.operations-card > small {
  display: block;
  font-size: 9px;
  color: #7d8d98;
  margin-top: 9px;
}
.rail-time {
  display: block;
  font:
    18px Georgia,
    serif;
  margin: 5px 0 8px;
  color: #305c75;
}
.rail-status {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  color: #3c776f;
  background: #edf5f2;
  border-radius: 4px;
  margin-top: 8px;
}
.rail-note {
  font-size: 9px;
  color: #6d7f8c;
  line-height: 1.5;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e4ebef;
}
.rail-task,
.rail-history {
  display: grid;
  text-align: left;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  border-radius: 0;
  width: 100%;
  font-size: 10px;
  background: transparent;
}
.rail-history > span {
  color: #425e70;
  line-height: 1.45;
}
.rail-history > small {
  font-size: 8px;
  color: #7b8d99;
}
.rail-mail {
  padding: 9px 0;
  border-top: 1px solid #e8eef2;
}
.rail-mail > strong {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}
.rail-mail > small {
  display: block;
  font-size: 8px;
  color: #758995;
  margin-top: 5px;
}
@media (max-width: 1000px) {
  .task-work-layout {
    grid-template-columns: minmax(235px, 0.9fr) minmax(360px, 1.3fr);
  }
  .operations-rail {
    grid-column: 1/-1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .task-work-layout {
    grid-template-columns: 1fr;
  }
  .operations-rail {
    grid-template-columns: 1fr;
  }
  .task-conversation {
    position: static;
    max-height: none;
  }
}
@media (max-width: 650px) {
  aside,
  body.nav-collapsed aside {
    width: auto;
    padding: 12px 16px;
    position: static;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }
  body.nav-collapsed main,
  main {
    margin-left: 0;
  }
  .nav-toggle,
  body.nav-collapsed .nav-toggle {
    margin: 0;
    align-self: center;
  }
  body.nav-collapsed aside .brand-lockup img {
    width: 36px;
    height: 37px;
  }
  .operations-rail {
    display: grid;
  }
}

/* Keep the operations desk visible beside work at ordinary desktop widths. */
@media (min-width: 1001px) {
  header {
    margin-bottom: 14px;
  }
  header h1 {
    font-size: 28px;
    margin: 4px 0;
  }
  header p {
    margin: 4px 0 0;
  }
  .boundary {
    margin: 0 0 12px;
  }
  .workspace-tabs {
    margin-bottom: 14px;
  }
  .board-heading {
    margin-bottom: 8px;
  }
  .board-heading h2 {
    font-size: 21px;
    margin: 5px 0;
  }
  .board-heading p {
    margin: 4px 0;
  }
  .task-metrics {
    padding: 8px 0;
    margin-bottom: 8px;
  }
  .agent-filter-heading {
    margin-bottom: 5px;
  }
  .specialist-deck {
    margin-bottom: 8px;
    padding-bottom: 3px;
  }
  .teammate {
    padding: 9px;
    min-height: 62px;
  }
  .teammate strong {
    font-size: 16px;
  }
  .teammate img {
    width: 30px;
    height: 30px;
  }
  .board-toolbar {
    margin-bottom: 10px;
  }
  .task-work-layout {
    grid-template-columns: minmax(210px, 0.8fr) minmax(330px, 1.4fr) minmax(210px, 0.8fr);
    gap: 12px;
  }
  .task-conversation {
    max-height: max(350px, calc(100dvh - 450px));
    padding: 16px;
  }
  .task-conversation h2 {
    font-size: 20px;
  }
  .operations-card {
    padding: 12px;
  }
}

/* PK Spaces 2026 palette; white canvas and existing operational green retained. */
:root {
  --pk-midnight: #0e2341;
  --pk-cotton: #f7f5f1;
  --pk-stone: #e8e3db;
  --pk-carbon: #1f1f1f;
  --pk-zinc: #7a7a7a;
  --pk-brass: #a58a5a;
  --pk-bronze: #996d4b;
  --pk-sage: #879787;
  --pk-concrete: #698291;
  --pk-mineral: #5e7f84;
  --pk-green: #39806d;
  color: var(--pk-midnight);
}
aside {
  background: var(--pk-midnight);
}
header h1,
h2,
h3,
.teammate strong,
.task-card strong {
  color: var(--pk-midnight);
}
header .eyebrow,
.board-heading .eyebrow,
.agent-filter-heading strong {
  color: var(--pk-zinc);
}
.nav-toggle {
  background: #243650;
  border-color: #4a5c73;
  color: var(--pk-cotton);
}
.side-current {
  background: #243650;
  border-left-color: var(--pk-brass);
}
.mode {
  background: var(--pk-stone);
  color: var(--pk-midnight);
}
.boundary {
  background: var(--pk-cotton);
  color: var(--pk-midnight);
}
.workspace-tabs {
  border-color: var(--pk-stone);
}
.workspace-tabs button,
.board-toolbar > span,
.task-meta {
  color: var(--pk-zinc);
}
.workspace-tabs button[aria-pressed='true'] {
  color: var(--pk-midnight);
  border-color: var(--pk-brass);
}
.primary,
#open-composer,
.manager-open {
  background: var(--pk-midnight);
  border-color: var(--pk-midnight);
  color: #fff;
}
.task-metrics,
.teammate,
.task-card,
.task-conversation,
.operations-card {
  border-color: var(--pk-stone);
}
.task-metrics strong {
  color: var(--pk-midnight);
}
.teammate {
  border-top-color: var(--agent);
}
.teammate-manager {
  --agent: #996d4b;
}
.teammate-on_time {
  --agent: #39806d;
}
.teammate-on_budget {
  --agent: #a58a5a;
}
.teammate-on_brand {
  --agent: #5e7f84;
}
.teammate-wall_experience {
  --agent: #0e2341;
}
.teammate strong {
  font:
    600 12px/1.35 Arial,
    sans-serif;
}
.teammate-role {
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--pk-zinc);
}
.teammate small {
  font-size: 9px;
  color: var(--pk-zinc);
  white-space: normal;
}
.teammate img {
  width: 34px;
  height: 42px;
  border-radius: 0;
}
.teammate:hover,
.teammate[aria-pressed='true'] {
  background: var(--pk-cotton);
  border-color: var(--agent);
  box-shadow: inset 0 -2px var(--agent);
}
.agent-filter-heading button[aria-pressed='true'] {
  background: var(--pk-cotton);
  border-color: var(--pk-brass);
  color: var(--pk-midnight);
}
.board-filters {
  background: var(--pk-stone);
}
.board-filters button[aria-pressed='true'] {
  color: var(--pk-midnight);
}
.task-column,
.task-column:nth-child(2),
.task-column:nth-child(3) {
  background: var(--pk-cotton);
  border-top-color: var(--pk-concrete);
}
.task-column.group-waiting {
  border-top-color: var(--pk-brass);
}
.task-column.group-working {
  border-top-color: var(--pk-mineral);
}
.task-column.group-review,
.task-column.group-completed {
  border-top-color: var(--pk-green);
}
.task-column.group-completed {
  background: #e9f2ef;
}
.task-card.selected {
  background: #fff;
  border-color: var(--pk-mineral);
  box-shadow: inset 3px 0 var(--pk-mineral);
}
.card-agent img,
.conversation-heading img,
.message > img {
  border-radius: 0;
}
.conversation-heading .eyebrow,
.operations-card-heading h3,
.rail-time,
.rail-history > span {
  color: var(--pk-midnight);
}
.message,
.message-system {
  background: var(--pk-cotton);
  color: var(--pk-carbon);
}
.message-human {
  background: #edf1f3;
}
.message-ai {
  background: #e9f2ef;
}
.operations-card-heading button {
  color: var(--pk-midnight);
}
.rail-status {
  color: var(--pk-green);
  background: #e9f2ef;
}
.rail-note,
.rail-mail > small,
.rail-history > small,
.operations-card > small {
  color: var(--pk-zinc);
}
.starter-prompts button,
#task-composer .starter-prompts button {
  background: var(--pk-cotton);
  border-color: var(--pk-stone);
  color: var(--pk-midnight);
}

/* Compact title row: KPIs share its footprint instead of consuming a new row. */
header {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(360px, 1.8fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
header h1 {
  font-size: 28px;
  margin: 0 0 6px;
}
header .powered-by {
  margin: 0;
  font-size: 10px;
  color: var(--pk-zinc);
}
.powered-by strong {
  color: var(--pk-midnight);
  letter-spacing: 0.05em;
}
header .task-metrics {
  padding: 11px 14px;
  margin: 0;
  gap: 12px;
  border: 1px solid var(--pk-stone);
  border-radius: 8px;
  background: var(--pk-cotton);
}
header .task-metrics > div {
  display: grid;
  gap: 4px;
}
header .task-metrics > div + div {
  border-left: 1px solid var(--pk-stone);
  padding-left: 12px;
}
header .task-metrics strong {
  font-size: 23px;
  line-height: 1;
}
header .task-metrics span {
  font-size: 9px;
  white-space: nowrap;
  color: var(--pk-zinc);
}
.header-actions {
  gap: 8px;
}
.header-actions button {
  padding: 8px 10px;
  font-size: 10px;
}
.mode {
  padding: 7px 10px;
  font-size: 9px;
}
.workspace-tabs {
  margin: 5px 0 8px;
}
.workspace-tabs button {
  padding: 9px 0;
}
.board-heading {
  margin: 0 0 9px;
  min-height: 34px;
}
.board-heading p {
  margin: 0;
  font-size: 10px;
}
#open-composer {
  padding: 8px 12px;
  font-size: 11px;
}
@media (min-width: 1001px) {
  .task-conversation {
    max-height: max(350px, calc(100dvh - 320px));
  }
}
@media (max-width: 1000px) {
  header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  header .task-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 650px) {
  main {
    padding-top: 16px;
  }
  header .task-metrics {
    padding: 10px;
    gap: 6px;
  }
  header .task-metrics > div + div {
    padding-left: 6px;
  }
  header .task-metrics span {
    font-size: 8px;
    white-space: normal;
  }
  .board-heading {
    gap: 10px;
  }
}
.mail-source-text {
  font:
    12px/1.6 Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 230px;
  overflow: auto;
  padding: 14px;
  background: var(--pk-cotton);
  border: 1px solid var(--pk-stone);
  border-radius: 6px;
}
.mail-detail label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  font-size: 11px;
}
.mail-detail textarea {
  width: 100%;
  font:
    12px/1.6 Arial,
    sans-serif;
}
.mail-detail h4 {
  font-size: 12px;
  margin-top: 22px;
}
.mail-review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mail-review-state {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 7px 10px;
  background: #e9f2ef;
  color: var(--pk-green);
  border-radius: 4px;
  margin: 12px 0;
}
.mail-action-card {
  padding: 14px;
  border: 1px solid var(--pk-stone);
  border-radius: 7px;
  margin: 10px 0;
}
.mail-action-card strong {
  font-size: 11px;
}
.mail-action-card small {
  display: block;
  font-size: 10px;
  color: var(--pk-zinc);
  margin-bottom: 10px;
}
.automatic-mail-banner {
  padding: 16px;
  border: 1px solid var(--pk-stone);
  border-left: 3px solid var(--pk-green);
  background: var(--pk-cotton);
  border-radius: 7px;
  margin: 16px 0;
}
.automatic-mail-banner > strong {
  font-size: 13px;
  color: var(--pk-midnight);
}
.automatic-mail-banner > p {
  font-size: 11px;
  line-height: 1.5;
}
.automatic-mail-banner > small {
  display: block;
  color: var(--pk-zinc);
  font-size: 10px;
  margin-top: 10px;
}
.automatic-mail-banner button {
  font-size: 11px;
  padding: 7px 10px;
}
