.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}
.library-toolbar label:first-child {
  flex: 1;
  min-width: 180px;
}
.library-toolbar label {
  margin: 0;
}
.library-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.library-dialog {
  width: 680px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.library-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.library-dialog .source-preview-content {
  padding: 24px;
}
.library-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 60dvh;
  overflow: auto;
}
.library-dialog iframe {
  width: 100%;
  height: 60dvh;
  border: 0;
}
.library-dialog img {
  max-width: 100%;
  height: auto;
}
.library-dialog input[type="file"] {
  max-width: 100%;
}
.library-dialog .btn {
  margin-top: 12px;
}
.library-dialog::backdrop {
  background: rgba(18, 36, 60, 0.4);
}
@media (max-width: 600px) {
  .library-toolbar {
    align-items: stretch;
  }
  .library-toolbar label {
    width: 100%;
  }
  .library-dialog .source-preview-content {
    padding: 16px;
  }
  .library-actions {
    gap: 6px;
  }
}
.meeting-record {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 26px;
  border-top: 1px solid #e7edf4;
}
.meeting-record-copy {
  min-width: 0;
}
.meeting-record h3 {
  margin: 0;
  color: #263f60;
  font-size: 15px;
  font-weight: 600;
}
.meeting-record p {
  margin: 8px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.meeting-record small {
  color: #64748b;
  font-size: 12px;
}
.meeting-record-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}
@media (max-width: 600px) {
  .meeting-record {
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .meeting-record-actions {
    justify-content: space-between;
  }
  .meeting-record .btn {
    min-height: 44px;
  }
}

/* Full-height coworker conversation; only the message area scrolls. */
.assistant-workspace .workspace-content-scroll{display:flex;flex-direction:column;overflow:hidden}
.assistant-workspace #main{flex:1;min-height:0;display:flex;padding:24px}
.assistant-page.panel{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;text-align:left}
.assistant-title{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid #edf1f6;flex:none}
.coworker-avatar{width:48px;height:48px;border-radius:16px;object-fit:cover;flex:none;background:#edf4ff}
.coworker-avatar.small{width:32px;height:32px;border-radius:10px;margin-right:8px}
.assistant-title h1{font-size:18px;line-height:1.5;margin:0}
.assistant-title p{font-size:12px;color:#7b8ca4;margin:3px 0 0}
.assistant-conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px max(24px,calc((100% - 960px)/2));scrollbar-width:thin}
.assistant-welcome{text-align:center;padding:16px 0 20px}
.assistant-welcome>.coworker-avatar{width:88px;height:88px;border-radius:26px;margin-bottom:14px}
.assistant-welcome h2{margin:0 0 10px;font-size:25px}
.assistant-welcome p{font-size:13px;line-height:1.8;color:#7b8ca4}
.assistant-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:800px;margin:24px auto 0;gap:10px}
.assistant-prompts .btn{white-space:normal;text-align:left;justify-content:flex-start;min-height:46px;font-size:13px;background:#f8faff;border-color:#e6edf7}
.assistant-composer{padding:16px max(24px,calc((100% - 960px)/2)) 18px;background:#fff;border-top:1px solid #edf1f6;flex:none}
.assistant-composer .chat-form{margin:0;align-items:stretch;border:1px solid #dce6f4;border-radius:16px;padding:8px;background:#f8faff}
.assistant-composer .chat-form input{flex:1;border:0;background:transparent;box-shadow:none;font-size:15px;padding:10px}
.assistant-composer .chat-form .btn{width:48px;min-height:48px;padding:0;flex:none;justify-content:center}
.assistant-composer>small{display:block;text-align:center;font-size:11px;color:#8a99ad;margin-top:9px}
.assistant-conversation .chat-message{font-size:14px;max-width:88%;line-height:1.9;padding:16px 20px}
.assistant-conversation .chat-message.assistant{background:#f4f7fb}
@media(max-width:600px){.assistant-workspace #main{padding:8px}.assistant-title{padding:12px 14px}.assistant-conversation{padding:16px}.assistant-welcome{padding-top:4px}.assistant-welcome h2{font-size:21px}.assistant-welcome>.coworker-avatar{width:64px;height:64px;border-radius:20px}.assistant-prompts{gap:8px}.assistant-prompts .btn{font-size:12px;padding:10px;min-height:48px}.assistant-composer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.assistant-conversation .chat-message{max-width:94%;padding:12px 14px}.assistant-composer .chat-form input{font-size:16px}}
.assistant-workspace #main{width:100%;max-width:none;margin:0}
.meeting-detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px;align-items:start}
.meeting-analysis-card{padding:24px;margin-bottom:18px;overflow-wrap:anywhere}
.meeting-analysis-card .section-head{padding:0;margin-bottom:16px}
.meeting-analysis-card h3{font-size:16px;margin:0 0 14px}
.meeting-analysis-card p,.meeting-analysis-card li{font-size:13px;line-height:1.9;white-space:pre-wrap}
.meeting-analysis-card ul{padding-left:20px;margin:0}
.meeting-analysis-card label{display:block;margin-bottom:10px;font-size:12px}
.meeting-analysis-card textarea{width:100%;resize:vertical;line-height:1.8;font-size:14px}
.meeting-analysis-card .text-btn{display:block;margin-top:14px}
.meeting-detail-grid aside .project-intake-sources{margin-bottom:18px}
.meeting-detail-grid .source-material-row{flex-wrap:wrap}
@media(max-width:850px){.meeting-detail-grid{grid-template-columns:1fr}.meeting-analysis-card{padding:18px}}
.assistant-capabilities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px auto 4px;text-align:left}
.capability-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:212px;padding:20px 18px;border:1px solid var(--card-line);border-radius:18px;background:var(--card-bg);color:var(--card-ink);text-align:left;transition:transform .16s,box-shadow .16s}
.capability-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #18365b12}
.capability-blue{--card-bg:#eef5ff;--card-line:#d6e5fc;--card-ink:#2459a5}
.capability-amber{--card-bg:#fff7e8;--card-line:#f2e3c2;--card-ink:#85561b}
.capability-violet{--card-bg:#f4f0ff;--card-line:#e5dcfa;--card-ink:#684aa4}
.capability-green{--card-bg:#edf8f3;--card-line:#d1eadd;--card-ink:#276c50}
.capability-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ffffffa8;margin-bottom:14px}
.capability-symbol .icon{width:21px;height:21px}
.capability-label{font-size:10px;letter-spacing:.04em;opacity:.85;margin-bottom:5px}
.capability-card strong{font-size:17px;line-height:1.5;margin-bottom:8px}
.capability-description{font-size:12px;line-height:1.8;color:#53647a;flex:1}
.capability-start{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;font-size:11px;font-weight:600;margin-top:20px}
.capability-start .icon{width:15px;height:15px}
@media(max-width:1100px){.assistant-capabilities{grid-template-columns:repeat(2,minmax(0,1fr))}.capability-card{min-height:188px}}
@media(max-width:600px){.assistant-capabilities{gap:10px;margin-top:22px}.capability-card{padding:15px 12px;min-height:196px;border-radius:14px}.capability-card strong{font-size:15px}.capability-description{font-size:11px}.capability-start{margin-top:14px}.capability-symbol{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.capability-card{transition:none}.capability-card:hover{transform:none}}
@media(min-width:851px) and (max-height:800px){.assistant-welcome{padding:0 0 8px}.assistant-welcome>.coworker-avatar{display:none}.assistant-welcome h2{font-size:23px}.assistant-conversation{padding-top:20px}.assistant-capabilities{margin-top:20px}.capability-card{min-height:190px;padding:16px}.capability-start{margin-top:12px}}


/* Operating goals, supervision and evidence share the workspace design language. */
.op-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.op-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 0 !important;
  min-width: 0;
}
.op-card h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}
.op-card h2 a {
  color: inherit;
}
.op-card p {
  margin: 0;
  line-height: 1.8;
  color: #526379;
}
.op-card > .btn {
  margin-top: auto;
}
.op-card .section-head {
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}
.op-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.op-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.op-metrics > a,
.op-metrics > div {
  padding: 18px;
  background: #f5f8fc;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  color: #18314f;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.op-metrics span {
  font-size: 13px;
  line-height: 1.6;
  color: #526379;
}
.op-metrics strong {
  font-size: 28px;
}
.op-metrics strong small {
  font-size: 14px;
}
.op-overview {
  margin-bottom: 24px;
}
.op-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e7edf4;
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.op-summary-row > span:first-child {
  flex: 1;
  min-width: 0;
}
.op-summary-row small {
  display: block;
  color: #63758b;
  font-size: 13px;
  line-height: 1.8;
}
.op-project-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.op-project-context p {
  margin: 8px 0 0;
  color: #526379;
}
.op-project-context .op-buttons {
  margin: 0;
}
.op-history {
  margin-top: 22px;
  border-top: 1px solid #e1e8f1;
  padding-top: 16px;
}
.op-history p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.op-history summary,
.op-meeting-panel summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #165fbd;
}
.op-empty {
  padding: 24px 0;
  line-height: 1.8;
  color: #63758b;
}
.op-caption {
  margin: 0 0 20px;
  color: #63758b;
  line-height: 2;
}
.op-meeting-panel {
  margin-bottom: 24px;
}
.op-meeting-panel > p {
  line-height: 1.8;
  color: #526379;
}
.op-meeting-panel ul {
  padding-left: 24px;
  line-height: 1.8;
}
.op-review {
  padding: 22px 0;
  border-bottom: 1px solid #e1e8f1;
}
.op-review p {
  line-height: 1.8;
  white-space: pre-wrap;
}
.op-review small {
  color: #63758b;
  line-height: 1.8;
}
.op-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.op-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 720px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #dce5f0;
  border-radius: 20px;
  background: white;
  color: #18314f;
  box-shadow: 0 24px 80px #152a4b33;
  overflow: auto;
}
.op-dialog::backdrop {
  background: #13213f66;
  backdrop-filter: blur(3px);
}
.op-dialog > header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e8f1;
}
.op-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.op-dialog > form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.op-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  min-width: 0;
}
.op-dialog input,
.op-dialog textarea,
.op-dialog select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cdd9e7;
  border-radius: 10px;
  background: white;
  color: #18314f;
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
}
.op-dialog textarea {
  resize: vertical;
}
.op-dialog p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.op-dialog :focus-visible,
.op-overview a:focus-visible {
  outline: 2px solid #087af5;
  outline-offset: 3px;
}
.op-dialog .btn {
  align-self: flex-start;
  min-height: 44px;
}
.op-dialog .form-error:empty {
  display: none;
}
.op-departments {
  margin-bottom: 24px;
}
.op-cards + .panel {
  margin-top: 24px;
}
.sidebar {
  overflow-y: auto;
}
.op-overview a:hover {
  color: #087af5;
}
.op-card .btn,
.op-buttons .btn {
  white-space: normal;
  text-align: center;
}
@media (max-width: 1100px) {
  .op-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .op-project-context {
    align-items: flex-start;
    flex-direction: column;
  }
  .op-cards {
    gap: 16px;
  }
}
@media (max-width: 650px) {
  .op-cards {
    grid-template-columns: 1fr;
  }
  .op-form-grid {
    grid-template-columns: 1fr;
  }
  .op-summary-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .op-dialog > header {
    padding: 16px;
  }
  .op-dialog > form {
    padding: 18px;
  }
  .op-metrics {
    gap: 10px;
  }
  .op-metrics > a,
  .op-metrics > div {
    padding: 13px;
  }
  .op-metrics strong {
    font-size: 24px;
  }
  .op-project-context {
    padding: 18px;
  }
  .op-card h2 {
    font-size: 18px;
  }
}
.nav-module-system > summary {
  cursor: pointer;
  min-height: 44px;
  list-style: none;
}
.nav-module-system > summary::after {
  content: "⌄";
  margin-left: auto;
}
.nav-module-system[open] > summary::after {
  content: "⌃";
}
.op-empty {
  grid-column: 1/-1;
  background: #f6f9fd;
  border: 1px dashed #d7e2ef;
  border-radius: 16px;
  padding: 32px !important;
}
.op-empty strong {
  display: block;
  color: #36506e;
}
.op-empty p {
  margin: 12px 0 0;
}
.op-metrics a {
  min-height: 100px;
}
.op-metrics a:hover {
  border-color: #1683ef;
  background: #edf5ff;
}
.op-summary-row > .btn {
  flex-shrink: 0;
}
@media (pointer: coarse) {
  .op-buttons .btn,
  .op-card .btn,
  .op-summary-row .btn {
    min-height: 44px;
  }
}
.op-page > .panel,
.op-page .op-card,
.op-overview,
.op-project-context,
.op-meeting-panel,
.op-archive,
.op-responsibilities {
  padding: 24px;
  box-sizing: border-box;
}
.op-page > .panel {
  margin-bottom: 22px;
}
.op-page .panel > .section-head,
.op-overview > .section-head,
.op-meeting-panel > .section-head,
.op-archive > .section-head,
.op-responsibilities > .section-head {
  padding: 0 0 18px;
}
.op-page .panel > h2,
.op-archive > h2,
.op-responsibilities > h2 {
  margin-top: 0;
}
.op-page .op-metrics {
  margin-top: 0;
}
.op-page > .panel > p {
  line-height: 1.8;
  color: #526379;
}
.op-responsibilities {
  margin-top: 20px;
  margin-bottom: 24px;
}
.op-responsibilities h3 {
  margin-top: 24px;
}
.op-page > .op-cards {
  margin-top: 24px;
}
.op-archive {
  margin-bottom: 24px;
}
.op-page .op-history {
  margin-bottom: 0;
}
.op-page .op-card .section-head {
  padding-bottom: 0;
}
.op-page .op-empty {
  margin: 0;
}
.op-page .panel h3 {
  line-height: 1.6;
}
.op-meeting-panel .section-head {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .op-page > .panel,
  .op-page .op-card,
  .op-overview,
  .op-project-context,
  .op-meeting-panel,
  .op-archive,
  .op-responsibilities {
    padding: 18px;
  }
  .op-page .op-metrics {
    margin-top: 16px;
  }
}

.project-owner-picker{border:1px solid #dbe6f2;border-radius:14px;padding:20px;margin:20px 0;min-width:0}.project-owner-picker legend{font-weight:700;color:#223c5d;padding:0 8px}.project-owner-picker>p,.project-owner-picker>small{color:#526b86;line-height:1.7}.project-owner-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.project-owner-modes>label{display:flex!important;flex-direction:row;align-items:flex-start;gap:10px;padding:14px;border:1px solid #dbe5f0;border-radius:12px;cursor:pointer}.project-owner-modes>label:has(input:checked){background:#eef6ff;border-color:#1280f6}.project-owner-modes input{width:18px!important;height:18px!important;min-height:0!important;flex-shrink:0;margin-top:3px}.project-owner-modes strong,.project-owner-modes small{display:block;line-height:1.6}.project-owner-modes small{font-size:12px;font-weight:400;color:#526b86;margin-top:4px}.project-owner-recommendation{padding:18px;border-radius:12px;background:#f2f7ff;margin:16px 0}.project-owner-recommendation p{line-height:1.7}.project-owner-recommendation small{display:block;color:#526b86;line-height:1.7;margin-top:12px}.project-owner-current{margin:16px 0}.project-owner-picker select{font-size:16px;min-height:44px}.planning-summary-owner{padding:0 24px 20px}@media(max-width:800px){.project-owner-modes{grid-template-columns:1fr}.project-owner-picker{padding:16px}.project-owner-modes>label{min-height:64px}}

.v2-identity{display:flex;align-items:center;gap:8px;font-size:12px;color:#617a98}.v2-identity select{width:auto;max-width:150px;padding:8px 10px;min-height:40px;border:1px solid #dce5ef;border-radius:10px;background:#f8fbff;color:#254463}.v2-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:24px}.v2-toolbar label{display:flex;align-items:center;gap:10px;color:#526b86}.v2-toolbar select{min-height:44px;padding:8px;border:1px solid #d6e2ef;border-radius:10px;background:white}.v2-measure{padding:22px 0;border-bottom:1px solid #e3ebf4}.v2-measure:first-child{padding-top:0}.v2-measure:last-child{border-bottom:0;padding-bottom:0}.v2-measure .section-head{padding:0!important;gap:16px;flex-wrap:wrap}.v2-measure h3{margin:0;font-size:18px;line-height:1.6}.v2-measure p{color:#58708e;line-height:1.8}.v2-report{border:1px solid #e0e8f1;background:#f8fbff;padding:20px;border-radius:14px;margin:16px 0}.v2-report p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#526b86}.v2-check{flex-direction:row!important;align-items:flex-start;gap:12px!important}.v2-check input{width:20px!important;min-height:20px!important;height:20px!important;flex-shrink:0}.v2-dialog form>p{white-space:pre-wrap}.v2-dialog .op-summary-row .op-buttons{margin:0}.v2-dialog form{overflow-wrap:anywhere}.op-page>.panel>.op-metrics strong{font-size:20px}.op-page .op-buttons .btn{min-height:40px}.v2-identity>span{white-space:nowrap}@media(max-width:650px){.v2-identity>span{display:none}.v2-identity select{max-width:115px;font-size:12px}.top-actions{gap:8px}.v2-report{padding:16px}.v2-measure .op-buttons{gap:8px}.v2-dialog .btn,.v2-toolbar .btn{min-height:44px}}

/* Versioned workflow canvas */
.flow-scroll{overflow:auto;border:1px solid #dbe4ef;border-radius:16px;background:#f7faff;margin-top:20px;max-height:65vh}
.flow-canvas{position:relative;min-width:720px;background-image:radial-gradient(#cbd9e9 1px,transparent 1px);background-size:20px 20px}
.flow-canvas>svg{position:absolute;inset:0;pointer-events:none}
.wf-node{position:absolute;width:160px;min-height:112px;padding:12px;background:white;border:1px solid #b6cde7;border-radius:12px;box-shadow:0 4px 12px #183e6610;display:flex;flex-direction:column;gap:7px}
.wf-node[draggable=true]{cursor:grab}.wf-node strong{font-size:14px}.wf-node small,.wf-node span{font-size:11px;color:#63758a}.wf-node .btn{min-height:28px;padding:4px 8px;font-size:11px;align-self:flex-start}
.wf-node-review{border-color:#c8b7e4;background:#fbf9ff}.wf-node-branch{border-color:#e2c38f;background:#fffdf7}.wf-node-start,.wf-node-end{border-color:#a7cfbd;background:#f4fbf8}.wf-node-fork,.wf-node-join{border-color:#abc5e8;background:#f3f8ff}
@media(max-width:640px){.v2-identity>span{display:none}.v2-identity select{max-width:105px}.flow-scroll{max-height:55vh}.wf-node{box-shadow:none}}

/* Business modules: keep primary navigation short, expose related routes locally. */
.workspace-module-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px;margin:0 0 28px;background:#f3f7fc;border:1px solid #e0e8f2;border-radius:14px}
.workspace-module-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:10px;color:#526b86;font-size:14px;line-height:1.5;text-align:center}
.workspace-module-tab:hover{background:#e9f1fb;color:#155fb5}.workspace-module-tab.active{background:#fff;border-color:#d9e5f4;color:#0766cd;font-weight:600;box-shadow:0 2px 5px #163c6210}
.module-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e8f1ff;color:#176bc6;font-size:11px}
@media(max-width:650px){.workspace-module-tabs{gap:4px;padding:5px;margin-bottom:22px}.workspace-module-tab{flex:1 1 auto;padding:10px 12px;font-size:13px}}

.boss-support{margin:0 0 24px;border:1px solid #dce6f2;border-radius:14px;background:#fff}.boss-support>summary{padding:18px 22px;min-height:56px;cursor:pointer;color:#375575;font-weight:600}.boss-support>.panel{margin:0;border:0;box-shadow:none}.boss-support[open]>summary{border-bottom:1px solid #e4ecf5}

.boss-support{margin:0 0 24px;border:1px solid #dce6f1;border-radius:14px;background:#f8fbff}.boss-support>summary{padding:16px 20px;min-height:52px;cursor:pointer;font-weight:600;color:#315474}.boss-support[open]>summary{border-bottom:1px solid #e0e8f2}.boss-support>.panel{margin:0;border:0;border-radius:0 0 14px 14px;box-shadow:none}

/* Keep the goal entry visible as a distinct business action. */
.modular-navigation .nav-item[data-view="goals"] .nav-icon{background:#d5eee1;color:#196447}
.modular-navigation .nav-item[data-view="goals"].active{background:#19734f;border-color:#19734f;color:#fff;box-shadow:0 4px 10px #19734f20}
.modular-navigation .nav-item[data-view="goals"].active .nav-icon{background:#ffffff24;color:#fff}

.task-timeline-event{padding:22px 0;border-bottom:1px solid #e3ebf4;overflow-wrap:anywhere}.task-timeline-event:first-child{padding-top:0}.task-timeline-event:last-child{border-bottom:0;padding-bottom:0}.task-timeline-event .section-head{padding:0!important;gap:12px;flex-wrap:wrap}.task-timeline-event h3{margin:0;color:#294965;font-size:16px}.task-timeline-event p{color:#526b86;white-space:pre-wrap;line-height:1.8}.task-timeline-event .v2-report{margin-bottom:0}.task-timeline-event small{color:#637891}.boss-support .op-summary-row{gap:12px;flex-wrap:wrap}

/* Overview: keep only the five current business priorities. */
.overview-statistics .workspace-stats.overview-metric-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.overview-statistics .metric-attention{background:#fff6e8;border-color:#f3e6cd;--stat-ink:#946126;--stat-label:#82683f}.overview-statistics .metric-critical{background:#fff0ed;border-color:#f4dfd9;--stat-ink:#ab5145;--stat-label:#8f6058}.overview-statistics .metric{transition:box-shadow .15s,border-color .15s}.overview-statistics .metric:hover{box-shadow:0 3px 10px #224a7410}.overview-statistics .metric-title>span{white-space:normal}
@media(max-width:1100px) and (min-width:651px){.overview-statistics .workspace-stats.today-panel .metric{padding:16px 14px}.overview-statistics .metric-title>.icon{display:none}}
@media(max-width:650px){.overview-statistics .workspace-stats.overview-metric-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-statistics .workspace-stats.today-panel .metric{padding:15px 16px}.overview-statistics .workspace-stats.today-panel .metric strong{font-size:27px}.overview-statistics .workspace-stats.overview-metric-stats .metric:last-child{grid-column:1 / -1}}

.op-dialog.all-tasks-dialog{width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 56px);overflow:hidden}.op-dialog.all-tasks-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.all-tasks-dialog>header h2{flex:1}.all-tasks-dialog>form{overflow-y:auto;min-height:0;max-height:calc(100dvh - 150px)}.all-tasks-dialog .op-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.all-tasks-dialog .op-card{min-width:0;margin:0}.all-tasks-dialog .op-card small{display:block;line-height:1.7;color:#637891}.all-tasks-dialog .v2-toolbar{margin:0}.all-tasks-dialog .v2-toolbar label{flex-direction:row;align-items:center}
@media(max-width:650px){.op-dialog.all-tasks-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.all-tasks-dialog>header{padding:16px;gap:10px}.all-tasks-dialog>header h2{font-size:18px}.all-tasks-dialog>header .btn{padding:8px 10px}.all-tasks-dialog>form{padding:16px;max-height:calc(100dvh - 100px)}.all-tasks-dialog .op-cards{grid-template-columns:minmax(0,1fr)}}
.all-tasks-dialog .op-card{padding:20px;display:flex;flex-direction:column;gap:12px}.all-tasks-dialog .op-card h2{font-size:17px;line-height:1.5;overflow-wrap:anywhere}.all-tasks-dialog .op-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.all-tasks-dialog .op-card .btn{margin-top:auto}.all-tasks-dialog .v2-toolbar label{white-space:nowrap;gap:12px}.all-tasks-dialog .v2-toolbar select{width:140px;flex:none}

/* Progress stays in one line; only the boss's pending work gets a red count. */
.project-progress-strip{position:relative;display:grid;grid-template-columns:1fr .8fr 1.3fr .9fr;gap:12px;margin:0 0 18px;min-width:0}
.project-progress-card{min-width:0;min-height:84px;padding:13px 16px;border:1px solid #e2eaf5;border-radius:12px;background:#f5f8fd;display:flex;flex-direction:column;justify-content:center;gap:8px}
.project-progress-label{font-size:12px;line-height:1.5;color:#607998}
.project-progress-value{display:flex;align-items:baseline;gap:10px;min-width:0;line-height:1.3}
.project-progress-value>strong{font-size:22px;font-weight:600;color:#2e659f}.project-progress-value>small{font-size:12px;color:#607998;white-space:nowrap}
.progress-completed{background:#eff6ff;border-color:#dfeafd}.progress-remaining{background:#f0f8f5;border-color:#dceee5}.progress-remaining strong{color:#277b65}
.project-progress-current{font-size:15px;font-weight:600;line-height:1.8;color:#3c5877;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.project-progress-pending{position:relative;padding:0;display:block;background:#fff5f3;border-color:#f5dfda}
.project-progress-pending>summary{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:84px;padding:13px 16px;cursor:pointer;list-style:none;box-sizing:border-box}
.project-progress-pending>summary::-webkit-details-marker{display:none}.project-progress-pending>summary:focus-visible{outline:2px solid #1680ed;outline-offset:2px;border-radius:12px}
.project-progress-pending .project-progress-label{color:#a24742}.project-progress-pending .project-progress-value{align-items:center;justify-content:space-between;min-height:28px}
.project-progress-pending>summary .icon{width:14px;height:14px;color:#a96a64}
.project-todo-count{display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:1px 7px;background:#fff0ef;border-radius:12px;color:#c93e3e;font-size:12px;line-height:20px}.project-todo-count i{width:6px;height:6px;border-radius:50%;background:#e34848;flex:none}.project-todo-count b{font-weight:700}.project-no-todos{margin-left:auto;color:#8190a3;font-size:12px;white-space:nowrap}.project-todo-popover{position:absolute;right:0;top:calc(100% + 5px);z-index:35;width:min(400px,calc(100vw - 48px));max-height:min(45dvh,360px);overflow:auto;padding:12px;background:#fff;border:1px solid #e1e8f1;border-radius:12px;box-shadow:0 12px 36px #213d6024}.project-todo-popover-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 8px 10px;font-size:13px;color:#2d4b6c}.project-todo-popover-heading small{font-size:11px;color:#7c8ea5}.project-todo-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin-top:4px;padding:10px;border:0;border-radius:8px;background:#f6f9fd;text-align:left}.project-todo-row:hover{background:#edf4fc}.project-todo-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.project-todo-row strong{font-size:13px;font-weight:600;color:#2d4b6c}.project-todo-row small{display:block;margin-top:4px;color:#8c5e35;font-size:12px}.project-todo-row>.icon{color:#8399b2}.project-progress-strip:has(.project-progress-pending[open]){z-index:30}
@media(max-width:650px){.project-progress-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.project-progress-card{min-height:78px;padding:11px 13px}.project-progress-pending{padding:0}.project-progress-pending>summary{min-height:78px;padding:11px 13px}.project-progress-current{font-size:14px}.project-todo-popover{width:calc(100vw - 56px)}}

.project-flow-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 24px 16px}.project-flow-controls p{margin:0;font-size:12px;line-height:1.7;color:#627c99;max-width:650px}.project-flow-controls .btn{flex-shrink:0;min-height:44px}.execution-node.flow-node-editable{cursor:grab;outline:1px dashed #458de2;outline-offset:3px}.execution-node.flow-node-editable:active{cursor:grabbing}.execution-node.flow-node-locked{opacity:.7}.execution-node.flow-drag-source{opacity:.45}.execution-node.flow-drop-target{outline:3px solid #1479e4;outline-offset:3px;background:#eaf4ff!important}.project-flow-dialog{width:min(720px,calc(100vw - 32px))}.project-flow-dialog [hidden]{display:none!important}.flow-dependency-options{margin:0;padding:14px;border:1px solid #dce6f2;border-radius:10px;min-width:0;max-height:235px;overflow:auto}.flow-dependency-options legend{font-size:14px;font-weight:600;padding:0 6px}.flow-dependency-options>small{display:block;font-size:12px;color:#647c98;margin-bottom:8px}.flow-dependency-options>label{display:flex;flex-direction:row;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0}.flow-dependency-options input[type=checkbox]{min-height:18px;width:18px;height:18px;flex:none;margin:3px 0 0;padding:0}.flow-dependency-options label small{display:block;font-weight:400;color:#708399;font-size:11px}.project-flow-preview{padding:14px 16px;border-radius:10px;background:#f0f6ff;font-size:13px;line-height:1.7;color:#365b82;overflow-wrap:anywhere}.project-flow-preview article{margin-top:10px}.project-flow-preview p{font-size:12px;margin:4px 0}.quiet-flow-note{color:#647b95;font-size:12px!important}.project-flow-dialog form{gap:14px}.project-flow-dialog .form-error:empty{display:none}
@media(max-width:650px){.project-flow-controls{align-items:flex-start;gap:10px;margin-inline:16px}.project-flow-controls p{font-size:11px}.project-flow-controls .btn{padding:9px 11px}.project-flow-dialog{width:calc(100vw - 20px)}}
/* Compact, immutable project snapshots in each execution briefing. */
.brief-project-list { display: grid; gap: 16px; }
.brief-project-card { min-width: 0; padding: 20px; border: 1px solid var(--line, #dde6f1); border-radius: 14px; }
.brief-project-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brief-project-card h3 { margin: 0 0 4px; font-size: 17px; }
.brief-project-card small { color: #607798; }
.brief-project-completion { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.brief-project-completion strong { font-size: 23px; color: #0672df; }
.brief-project-completion progress { flex: 1; min-width: 80px; max-width: 240px; height: 8px; accent-color: #0672df; border: 0; border-radius: 8px; overflow: hidden; background: #e8eff8; }
.brief-project-completion progress::-webkit-progress-bar { background: #e8eff8; }
.brief-project-completion progress::-webkit-progress-value { background: #0672df; border-radius: 8px; }
.brief-project-completion span { font-size: 13px; color: #607798; }
.brief-project-handoff { display: flex; gap: 14px; font-size: 14px; margin-bottom: 14px; }
.brief-project-handoff > span, .brief-project-label { color: #607798; font-size: 13px; }
.brief-project-flow > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; }
.brief-project-flow small { font-size: 12px; }
.brief-project-next { display: block; margin-top: 10px; }
.brief-project-problems { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #f5f8fc; }
.brief-project-problems.has-problems { background: #fff6ef; }
.brief-project-problems b { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 4px; margin-left: 4px; border-radius: 10px; color: white; background: #d34845; }
.brief-project-problems > div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.brief-project-problems p { margin: 4px 0; line-height: 1.6; }
.brief-project-problems .text-btn, .brief-project-card .btn { min-height: 44px; }
.brief-project-count { display: block; font-size: 13px; color: #0672df; margin-bottom: 8px; }
.brief-project-card :is(strong, small, p, span) { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .brief-project-card { padding: 14px; }
  .brief-project-completion span { flex-basis: 100%; }
  .brief-project-handoff { flex-direction: column; gap: 4px; }
  .brief-project-flow > div { flex-direction: column; }
  .brief-project-problems > div { grid-template-columns: minmax(0, 1fr) auto; }
  .brief-project-problems > div > strong { grid-column: 1 / -1; }
}

.project-progress-pending .project-todo-count{min-height:26px;padding:0 9px;font-size:18px}.project-progress-pending .project-todo-count i{width:7px;height:7px}.project-progress-card .project-no-todos{margin:0;font-size:14px;font-weight:500;line-height:1.8}
.progress-holder{gap:3px;padding-top:10px;padding-bottom:10px}.project-progress-next{display:block;color:#607998;font-size:12px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-original{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}

.project-progress-pending.progress-clear{background:#f5f8fd;border-color:#e2eaf5}
.project-progress-pending.progress-clear :is(.project-progress-label,.icon){color:#607998}
.contextual-governance{min-width:0;margin-bottom:20px}
.contextual-governance .section-head{flex-wrap:wrap}

/* Project colors identify the project. Text badges carry the status. */
.project-card[data-color="rose"] { --project-accent:#9b2850; --project-tint:#fbe8ef; --project-icon:#f6d4e2; }
.project-card[data-color="violet"] { --project-accent:#65389f; --project-tint:#efe7fb; --project-icon:#e6d5f8; }
.project-card[data-color="teal"] { --project-accent:#156d72; --project-tint:#def4f4; --project-icon:#c7eceb; }
.project-card[data-color="indigo"] { --project-accent:#474eaa; --project-tint:#ebedff; --project-icon:#dbe0fc; }
.project-card[data-color="amber"] { --project-accent:#875015; --project-tint:#fbefdb; --project-icon:#f7e2bd; }
.project-card[data-color="green"] { --project-accent:#216a44; --project-tint:#e6f4e8; --project-icon:#d2ebd8; }
.project-card[data-color="blue"] { --project-accent:#2458a5; --project-tint:#e5efff; --project-icon:#d3e4ff; }

.project-card[data-color] {
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
  background:#fff;
  color:#233c58;
}
.project-card[data-color]:hover { border-color:var(--project-accent); }
.project-card[data-color]:focus-visible { outline:2px solid var(--project-accent); outline-offset:3px; }
.project-card-heading {
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  width:100%;
  padding:17px 20px;
  background:var(--project-tint);
  color:var(--project-accent);
}
.project-card-heading .project-symbol { width:36px; height:36px; background:var(--project-icon); color:inherit; }
.project-card-heading .badge[class*="status-"] {
  --state-ink:var(--project-accent);
  --state-bg:color-mix(in srgb, var(--project-icon) 38%, white);
  --state-line:color-mix(in srgb, var(--project-accent) 30%, var(--project-tint));
  --state-dot:var(--project-accent);
  justify-self:end;
}
.project-card-name { font-size:16px; font-weight:700; line-height:1.45; overflow-wrap:anywhere; }
.project-card-body { display:flex; flex:1; flex-direction:column; width:100%; padding:18px 20px 16px; }
.project-card-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  min-height:3.4em;
  margin-bottom:17px;
  color:#52647b;
  font-size:13px;
  line-height:1.7;
}
.project-card-body :is(.progress-label,.card-next,.card-next > span,.project-card-deadline) { color:#53657d; font-size:12px; }
.project-card-body .progress-label b { color:var(--project-accent); font-weight:650; }
.project-card-body .progress-track { height:5px; background:var(--project-tint); margin-bottom:14px; }
.project-card-body .progress-track i { background:var(--project-accent); }
.project-card-body .card-next strong { color:#233c58; }
.project-card-body .card-next .icon { flex:none; color:var(--project-accent); }
.project-card-body .card-bottom { padding-top:14px; margin-top:auto; gap:10px; flex-wrap:wrap; }
.project-card-people { display:flex; align-items:center; gap:8px; min-width:0; }
.project-card-owner { font-size:12px; color:#304962; overflow-wrap:anywhere; }
@media (max-width:650px) {
  .project-card-heading { padding:14px 15px; gap:9px; }
  .project-card-body { padding:15px; }
}
@media (prefers-reduced-motion:reduce) {
  .project-card[data-color]:hover { transform:none; }
}

/* Sample acceptance path and phone-friendly project tasks */
.demo-environment {
  padding: 3px 7px;
  border: 1px solid #c3dbf5;
  border-radius: 6px;
  background: #edf6ff;
  color: #164b80;
  font-size: 11px;
  white-space: nowrap;
}

.demo-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid #c3dbf5;
  border-radius: 14px;
  background: #edf6ff;
}

.demo-guide p { margin: 4px 0 0; color: #345777; }
.demo-guide .demo-guide-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.demo-guide .btn { min-height: 44px; }
.demo-guide .btn.primary { background: #0066cc; border-color: #0066cc; }
.task-card-label { display: none; }

@media (max-width: 700px) {
  .demo-guide { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .demo-guide .btn { white-space: normal; }
  .topbar .breadcrumb b { line-height: 1.3; overflow-wrap: anywhere; }
  .topbar .demo-environment { padding-inline: 4px; font-size: 10px; }

  .project-task-list .task-table,
  .project-task-list .task-table tbody { display: block; width: 100%; min-width: 0; }
  .project-task-list .task-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .project-task-list .task-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #e2e6ea;
    box-shadow: inset 3px 0 var(--state-dot, #dce7f3);
  }
  .project-task-list .task-table td {
    display: block;
    border: 0;
    min-width: 0;
    padding: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .project-task-list .task-table td:first-child {
    background: transparent;
    box-shadow: none;
    font-size: 15px;
  }
  .project-task-list .task-table td:nth-child(-n + 2),
  .project-task-list .task-table td:last-child { grid-column: 1 / -1; }
  .project-task-list .task-table td small { font-size: 12px; color: #526783; }
  .project-task-list .task-card-label {
    display: block;
    margin-bottom: 3px;
    color: #526783;
    font-size: 12px;
  }
  .project-task-list .task-table td .btn { min-height: 44px; width: 100%; font-size: 13px; }
}

.employee-mail-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  color: #1759a2;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
}
.employee-mail-entry:hover { background: #eef5ff; }
.employee-mail-entry .icon { width: 17px; height: 17px; }
.employee-mail-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 2fr);
  align-items: start;
  gap: 18px;
}
.employee-mail-list { overflow: hidden; }
.employee-mail-list h2 { padding: 16px; font-size: 16px; }
.employee-mail-task {
  display: grid;
  gap: 5px;
  min-height: 44px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.employee-mail-task .badge { justify-self: start; }
.employee-mail-task small, .employee-mail-thread header p,
.employee-thread-header p, .employee-mail-message time { color: #546b86; }
.employee-mail-task:hover, .employee-mail-task[aria-current="page"] {
  background: #eef5ff;
  color: #1759a2;
}
.employee-mail-thread { min-width: 0; }
.employee-thread-header, .employee-mail-message header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.employee-thread-header, .employee-mail-footer { padding: 16px 20px; }
.employee-thread-header h2 { overflow-wrap: anywhere; }
.employee-thread-header p { margin-top: 6px; }
.employee-mail-messages { display: grid; gap: 12px; padding: 0 20px 16px; }
.employee-mail-message {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  overflow-wrap: anywhere;
}
.employee-mail-message.incoming { background: #f5f8fe; }
.employee-mail-message h3 { margin: 0 0 4px; font-size: 15px; }
.employee-mail-message time { display: block; margin-top: 4px; font-size: 12px; }
.employee-mail-message .employee-mail-body {
  margin: 10px 0 0;
  color: var(--ink);
  white-space: pre-wrap;
}
.employee-mail-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.employee-mail-footer .btn { min-height: 44px; }
.employee-mail-empty { padding: 24px; }
.employee-mail-empty .btn { margin-top: 12px; }
@media (max-width: 700px) {
  .employee-mail-layout { grid-template-columns: minmax(0, 1fr); }
  .employee-mail-list { max-height: 235px; overflow: auto; }
}
@media (max-width: 480px) {
  .topbar .workspace-home-link { display: none; }
  .employee-mail-entry { padding: 0 7px; gap: 4px; }
}

.workspace-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #eef5ff;
  color: #1759a2;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.workspace-back .icon { width: 16px; height: 16px; }
.workspace-back:hover { background: #e0edff; }
.workspace-back:focus-visible {
  outline: 2px solid #1759a2;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .breadcrumb.has-workspace-back { flex: 1; min-width: 0; }
  .breadcrumb.has-workspace-back b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .workspace-back { padding-inline: 7px; gap: 3px; }
}
.project-wizard .wizard-head { justify-content: flex-start; }
@media (max-width: 480px) {
  .topbar .demo-environment { display: none; }
}
@media (max-width: 420px) {
  .topbar .employee-mail-entry { min-width: 44px; justify-content: center; }
  .topbar .employee-mail-entry > span { display: none; }
}

.btn.project-delete-button {
  border-color: #efb5b5;
  color: #aa2929;
}
.btn.project-delete-button:hover { background: #fdf0f0; }

.station-panel {padding:clamp(16px,3vw,30px);margin-block:16px}
.station-panel h3 {margin:18px 0 8px}
.station-columns {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}
.station-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f0}
.station-row small {display:block;color:#536780;margin-top:4px}
.station-archive {margin-block:16px}
.station-archive>summary {cursor:pointer;padding:12px}
.station-panel .btn {white-space:normal}
.notification-dot[hidden] {display:none}
.nav-item[data-view="overview"] .nav-count {background:#b42330;color:white}

#station-project-create {
  width: min(1040px, calc(100vw - 40px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line, #dbe5f2);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
#station-project-create[open] { display: flex; flex-direction: column; }
#station-project-create::backdrop { background: rgb(18 38 65 / 45%); }
#station-project-create > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #e4ebf5; }
#station-project-create > iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
@media (max-width: 640px) {
  #station-project-create { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 14px; }
}
.station-project-detail { display:block; }
.station-table-scroll { overflow:auto; }
.station-task-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.station-task-table th { background:#f6f9fd; color:#7389a5; font-weight:500; white-space:nowrap; }
.station-task-table :is(th,td) { padding:16px 20px; border-bottom:1px solid #e6edf6; }
.station-task-table td:first-child { min-width:230px; }
.station-task-table td:not(:first-child) { min-width:90px; }
.station-task-note { display:block; color:#7189a8; font-size:12px; margin-top:6px; max-width:400px; }
.station-channel { color:#2673c7; white-space:nowrap; font-size:12px; }
.station-pending-number { color:#d63e48; }
.station-member-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; padding:0 24px 24px; }
.station-member { display:flex; gap:12px; padding:18px; background:#f6f9fe; border:1px solid #e0e9f5; border-radius:12px; }
.station-member small { display:block; color:#7085a0; }
.station-member p { font-size:12px; color:#607896; }
.station-file-list { display:flex; flex-wrap:wrap; gap:12px; padding:0 24px 24px; }
.station-analysis { margin:0 24px 24px; padding:16px; border:1px solid #dce8f5; border-radius:10px; }
.station-analysis p { white-space:pre-wrap; }
.station-settings { padding:24px; }
.station-settings label,.station-action label { display:block; margin-bottom:14px; }
.station-settings :is(input,textarea,select),.station-action :is(input,textarea,select) { width:100%; padding:10px 12px; display:block; margin-top:6px; border:1px solid #d7e3f1; border-radius:8px; background:white; }
.station-settings hr { margin:24px 0; border:0; border-top:1px solid #e1e9f4; }
.station-task-content { padding:8px 0; }
.station-task-dialog { max-width:650px; }
.station-action { margin-top:12px; padding:12px; border:1px solid #dce7f4; border-radius:10px; }
.station-action summary { cursor:pointer; color:#2768b2; font-weight:600; }
.station-action form { padding-top:14px; }

/* Meeting review follows source material, analysis, then execution. */
.meeting-top-panels { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; margin-bottom:24px; align-items:stretch; }
.meeting-top-panels > .panel { margin:0; padding:22px 24px; min-width:0; border-radius:16px; }
.meeting-source-head { border-color:#ccdef6; background:#f8fbff; }
.meeting-followup-head { border-color:#c8e5dc; background:#f7fcfa; }
.meeting-top-panels header { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.meeting-top-panels header h2 { font-size:18px; margin:0; }
.meeting-top-panels header p { margin:4px 0 0; color:#7489a2; font-size:12px; }
.meeting-head-symbol { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#246bbb; background:#e5efff; flex-shrink:0; }
.meeting-followup-head .meeting-head-symbol { color:#23846b; background:#ddf2e9; }
.meeting-source-excerpt { color:#5e7592; font-size:13px; line-height:1.9; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; }
.meeting-original-text summary { cursor:pointer; color:#2b6dbb; font-size:13px; padding:10px 0; min-height:44px; }
.meeting-original-text form { padding-top:10px; }
.meeting-original-text label,.meeting-followup-head label { display:block; color:#637c99; font-size:12px; }
.meeting-original-text textarea,.meeting-followup-head select { width:100%; border:1px solid #d2e0ef; border-radius:9px; padding:10px; margin:7px 0 12px; background:white; font:inherit; }
.meeting-original-text textarea { resize:vertical; font-size:13px; line-height:1.8; }
.meeting-source-head .project-intake-sources { border:0; border-top:1px solid #dce7f4; box-shadow:none; background:transparent; padding:14px 0 0; margin:10px 0 0; }
.meeting-source-head .project-intake-sources .section-head { padding:0; margin:0 0 10px; }
.meeting-source-head .project-intake-sources h2 { font-size:13px; }
.meeting-source-head .project-intake-sources .section-head p { display:none; }
.meeting-source-head .source-material-row { flex-wrap:wrap; padding:10px 0; }
.meeting-linked-project > small { color:#6d8b80; font-size:12px; display:block; margin-bottom:5px; }
.meeting-linked-project > strong { display:block; font-size:16px; color:#315f50; }
.meeting-linked-project .heading-actions { margin-top:12px; }
.meeting-followup-head .text-btn { font-size:12px; }
.meeting-followup-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding-top:16px; margin-top:16px; border-top:1px solid #dcece5; }
.meeting-followup-links button { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; border:1px solid #d5e8e0; border-radius:8px; padding:9px 11px; background:white; color:#347560; font-size:12px; }
.meeting-main-analysis { margin:0 0 30px; padding:26px 28px; border-color:#dce6f3; }
.meeting-main-analysis .section-head { padding:0; margin-bottom:16px; }
.meeting-main-analysis .section-head h2 { font-size:21px; }
.meeting-main-analysis .section-head p { color:#7a8fa7; font-size:12px; margin-top:6px; }
.meeting-analysis-summary { padding:18px 20px; border-radius:10px; background:#eff5ff; color:#355c89; line-height:1.95; font-size:14px; white-space:pre-wrap; margin:0 0 22px; }
.meeting-analysis-columns { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.meeting-analysis-part + .meeting-analysis-part { border-left:1px solid #e3ebf5; padding-left:28px; }
.meeting-analysis-part h3 { margin:0 0 10px; font-size:14px; }
.meeting-analysis-part ul { margin:0; padding-left:18px; font-size:13px; color:#637996; line-height:1.9; }
.meeting-analysis-part li + li { margin-top:7px; }
.meeting-section-title { margin-bottom:16px; }
.meeting-section-title h2 { font-size:19px; margin:0 0 5px; }
.meeting-section-title p { color:#7b8fa7; font-size:12px; margin:0; }
.meeting-decision-area,.meeting-task-area { scroll-margin-top:20px; }
.meeting-review .op-meeting-panel { margin-bottom:18px; box-shadow:none; }
.meeting-task-area > .panel { overflow:hidden; }
.meeting-task-area > .panel > .section-head { background:#f5f8fc; border-bottom:1px solid #e3ebf4; padding:20px 24px; }
.meeting-task-area h2 { font-size:17px; }
.meeting-task-group { padding:20px 24px; }
.meeting-task-group h3 { font-size:14px; margin:0 0 12px; }
.meeting-task-group h3 span { margin-left:6px; color:#8b9db4; font-size:12px; font-weight:400; }
.meeting-task-group + .meeting-task-group { border-top:1px solid #e4ebf4; }
.meeting-task-group > p { font-size:12px; }
.meeting-action-row,.meeting-task-group .op-summary-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid #e6edf5; }
.meeting-action-row > label { display:flex; flex:1; align-items:flex-start; gap:10px; margin:0; min-width:0; font-size:13px; line-height:1.8; color:#385775; }
.meeting-action-row input { margin-top:5px; accent-color:#1264e9; flex-shrink:0; }
.meeting-action-row small { display:block; font-size:12px; color:#8a9bb0; margin-top:4px; }
.meeting-action-row .op-buttons { flex-shrink:0; margin:0; }
.meeting-task-group .op-summary-row > span { min-width:0; flex:1; }
.meeting-task-group .op-summary-row .op-buttons { flex-shrink:0; margin:0; }
.meeting-action-footer { padding-top:18px; display:flex; justify-content:flex-end; }
@media(max-width:850px) {
  .meeting-top-panels { grid-template-columns:1fr; gap:14px; }
  .meeting-main-analysis { padding:20px; }
}
@media(max-width:600px) {
  .meeting-analysis-columns { grid-template-columns:1fr; gap:18px; }
  .meeting-analysis-part + .meeting-analysis-part { border-left:0; border-top:1px solid #e3ebf5; padding:18px 0 0; }
  .meeting-action-row,.meeting-task-group .op-summary-row { flex-direction:column; gap:10px; }
  .meeting-action-row .op-buttons,.meeting-task-group .op-summary-row .op-buttons { align-self:flex-end; }
  .meeting-top-panels > .panel,.meeting-task-group { padding:18px; }
}

.meeting-create-project { margin-top:18px; }
.meeting-create-project > .btn { width:100%; justify-content:center; min-height:46px; }
.meeting-create-project > small { display:block; text-align:center; margin-top:8px; font-size:11px; color:#7a958a; line-height:1.7; }
.meeting-action-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 18px; background:#edf5ff; border:1px solid #d4e4fa; border-radius:10px; margin-bottom:12px; }
.meeting-action-heading h3 { margin:0 0 5px; }
.meeting-action-heading p { font-size:12px; margin:0; }
.meeting-action-heading > button { flex-shrink:0; }
.meeting-create-hint { font-size:12px; color:#7890ac; margin:10px 0; }
@media(max-width:640px) { .meeting-action-heading { align-items:stretch; flex-direction:column; gap:12px; } .meeting-action-heading > button { justify-content:center; } }

.assistant-composer,.ai-bottom { position:relative; }
.advisor-skills { position:relative; margin-bottom:12px; text-align:left; }
.advisor-skill-heading { display:flex; align-items:center; gap:12px; margin-bottom:8px; min-height:26px; }
.advisor-skill-heading > span { display:flex; align-items:center; gap:6px; color:#597395; font-size:12px; font-weight:600; flex-shrink:0; }
.advisor-skill-heading > span .icon { width:15px; height:15px; }
.advisor-skill-heading > small { color:#8a9bb1; font-size:11px; }
.advisor-skill-list { display:flex; flex-wrap:wrap; gap:7px; }
.advisor-skill { display:flex; align-items:center; gap:7px; min-height:40px; padding:8px 11px; border:1px solid #dce6f4; background:#f7faff; color:#456d9c; border-radius:10px; font-size:12px; }
.advisor-skill > .icon:first-child { width:16px; height:16px; }
.advisor-skill > .icon:last-child { width:11px; height:11px; color:#8c9eb5; transform:rotate(90deg); }
.advisor-skill.tone-green { color:#347c68; background:#f1faf6; border-color:#d5eae1; }
.advisor-skill.tone-amber { color:#996b2c; background:#fffbf3; border-color:#eee1c8; }
.advisor-skill:hover { border-color:currentColor; }
.advisor-skill[data-selected="true"] { box-shadow:0 0 0 1px currentColor inset; background:#eaf3ff; }
.advisor-skill.tone-green[data-selected="true"] { background:#e4f5ed; }
.advisor-skill.tone-amber[data-selected="true"] { background:#fff0d8; }
.advisor-skill[aria-expanded="true"] > .icon:last-child { transform:rotate(-90deg); }
.advisor-reference { display:flex; align-items:center; gap:8px; padding:4px 8px; border:1px solid #d6e5f8; background:#edf5ff; color:#326caf; font-size:11px; border-radius:6px; min-height:30px; }
.advisor-reference .icon { width:12px; height:12px; }
.advisor-skill-details { position:static; padding:14px; border:1px solid #dce6f4; background:#f8fbff; border-radius:12px; }
.advisor-skill-details > header { display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.advisor-skill-details > header > div { flex:1; min-width:0; }
.advisor-skill-details strong { display:block; font-size:15px; color:#2b4e79; }
.advisor-skill-details small { display:block; font-size:12px; color:#8193aa; margin-top:4px; line-height:1.6; }
.advisor-detail-symbol { display:grid; place-items:center; width:40px; height:40px; background:#edf5ff; color:#3d78be; border-radius:12px; flex-shrink:0; }
.advisor-skill-details.tone-green .advisor-detail-symbol { background:#e9f7f0; color:#32846a; }
.advisor-skill-details.tone-amber .advisor-detail-symbol { background:#fff2dc; color:#a97d3b; }
.advisor-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.advisor-features button { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:48px; padding:11px 14px; border:1px solid #e0e9f5; background:#f8fbff; color:#526f94; font-size:13px; border-radius:9px; text-align:left; }
.advisor-features button:hover { border-color:#8cb4e8; color:#2166b9; background:#eff6ff; }
.advisor-features .icon { width:15px; height:15px; flex-shrink:0; }
.advisor-skill-details > p { margin:12px 0 0; font-size:11px; color:#8b9bb1; }
.chat-form textarea { flex:1; min-width:0; border:0; border-radius:8px; box-shadow:none; background:transparent; resize:vertical; max-height:180px; min-height:64px; line-height:1.7; font-size:14px; padding:8px 10px; color:#304d70; font-family:inherit; }
.assistant-composer .chat-form textarea:focus-visible { outline:0; }
.assistant-composer .chat-form:focus-within { border-color:#7daae5; box-shadow:0 0 0 3px #1264e90b; }
.ai-bottom .chat-form { display:flex; align-items:flex-end; }
.ai-bottom .advisor-skill-list { max-height:96px; overflow:auto; }
.ai-bottom .advisor-skill { font-size:11px; min-height:38px; padding:7px 9px; }
@media(max-width:600px) {
  .advisor-skill-list { max-height:96px; overflow:auto; gap:6px; }
  .advisor-skill { min-height:44px; flex:0 0 auto; justify-content:center; font-size:11px; padding:8px; }
  .advisor-skill-heading { flex-wrap:wrap; gap:6px; }
  .advisor-skill-heading > small { display:none; }
  .advisor-skill-details { padding:14px; max-height:45dvh; }
  .advisor-skill-details small { font-size:11px; }
  .advisor-features button { font-size:12px; padding:10px; }
  .chat-form textarea { font-size:16px; min-height:60px; }
}
.delegation-chain-dialog { width:min(1000px,calc(100vw - 40px)); max-width:none; padding:0; max-height:calc(100dvh - 48px); overflow:auto; }
.delegation-chain-dialog > header { position:sticky; top:0; z-index:2; background:#fff; padding:21px 24px; border-bottom:1px solid #e1eaf5; margin:0; }
.delegation-chain-dialog > header h2 { font-size:19px; margin:0; }
.delegation-chain-dialog > header p { font-size:12px; color:#8296af; margin:7px 0 0; }
.delegation-people { display:flex; gap:10px; flex-wrap:wrap; padding:18px 24px 6px; }
.delegation-people > span { display:flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #dce8f6; background:#f7faff; border-radius:8px; font-size:12px; }
.delegation-people b { color:#426991; font-weight:600; }
.delegation-people small { font-size:11px; color:#8aa0ba; }
.delegation-caption { font-size:12px; color:#889db6; padding:0 24px; margin:12px 0 20px; line-height:1.8; }
.delegation-tree-scroll { overflow:auto; padding:22px 30px 30px; background-color:#f6f9fd; background-image:radial-gradient(#c9d9eb .7px,transparent .7px); background-size:18px 18px; border-top:1px solid #e3ebf6; }
.delegation-tree,.delegation-tree ul { list-style:none; padding:0; margin:0; }
.delegation-tree { min-width:620px; }
.delegation-tree li { position:relative; }
.delegation-tree li > ul { margin:0 0 0 28px; padding:22px 0 0 34px; border-left:2px solid #b7cce6; }
.delegation-tree li > ul > li { padding-bottom:20px; }
.delegation-tree li > ul > li:last-child { padding-bottom:0; }
.delegation-tree li > ul > li::before { content:""; position:absolute; top:30px; left:-35px; width:35px; height:2px; background:#b7cce6; }
.delegation-node { width:min(560px,100%); background:#fff; border:1px solid #cedff4; border-radius:13px; overflow:hidden; box-shadow:0 3px 12px #2b52760a; }
.delegation-node > header { display:flex; align-items:center; gap:10px; padding:14px 17px; background:#eff5ff; }
.delegation-node[data-lead="true"] > header { background:#e9f7f1; }
.delegation-avatar { display:grid; place-items:center; width:35px; height:35px; border-radius:50%; background:#dceafb; color:#4a7cb8; flex-shrink:0; }
.delegation-node[data-lead="true"] .delegation-avatar { background:#d3ecdf; color:#3c8f70; }
.delegation-node header strong { display:block; font-size:14px; color:#2b4c70; }
.delegation-node header small { font-size:11px; color:#8099b4; display:block; margin-top:3px; }
.delegation-label { margin-left:auto; font-size:11px; color:#7894b1; white-space:nowrap; }
.delegation-node h3 { font-size:14px; margin:16px 17px 8px; color:#385978; }
.delegation-node > p { font-size:12px; line-height:1.9; color:#7e95ae; margin:0 17px 14px; }
.delegation-node footer { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 17px 14px; font-size:11px; color:#91a4ba; }
.delegation-handoff { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 17px; border-top:1px solid #edf2f8; font-size:11px; color:#899eb6; }
.delegation-handoff button { display:flex; align-items:center; gap:5px; min-height:44px; color:#4d85c8; }
.delegation-boss { background:#fff; border-color:#d9def4; }
.delegation-boss > header { background:#f2f0fb; }
@media(max-width:600px) { .delegation-chain-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 20px); } .delegation-chain-dialog > header { padding:17px; } .delegation-people { padding:14px 16px 4px; gap:7px; } .delegation-caption { padding:0 16px; } .delegation-tree-scroll { padding:18px; } }

.delegation-handoff button { border:0; background:transparent; border-radius:6px; padding:8px; cursor:pointer; }
.delegation-handoff button:hover { background:#edf5ff; }
.station-delivery-image { display:inline-flex; flex-direction:column; width:180px; margin:8px 10px 12px 0; border:1px solid #dce6f3; border-radius:10px; overflow:hidden; color:#5881b2; font-size:12px; }
.station-delivery-image img { width:100%; height:130px; object-fit:cover; background:#f3f7fc; }
.station-delivery-image span { padding:9px; overflow-wrap:anywhere; }

/* Shared task detail: compact facts and readable platform conversation. */
.task-detail-page { display:grid; gap:20px; }
.task-detail-page > .panel,.station-task-content > .panel { margin:0; }
.panel.task-detail-summary { padding:22px 24px; position:relative; box-shadow:none; }
.task-detail-status { position:absolute; right:20px; top:18px; }
.task-detail-facts { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:20px; padding-right:95px; }
.task-detail-facts > div { display:grid; gap:6px; min-width:0; }
.task-detail-facts span,.task-detail-criteria > span { color:#6c819d; font-size:13px; }
.task-detail-facts strong { color:#233b59; font-size:17px; overflow-wrap:anywhere; }
.task-detail-criteria { margin-top:20px; padding:14px 16px; border-radius:10px; background:#f3f7fc; }
.task-detail-criteria p { margin:5px 0 0; color:#354d6b; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-detail-description { margin-top:12px; font-size:14px; }
.task-detail-description summary,.task-operation-history > summary { cursor:pointer; color:#59769b; padding:10px 0; }
.task-detail-description p { white-space:pre-wrap; line-height:1.7; }
.task-detail-commands { display:flex; flex-wrap:wrap; gap:10px; }
.panel.task-conversation { padding:24px; }
.task-conversation > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid #e6edf6; }
.task-conversation > header h2 { font-size:19px; margin:0; }
.task-conversation > header p { margin:6px 0 0; font-size:13px; color:#72849c; }
.task-conversation > header > span { font-size:12px; color:#72849c; white-space:nowrap; }
.task-operation-history > .panel { margin-top:8px; }
.station-task-dialog.op-dialog { width:min(880px,calc(100vw - 32px)); max-width:880px; padding:0; max-height:90dvh; border-radius:18px; }
.station-task-dialog > header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid #e5edf6; background:white; }
.station-task-dialog > header h2 { margin:0; font-size:21px; }
.station-task-dialog > header p { margin:5px 0 0; color:#72849c; font-size:13px; }
.station-task-dialog > header .icon-btn { min-width:44px; min-height:44px; font-size:24px; }
.station-task-content { padding:20px; display:grid; gap:18px; background:#f5f8fc; }
.task-delivery-materials h3,.task-handling-panel h3 { font-size:17px; margin:0 0 16px; }
.task-handling-panel .station-action summary { cursor:pointer; padding:12px 0; color:#1264e9; }
@media(max-width:640px) {
 .panel.task-detail-summary,.panel.task-conversation { padding:18px 16px; }
 .task-detail-facts { grid-template-columns:1fr 1fr; gap:16px; padding-right:0; padding-top:28px; }
 .task-detail-facts > div:last-child { grid-column:1/-1; }
 .task-detail-facts strong { font-size:16px; }
 .task-conversation > header p { max-width:220px; }
 .station-task-content { padding:12px; }
 .station-task-dialog > header { padding:16px; }
 .station-task-dialog > header h2 { font-size:18px; }
}

/* Overview platform messages open in the center of the workbench. */
.drawer.platform-message-modal {
  top:50%; left:50%; right:auto; bottom:auto;
  transform:translate(-50%,-50%);
  width:min(920px,calc(100vw - 40px));
  max-width:none; max-height:88dvh; border-radius:18px;
  overflow:hidden; animation:none;
  box-shadow:0 24px 80px rgba(31,55,89,.2);
}
.platform-message-modal .drawer-body { min-height:0; background:#f5f8fc; }
.platform-message-modal .page-heading { margin-top:0; }
.platform-message-modal .task-detail-page { gap:16px; }
@media(max-width:640px) {
 .drawer.platform-message-modal { width:calc(100vw - 24px); max-height:92dvh; }
 .platform-message-modal .drawer-head,.platform-message-modal .drawer-body,.platform-message-modal .drawer-footer { padding:16px; }
}

.station-member-editable { align-items:flex-start; }
.station-member-editable > div { min-width:0; flex:1; }
.station-member-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 8px; }
.station-members-dialog form { margin:0; }
.station-members-dialog footer { display:flex; justify-content:flex-end; gap:10px; padding:18px 24px; background:white; border-top:1px solid #e5edf6; }
.station-members-dialog .station-task-content > label { display:grid; gap:8px; color:#354d6b; }
.station-member-picker { display:grid; gap:12px; }
.station-member-choice { background:white; border:1px solid #dce6f3; border-radius:12px; padding:16px; }
.station-member-checkbox { display:flex; gap:12px; align-items:center; min-height:44px; }
.station-member-checkbox input { width:18px; height:18px; flex:0 0 18px; }
.station-member-checkbox > span { display:grid; gap:5px; flex:1; }
.station-member-checkbox small { font-size:12px; color:#72849c; }
.station-member-duty { display:grid; gap:8px; margin-top:12px; font-size:13px; color:#59769b; }
.station-member-duty[hidden],.station-member-choice[hidden] { display:none; }

/* Task inspector: distinct business blocks with one scrolling content area. */
.station-task-dialog.task-block-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(980px,calc(100vw - 32px)); max-width:980px; height:min(900px,90dvh); overflow:hidden; }
.task-block-dialog > .station-task-content { min-height:0; overflow-y:auto; align-content:start; gap:16px; padding:20px 24px; }
.task-block-dialog > header p { margin:0 0 5px; }
.task-block-dialog > header h2 { line-height:1.5; }
.task-block-dialog .panel.task-info-block,.task-block-dialog .panel.task-status-overview { padding:20px; border:1px solid #e0e8f3; border-radius:14px; box-shadow:none; }
.task-block-dialog .task-info-block h3,.task-overview-heading h3 { display:flex; align-items:center; gap:9px; font-size:16px; line-height:1.5; margin:0 0 16px; color:#233b59; }
.task-block-dialog .task-info-block h3:before { content:""; width:9px; height:18px; border-radius:4px; background:var(--block-accent,#377edd); }
.task-block-teal { --block-accent:#289a85; }
.task-block-amber { --block-accent:#d79c3a; }
.task-block-purple { --block-accent:#8d70d0; }
.task-overview-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.task-overview-heading h3 { margin:0; }
.task-stage-track { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; list-style:none; padding:0; margin:20px 0 16px; }
.task-stage-track li { color:#7c8fa9; display:flex; align-items:center; gap:8px; font-size:12px; position:relative; }
.task-stage-track li .task-stage-number { display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:#edf2f8; }
.task-stage-track li.current { color:#1264e9; font-weight:600; }
.task-stage-track li.current .task-stage-number { background:#1264e9; color:white; }
.task-stage-track li.done { color:#25826e; }
.task-stage-track li.done .task-stage-number { background:#e5f4ed; }
.task-block-dialog .task-next-action { background:#edf4ff; color:#365d90; border-radius:8px; padding:10px 12px; font-size:13px; }
.task-block-facts { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; margin:0 0 18px; }
.task-block-facts dt { color:#7385a0; font-size:12px; margin-bottom:5px; }
.task-block-facts dd { margin:0; font-size:16px; font-weight:600; color:#233b59; overflow-wrap:anywhere; }
.task-requirement { background:#f5f8fc; border-radius:9px; padding:12px 14px; }
.task-requirement > span { display:block; color:#72849c; font-size:12px; margin-bottom:5px; }
.task-block-dialog .task-requirement p,.task-block-dialog .task-block-event p { white-space:pre-wrap; overflow-wrap:anywhere; color:#354d6b; }
.task-block-dialog .task-relation { font-size:12px; color:#72849c; margin-top:10px; }
.task-detail-block-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.task-detail-block-grid > .panel { margin:0; min-width:0; }
.task-block-event > div { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.task-block-event strong { font-size:13px; color:#354d6b; }
.task-block-event span { font-size:12px; color:#72849c; }
.task-block-dialog .task-block-empty { font-size:13px; color:#7c8da3; }
.task-file-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.task-file-grid .station-delivery-image { display:block; width:auto; margin:0; border:1px solid #dfe7f3; background:#f8faff; border-radius:10px; overflow:hidden; }
.task-file-grid .station-delivery-image img { display:block; width:100%; height:145px; object-fit:contain; }
.task-file-grid .station-delivery-image span { display:block; padding:10px; overflow-wrap:anywhere; font-size:12px; }
.task-file-link { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:6px 10px; padding:14px; border:1px solid #dfe7f3; border-radius:10px; text-decoration:none; }
.task-file-link > span { grid-row:span 2; color:#7c64b3; background:#f0ebfb; border-radius:6px; padding:8px; font-size:12px; }
.task-file-link strong { font-size:13px; overflow-wrap:anywhere; }
.task-file-link small { font-size:12px; color:#6c819d; }
.task-review-result { border-top:1px solid #e5edf6; margin-top:16px; padding-top:16px; }
.task-review-result h4 { margin:0 0 10px; font-size:14px; }
.task-all-communication { background:white; border:1px solid #e0e8f3; border-radius:14px; overflow:hidden; }
.task-all-communication > summary { cursor:pointer; padding:18px 20px; font-size:15px; font-weight:600; color:#354d6b; }
.task-all-communication > summary span { float:right; color:#72849c; font-weight:400; font-size:12px; }
.task-all-communication > .task-conversation { border:0; border-radius:0; box-shadow:none; margin:0; }
.task-all-communication .task-conversation > header { display:none; }
.task-handling-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:start; }
.task-handling-options .station-action { border:1px solid #dce6f4; border-radius:9px; background:#f8faff; padding:0 14px; }
.task-handling-options .station-action summary { min-height:44px; font-size:14px; font-weight:600; }
.task-handling-options .station-action[open] { background:white; }
.task-handling-options form { display:grid; gap:12px; padding:4px 0 14px; }
.task-dialog-footer { padding:14px 24px; display:flex; justify-content:flex-end; border-top:1px solid #e0e8f3; background:white; }
.task-subtask-list { display:grid; gap:10px; }
.task-subtask-list > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px; background:#f5f8fc; border-radius:9px; }
.task-subtask-list strong { flex:1; font-size:13px; }
.task-subtask-list > div > span:not(.badge) { font-size:12px; color:#72849c; }
@media(max-width:640px) {
 .station-task-dialog.task-block-dialog[open] { width:calc(100vw - 20px); height:92dvh; }
 .task-block-dialog > .station-task-content { padding:12px; gap:12px; }
 .task-block-dialog .panel.task-info-block,.task-block-dialog .panel.task-status-overview { padding:16px; }
 .task-detail-block-grid,.task-handling-options,.task-file-grid { grid-template-columns:1fr; }
 .task-stage-track { gap:4px; }
 .task-stage-track li { flex-direction:column; text-align:center; font-size:11px; gap:6px; }
 .task-block-facts { grid-template-columns:1fr 1fr; }
 .task-block-facts > div:last-child { grid-column:1/-1; }
 .task-dialog-footer { padding:12px 16px; }
}
.task-block-dialog > .station-task-content { grid-auto-rows:max-content; }


/* Task records use one continuous activity stream. */
.task-activity-stream { list-style:none; margin:22px 0 0; padding:0; }
.task-activity-item { position:relative; display:grid; grid-template-columns:14px minmax(0,1fr); gap:14px; padding:0 0 16px; }
.task-activity-item:not(:last-child):before { content:""; position:absolute; left:6px; top:18px; bottom:0; width:2px; background:#e1e9f4; }
.task-activity-marker { width:10px; height:10px; margin:21px 2px 0; border-radius:50%; background:#6099e7; box-shadow:0 0 0 4px #eef4fd; z-index:1; }
.task-activity-entry { min-width:0; padding:16px 18px; border:1px solid #e1e9f3; border-radius:10px; background:#fafcff; }
.task-activity-entry > header { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-bottom:10px; }
.task-activity-entry > header > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 12px; }
.task-activity-entry > header strong { font-size:14px; color:#233b59; }
.task-activity-person { color:#59769b; font-size:13px; }
.task-activity-entry time { font-size:12px; color:#72849c; }
.task-activity-body { color:#354d6b; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.task-activity-body p { margin:0; white-space:pre-wrap; }
.task-activity-body p + p { margin-top:6px; }
.task-activity-body small { display:block; margin-top:8px; font-size:12px; color:#72849c; }
.task-activity-body .op-buttons:empty { display:none; }
.task-activity-item:last-child { padding-bottom:0; }
.task-activity-empty { padding:16px; font-size:13px; color:#72849c; background:#f5f8fc; border-radius:9px; }
.task-all-communication .task-activity-stream { margin-top:0; }
@media(max-width:640px) {
 .task-activity-item { grid-template-columns:10px minmax(0,1fr); gap:10px; }
 .task-activity-item:not(:last-child):before { left:4px; }
 .task-activity-marker { width:8px; height:8px; margin-left:1px; margin-right:1px; }
 .task-activity-entry { padding:13px 12px; }
 .task-activity-entry > header { align-items:flex-start; }
 .task-activity-entry time { width:100%; font-size:11px; }
}

/* Delegation mind map: left-to-right hierarchy and curved connectors. */
.panel.delegation-map-panel { padding:0; overflow:hidden; margin-top:22px; }
.delegation-map-panel > .section-head { margin:0; padding:22px 24px; border-bottom:1px solid #e3ebf6; }
.delegation-map-panel > .section-head h2 { font-size:18px; }
.delegation-map-panel > .section-head p { font-size:12px; color:#72849c; margin-top:6px; }
.delegation-mind-scroll { overflow-x:auto; overflow-y:hidden; max-width:100%; background:#f7faff; background-image:radial-gradient(#d3deee .7px,transparent .7px); background-size:20px 20px; }
.delegation-mind-scroll:focus-visible { outline:2px solid #1264e9; outline-offset:-3px; }
.delegation-mind-canvas { position:relative; width:max-content; min-width:100%; padding:32px; box-sizing:border-box; }
.delegation-mind-edges { position:absolute; top:0; left:0; pointer-events:none; overflow:visible; }
.delegation-mind-edges path { fill:none; stroke:#8eb5e4; stroke-width:2; }
.delegation-mind-edges path[data-depth="2"] { stroke:#85bcaf; }
.delegation-mind-edges path[data-depth="3"] { stroke:#b5a4df; }
.delegation-mind-tree,.delegation-mind-tree ul { list-style:none; padding:0; margin:0; position:relative; }
.delegation-mind-tree li { display:flex; align-items:center; gap:72px; }
.delegation-mind-tree li > ul { display:flex; flex-direction:column; gap:24px; }
.delegation-mind-node { width:258px; flex:0 0 258px; border:1px solid #d7e5f8; border-radius:13px; background:white; overflow:hidden; position:relative; z-index:1; box-shadow:0 3px 12px #2b527609; --mind-accent:#3376c9; --mind-tint:#edf4ff; }
.delegation-mind-node[data-depth="2"] { --mind-accent:#278a75; --mind-tint:#eaf7f1; border-color:#cde6de; }
.delegation-mind-node[data-depth="3"] { --mind-accent:#7b60b4; --mind-tint:#f2edfb; border-color:#e0d8f0; }
.delegation-mind-node > header { display:flex; align-items:center; gap:9px; padding:14px; background:var(--mind-tint); }
.delegation-mind-avatar { flex:0 0 32px; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; background:white; color:var(--mind-accent); font-size:13px; }
.delegation-mind-avatar .icon { width:19px; height:19px; }
.delegation-mind-node header > div { min-width:0; }
.delegation-mind-node header strong { display:block; font-size:14px; color:#2b4667; }
.delegation-mind-node header small { display:block; margin-top:4px; font-size:11px; color:#72849c; }
.delegation-mind-label { margin-left:auto; color:var(--mind-accent); font-size:10px; white-space:nowrap; }
.delegation-mind-node h3 { margin:14px 14px 8px; font-size:14px; color:#2b4667; line-height:1.6; }
.delegation-mind-node > p { margin:0 14px 14px; color:#6b819d; font-size:12px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.delegation-mind-node > footer { padding:0 14px 12px; display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:11px; color:#72849c; }
.delegation-mind-handoff { border-top:1px solid #e8eef6; padding:4px 12px; display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:10px; color:#72849c; }
.delegation-mind-handoff button { min-height:44px; padding:6px 0 6px 8px; border:0; background:transparent; color:var(--mind-accent); font-size:11px; display:flex; align-items:center; gap:4px; cursor:pointer; }
.delegation-mind-handoff button:hover { text-decoration:underline; }
.delegation-mind-handoff button .icon { width:13px; height:13px; }
.delegation-mind-root { --mind-tint:#e9f1ff; --mind-accent:#1264e9; border-color:#a9c9f5; }
.delegation-mind-root > header { background:#1264e9; }
.delegation-mind-root header strong,.delegation-mind-root header small { color:white; }
.delegation-chain-dialog > .delegation-map-panel { margin:0; border:0; border-radius:0; }
@media(max-width:640px) {
 .delegation-map-panel > .section-head { padding:18px 16px; flex-wrap:wrap; }
 .delegation-mind-canvas { padding:24px; }
 .delegation-mind-tree li { gap:48px; }
 .delegation-mind-node { width:236px; flex-basis:236px; }
}


/* Advisor picker replaces the primary list with the selected secondary menu. */
.advisor-skill-list { display:flex; flex-wrap:wrap; }
.advisor-skill { min-height:44px; text-align:left; flex:0 0 auto; white-space:nowrap; }
.advisor-skill > .icon:last-child { margin-left:auto; transform:none; }
.advisor-skill-details > header { margin-bottom:12px; gap:10px; }
.advisor-back { display:flex; align-items:center; gap:5px; min-height:44px; padding:6px 8px; border:0; border-radius:8px; color:#597395; font-size:12px; background:white; cursor:pointer; flex-shrink:0; }
.advisor-back .icon { width:15px; height:15px; }
.advisor-back:hover { background:#edf4ff; color:#1264e9; }
.advisor-skill-details .advisor-detail-symbol { width:32px; height:32px; border-radius:9px; }
.advisor-skill-details strong { font-size:14px; }
.advisor-skill-details small { font-size:11px; margin-top:3px; }
.advisor-features button[aria-pressed="true"] { border-color:#74a5e6; color:#1264e9; background:#eaf3ff; }
.advisor-skill-details.tone-green .advisor-features button[aria-pressed="true"] { border-color:#6cb49c; background:#e6f5ee; color:#25765f; }
.advisor-skill-details.tone-amber .advisor-features button[aria-pressed="true"] { border-color:#d0a86a; background:#fff4df; color:#986b2c; }
.advisor-skills button:focus-visible { outline:2px solid #1264e9; outline-offset:2px; }
@media(max-width:600px) {
 .advisor-skill-list { max-height:156px; }
 .advisor-skill-details { max-height:none; padding:10px; }
 .advisor-skill-details > header { flex-wrap:wrap; }
 .advisor-skill-details .advisor-detail-symbol { display:none; }
 .advisor-features button { min-height:44px; }
}


.task-stage-track li:not(:last-child)::after { content:""; flex:1 1 auto; min-width:8px; height:2px; background:#dce6f3; border-radius:2px; }
.task-stage-track li.done::after { background:#83c8b3; }
.task-stage-label { min-width:0; line-height:1.5; }
@media(max-width:640px) {
 .task-stage-track li:not(:last-child)::after { position:absolute; top:11px; left:calc(50% + 17px); width:calc(100% - 30px); min-width:0; }
}

.personnel-page { display:grid; gap:22px; }
.personnel-page .panel { margin:0; }
.personnel-staff-row { display:flex; align-items:center; gap:14px; padding:18px 24px; border-top:1px solid #e5edf6; }
.personnel-staff-row > div:first-of-type { flex:1; }
.personnel-staff-row strong { font-size:15px; color:#233b59; }
.personnel-staff-row small { display:block; font-size:12px; color:#72849c; margin-top:5px; }
.personnel-staff-actions { display:flex; gap:10px; flex-wrap:wrap; }
.personnel-history details { margin:0 24px; padding:16px 0; border-top:1px solid #e5edf6; }
.personnel-history summary { cursor:pointer; color:#354d6b; font-size:14px; }
.personnel-history summary span { display:block; font-size:12px; color:#72849c; margin:6px 0; }
.personnel-history p,.personnel-history li { color:#59708f; font-size:13px; line-height:1.8; white-space:pre-wrap; }
.personnel-dialog { max-width:760px; }
.personnel-preview,.personnel-confirm { padding:16px; border:1px solid #dce6f3; border-radius:12px; background:#f5f8fc; }
.personnel-preview h3,.personnel-confirm h3 { margin:0 0 12px; font-size:16px; }
.personnel-preview ul { max-height:240px; overflow:auto; margin:12px 0 0; padding-left:20px; }
.personnel-preview li { font-size:13px; line-height:1.9; color:#59708f; }
.personnel-dialog .personnel-confirm label { display:flex; flex-direction:row; align-items:center; font-size:13px; margin-top:12px; }
.personnel-dialog input[type=checkbox] { width:18px; min-height:18px; height:18px; margin:0; flex:0 0 18px; }
.personnel-dialog footer { display:flex; justify-content:flex-end; gap:10px; }
.personnel-confirm[hidden] { display:none; }
@media(max-width:640px) { .personnel-staff-row { flex-wrap:wrap; padding:16px; } .personnel-staff-actions { flex-basis:100%; } .personnel-staff-actions .btn { flex:1; } }

/* Unified file drive. */
.library-drive { padding:0; overflow:hidden; }
.library-drive-toolbar { display:flex; flex-wrap:wrap; gap:16px; padding:20px 24px; margin:0; border-bottom:1px solid #e5edf6; }
.library-source-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.library-source-tabs button { min-height:44px; padding:10px 14px; border:0; background:transparent; color:#657e9f; border-radius:9px; font-size:13px; cursor:pointer; }
.library-source-tabs button[aria-pressed=true] { color:#1264e9; background:#eaf3ff; font-weight:600; }
.library-search { display:flex; align-items:center; gap:9px; margin-left:auto; padding:0 12px; border:1px solid #dce5f0; border-radius:9px; min-height:44px; }
.library-search .icon { width:17px; color:#72849c; }
.library-search input { border:0; padding:10px 0; min-height:42px; margin:0; box-shadow:none; background:transparent; font-size:13px; width:210px; }
.library-search:focus-within { outline:2px solid #1264e9; outline-offset:2px; }
.library-search input:focus { outline:0; }
.library-file-count { padding:14px 24px; color:#72849c; font-size:12px; }
.library-file-table { min-width:820px; }
.library-file-table td { padding:18px 20px; font-size:13px; }
.library-file-table td:first-child { width:30%; }
.library-file-name { display:flex; align-items:center; gap:12px; }
.library-file-name strong { overflow-wrap:anywhere; font-size:14px; color:#354d6b; }
.library-file-icon { display:grid; place-items:center; flex:0 0 36px; height:40px; border-radius:8px; color:#3b7fd5; background:#edf4ff; }
.library-file-icon[data-source=delivery] { color:#268973; background:#e8f6ef; }
.library-source-tag { display:inline-flex; padding:4px 7px; border-radius:6px; font-size:11px; color:#3b7fd5; background:#edf4ff; }
.library-source-tag[data-source=delivery] { color:#268973; background:#e8f6ef; }
.library-file-table td small { max-width:260px; font-size:11px; line-height:1.7; }
.library-actions { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.library-actions .text-btn { min-height:44px; }
.library-file-dialog .library-modal-content { padding:24px; }
.library-modal-content form { display:grid; gap:18px; }
.library-modal-content footer { display:flex; justify-content:flex-end; gap:10px; margin-top:6px; }
.library-modal-content > img { display:block; max-width:100%; max-height:60dvh; object-fit:contain; margin:0 auto 18px; }
.library-modal-content > iframe { width:100%; height:60dvh; border:0; margin-bottom:16px; }
.library-modal-content > pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:#f5f8fc; max-height:55dvh; overflow:auto; border-radius:10px; font-size:14px; line-height:1.8; margin:0 0 18px; }
.library-import-notice { margin:16px 24px 0; padding:12px; color:#976b2d; background:#fff7e9; font-size:12px; border-radius:9px; }
.library-import-notice[hidden] { display:none; }
@media(max-width:640px) {
 .library-drive-toolbar { padding:16px; gap:12px; }
 .library-search { flex:1 1 100%; margin-left:0; min-width:0; }
 .library-search input { width:100%; min-width:0; font-size:16px; }
 .library-file-dialog .library-modal-content { padding:18px; }
}

.brief-prompt-editor { padding:16px; border:1px solid #dce6f5; border-radius:12px; background:#f8fbff; }
.brief-prompt-editor > div { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.brief-prompt-editor label { font-size:14px; color:#354d6b; }
.brief-prompt-editor label span { color:#889bb4; font-size:11px; font-weight:400; margin-left:6px; }
.brief-prompt-editor .text-btn { min-height:44px; padding:6px; color:#1264e9; font-size:12px; }
.brief-prompt-editor textarea { width:100%; min-height:150px; background:white; border:1px solid #d3e0f0; border-radius:10px; padding:12px 14px; font-size:14px; line-height:1.9; color:#354d6b; resize:vertical; box-sizing:border-box; }
.brief-prompt-editor > p { margin:8px 0 0; font-size:12px; color:#72849c; line-height:1.7; }
.brief-schedule .brief-prompt-preview { color:#59708f; background:#f5f8fc; padding:10px 12px; border-radius:8px; font-size:12px; line-height:1.8; margin:0 0 14px; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.brief-prompt-preview strong { color:#354d6b; margin-right:8px; font-weight:600; }
.panel.brief-prompt-snapshot { padding:18px 22px; }
.brief-prompt-snapshot summary { font-size:14px; color:#59708f; cursor:pointer; }
.brief-prompt-snapshot p { font-size:14px; line-height:1.9; white-space:pre-wrap; margin-top:14px; color:#354d6b; overflow-wrap:anywhere; }
@media(max-width:600px) { .brief-prompt-editor { padding:12px; } .brief-prompt-editor > div { flex-wrap:wrap; gap:4px; } .brief-prompt-editor textarea { font-size:16px; } }

/* Compact, flat progress cards: distinguish purpose through color and wording. */
.progress-overview { grid-template-columns:1fr 1fr 1.25fr 1.15fr;gap:12px; }
.progress-overview .project-progress-card { --progress-ink:#184d9d;--progress-fill:#dbeafe;--progress-border:#a9caff;background:var(--progress-fill);border-color:var(--progress-border);padding:14px 16px;min-height:118px;gap:9px;justify-content:flex-start;box-sizing:border-box; }
.progress-overview .progress-remaining { --progress-ink:#08665d;--progress-fill:#ccf3e9;--progress-border:#8bd8c2; }
.progress-overview .progress-holder { --progress-ink:#6340a4;--progress-fill:#eae0fc;--progress-border:#c7a9ee; }
.progress-overview .project-progress-pending { --progress-ink:#aa292f;--progress-fill:#ffe1df;--progress-border:#f1a7aa;padding:0;display:block; }
.progress-overview .progress-clear { --progress-ink:#8a5715;--progress-fill:#ffedcb;--progress-border:#ebcf94; }
.progress-overview .project-progress-label { display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--progress-ink);font-size:13px;font-weight:600;line-height:1.4; }
.progress-overview .progress-symbol { display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:7px;background:#ffffff80; }
.progress-overview .progress-symbol .icon { width:15px;height:15px;color:var(--progress-ink); }
.progress-overview .project-progress-value { min-height:26px;gap:6px; }
.progress-overview .project-progress-value>strong { font-size:25px;font-weight:700;color:var(--progress-ink);line-height:1.1; }
.progress-overview .project-progress-value>small { color:var(--progress-ink);font-size:12px; }
.progress-overview .project-progress-current { color:var(--progress-ink);font-size:16px;line-height:26px;font-weight:650; }
.progress-overview .progress-caption { display:block;color:var(--progress-ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.progress-overview .project-progress-pending>summary { padding:14px 16px;min-height:118px;gap:9px;justify-content:flex-start; }
.progress-overview .project-progress-pending>summary .project-progress-value { justify-content:space-between; }
.progress-overview .project-todo-count { color:#b91c31;background:#fff8f8;font-size:22px;min-height:26px; }
.progress-overview .project-no-todos { color:var(--progress-ink);font-size:16px;font-weight:650;line-height:26px;white-space:normal;margin:0; }
.progress-overview .project-todo-popover { color:#233b59; }
@media(max-width:650px){.progress-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.progress-overview .project-progress-card{padding:12px;min-height:120px}.progress-overview .project-progress-pending{padding:0}.progress-overview .project-progress-pending>summary{padding:12px;min-height:120px}.progress-overview .project-progress-current{white-space:normal}.progress-overview .progress-caption{font-size:12px}}

/* Equal employee cards, independent of task descriptions and task count. */
.employee-work-grid { grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch; }
.employee-work-grid .employee-work-card { height:340px;box-sizing:border-box;display:flex;flex-direction:column; }
.employee-work-grid .employee-work-card-head { flex:0 0 auto;min-height:88px;box-sizing:border-box;padding:16px 14px 12px; }
.employee-work-grid .work-member { min-width:0; }
.employee-work-grid .work-member>span { min-width:0; }
.employee-work-grid .work-member strong,.employee-work-grid .work-member small { overflow-wrap:anywhere; }
.employee-work-grid .work-member-state { flex-shrink:0; }
.employee-work-grid .work-member-summary { flex:0 0 auto;min-height:40px;box-sizing:border-box;padding-left:14px;padding-right:14px; }
.employee-work-grid .employee-jobs { flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 14px; }
.employee-work-grid .work-expand { flex:0 0 auto; }
@media(max-width:999px) and (min-width:601px){.employee-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.employee-work-grid{grid-template-columns:minmax(0,1fr);}.employee-work-grid .employee-work-card{height:340px;}}

/* A stable, restrained color identity for each employee. */
.employee-work-grid .employee-work-card { --member-ink:#245ca4;--member-tint:#e1edff;--member-wash:#f3f7ff;--member-line:#c6d8f2;background:#fff;border-color:var(--member-line); }
.employee-work-grid .employee-work-card[data-tone="1"] { --member-ink:#167060;--member-tint:#d7f1e9;--member-wash:#f1faf6;--member-line:#b7dfd0; }
.employee-work-grid .employee-work-card[data-tone="2"] { --member-ink:#7047a1;--member-tint:#eae0f7;--member-wash:#f8f4fc;--member-line:#d8c4eb; }
.employee-work-grid .employee-work-card[data-tone="3"] { --member-ink:#925b21;--member-tint:#f9e8cd;--member-wash:#fff9f0;--member-line:#ebd3ae; }
.employee-work-grid .employee-work-card[data-tone="4"] { --member-ink:#9a4762;--member-tint:#f8e0e8;--member-wash:#fdf4f7;--member-line:#edc7d4; }
.employee-work-grid .employee-work-card-head { background:var(--member-tint); }
.employee-work-grid .work-member strong { color:var(--member-ink); }
.employee-work-grid .work-member .avatar { color:var(--member-ink);background:#ffffffb3;box-shadow:0 0 0 3px #ffffff45; }
.employee-work-grid .work-member-state,.employee-work-grid .work-member-state.has-work { color:var(--member-ink);background:#ffffffb3;border:1px solid var(--member-line); }
.employee-work-grid .work-member-summary { background:var(--member-tint);border-bottom:1px solid var(--member-line); }
.employee-work-grid .employee-job { border-bottom-color:var(--member-line); }
.employee-work-grid .employee-job:hover { background:var(--member-wash); }
.employee-work-grid .work-expand { color:var(--member-ink);background:var(--member-tint);border-color:var(--member-line); }

/* Flow nodes remain distinct from the canvas regardless of task status. */
.project-execution-section .execution-map-scroll { background:#eef3f9;border:1px solid #d6e1ee; }
.project-execution-section .execution-map-single-column { max-width: 100%; }
.project-execution-section .execution-map-single-column .execution-node {
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
}
.project-execution-section .execution-map-single-column .execution-connectors { display: none; }
.project-execution-section .execution-map-canvas .execution-node[class*="node-"] { background:#fff;border:1px solid #c7d5e6;opacity:1;box-shadow:0 3px 10px #233b5910; }
.project-execution-section .execution-map-canvas .execution-node[class*="node-"]:hover { background:#fff;border-color:#739ed2;box-shadow:0 5px 16px #233b591c; }
.project-execution-section .execution-node-top>small { color:#647b98; }
.project-execution-section .execution-node-person small { color:#647b98; }
.project-execution-section .execution-node-action { background:#f3f6fb;color:#425d7d; }
.project-execution-section .execution-node:focus-visible { outline:2px solid #1264e9;outline-offset:3px; }

.project-create-workspace { display:flex;flex-direction:column;min-width:0; }
.project-create-workspace>header { display:flex;align-items:center;gap:20px;margin-bottom:18px; }
.project-create-workspace>header h1 { margin:0;font-size:24px;color:#233b59; }
.project-create-workspace>header p { margin:6px 0 0;font-size:13px;color:#6f85a1; }
.project-create-workspace>header>a { flex-shrink:0;border:1px solid #d7e3f2; }
.project-create-workspace>iframe { display:block;width:100%;height:calc(100dvh - 230px);min-height:480px;border:1px solid #dce5f0;border-radius:14px;background:#fff; }
@media(max-width:640px){.project-create-workspace>header{gap:12px;flex-wrap:wrap}.project-create-workspace>header h1{font-size:20px}.project-create-workspace>iframe{height:calc(100dvh - 210px);min-height:460px}}

.confirmation-dialog { width:min(520px,calc(100vw - 32px)); }
.confirmation-dialog .confirmation-body { padding:22px 24px; }
.confirmation-dialog .confirmation-body p { margin:0;color:#4d6584;font-size:15px;line-height:1.9;overflow-wrap:anywhere; }
.confirmation-dialog>footer { display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e4ecf6;background:#fafcff; }
.confirmation-dialog button { min-height:44px; }

/* Keep the creation heading compact; the top bar already names the page. */
.project-create-workspace>header { margin-bottom:10px;min-height:40px;gap:12px; }
.project-create-workspace>header .workspace-back { min-height:40px;padding:8px 12px;font-size:13px; }
.project-create-workspace>iframe { height:calc(100dvh - 190px); }
@media(max-width:640px){.project-create-workspace>header{margin-bottom:8px;flex-wrap:nowrap}.project-create-workspace>iframe{height:calc(100dvh - 170px)}}

/* Show all work naturally; avoid nested card scrolling and expansion footers. */
.employee-work-grid .employee-work-card { height:auto;min-height:340px; }
.employee-work-grid .employee-jobs { flex:1 0 auto;min-height:auto;overflow:visible;overscroll-behavior:auto; }
@media(max-width:600px){.employee-work-grid .employee-work-card{height:auto;min-height:280px}}

/* Overview heading markers sit before labels and share the existing card palette. */
.section-head .overview-block-title, .meeting-block-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.overview-title-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e7f1ff;
  color: #1764b6;
}
.overview-title-mark[data-tone="teal"] { background: #e5f5ef; color: #157763; }
.overview-title-mark[data-tone="amber"] { background: #fff2de; color: #8a5518; }
.overview-title-mark[data-tone="violet"] { background: #f1eafd; color: #7051a4; }
.overview-title-mark .icon { width: 16px; height: 16px; }
.page-heading h1 > .overview-title-mark { margin-right: 10px; vertical-align: 0.12em; }
.inbox-panel > .section-head { background: #f4f8ff; }
.inbox-panel .overview-block-title { font-size: 20px; }
.inbox-panel .inbox-row .event-copy { overflow-wrap: anywhere; }
.inbox-panel .inbox-row .event-title { gap: 6px 10px; font-size: 14px; }
.inbox-panel .inbox-row .event-copy > span:nth-child(2),
.inbox-panel .inbox-row .event-copy > small { font-size: 12px; }
.inbox-panel .inbox-action {
  flex: none;
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #155bad;
}
.inbox-panel .inbox-action .icon { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .inbox-panel .inbox-row { flex-wrap: wrap; }
  .inbox-panel .inbox-row .event-copy { flex: 1 1 calc(100% - 45px); }
}
.inbox-panel .overview-inbox-count {
  background: #dcecff;
  border-color: transparent;
  color: #195997;
  font-weight: 700;
}
.overview-statistics .workspace-stats .metric-title {
  justify-content: flex-start;
  gap: 6px;
}
.overview-statistics .workspace-stats .metric-title > span {
  font-weight: 600;
  white-space: normal;
}
.overview-statistics .workspace-stats .metric-title > .icon {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--stat-ink);
}
@media (max-width: 650px) {
  .section-head .overview-block-title { font-size: 16px; }
  .inbox-panel .overview-block-title { font-size: 18px; }
}

.meeting-record-panel { overflow: hidden; }
.meeting-record-panel > .section-head { background: #f5f2fb; }
.meeting-record-panel .meeting-block-title { font-size: 20px; }
.meeting-record-count {
  white-space: nowrap;
  background: #eee6fa;
  border-color: transparent;
  color: #60418f;
  font-weight: 600;
}
.meeting-review :is(.meeting-source-head, .meeting-followup-head) h2 { font-weight: 700; }
.meeting-followup-section :is(.meeting-decision-area, .meeting-task-area) .section-head h2 {
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 650px) {
  .meeting-record-panel .meeting-block-title { font-size: 18px; }
  .meeting-record-panel > .section-head { flex-wrap: wrap; gap: 8px; }
}

.station-load-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 24px;
  color: var(--muted, #526b8d);
  font-size: 13px;
}

.task-report-setting { color: #526b8d; margin-bottom: 10px; }
.task-report-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #315578; }
.task-report-progress strong { color: #1264e9; }
.task-report-progress progress { width: 100%; accent-color: #1264e9; }
.task-report-history { margin-top: 12px; }
.task-report-history summary { padding-block: 8px; cursor: pointer; }
.task-report-history ol { padding: 0; list-style: none; }
.task-report-history li { border-top: 1px solid #e6edf6; padding: 10px 0; }
.task-report-history li div { display: flex; justify-content: space-between; gap: 8px; }
.task-report-history li p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; }
.delegation-mind-node > .delegation-mind-dependency { color: #365986; }

@media (max-width: 600px) {
  .station-task-table :is(th,td) { padding: 12px; }
  .station-task-table td:first-child { min-width: 160px; }
  .station-task-table td:last-child .btn { min-height: 44px; }
  .task-handling-options .btn { min-height: 44px; }
  .delegation-mind-handoff button { min-height: 44px; }
}

.delegation-mind-edges .delegation-predecessor-edge { stroke:#236dc2; stroke-width:2; stroke-dasharray:5 4; fill:none; }
.current-blocker { background:#fff4ee; border-color:#f3d0c3; margin-bottom:12px; }

.progress-reminder-settings { padding: 20px 24px; }
.operating-rule-layout { display: grid; gap: 24px; }
.operating-rule-panel { padding: 24px; min-width: 0; }
.operating-rule-panel h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.operating-rule-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.operating-rule-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.operating-rule-values > div { border: 1px solid #d7e6fa; border-radius: 12px; padding: 16px; background: #f2f7ff; color: #234e7f; }
.operating-rule-values > div:nth-child(2) { border-color: #f0dfc5; background: #fdf6eb; color: #754718; }
.operating-rule-values dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.operating-rule-values dd { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; font-size: 13px; }
.operating-rule-values dd strong { font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.operating-rule-confirmation { display: flex; align-items: flex-start; gap: 12px; }
.operating-rule-confirmation p { margin: 6px 0 0; line-height: 1.7; color: #526b8d; }
.progress-reminder-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.progress-reminder-copy h2 { margin: 0 0 8px; font-size: 18px; }
.progress-reminder-copy p { margin: 4px 0 0; color: #526b8d; line-height: 1.65; }
.progress-reminder-feedback { margin: 12px 0 4px; color: #365b86; font-size: 13px; }
.progress-reminder-feedback:empty { display: none; }
.btn.report-settings-switch { width: auto; min-width: 116px; min-height: 44px; margin: 0; padding: 0 12px; border-color: #cbd8e8; border-radius: 8px; background: var(--workspace-canvas); color: #3f5675; font-size: 13px; font-weight: 600; }
.btn.report-settings-switch:hover:not(:disabled) { border-color: #aabfd9; background: #e5edf8; }
.report-settings-switch span { position: relative; flex: none; width: 32px; height: 18px; background: #758aa7; border-radius: 10px; }
.report-settings-switch span::after { position: absolute; inset: 2px auto auto 2px; width: 14px; height: 14px; border-radius: 50%; background: white; content: ""; }
.btn.report-settings-switch[aria-checked="true"] { border-color: #b7d2f9; background: #eaf3ff; color: #1557a8; }
.btn.report-settings-switch[aria-checked="true"]:hover:not(:disabled) { border-color: #8eb9f6; background: #deedff; }
.report-settings-switch[aria-checked="true"] span { background: #1264e9; }
.report-settings-switch[aria-checked="true"] span::after { left: 16px; }
.report-settings-switch:focus-visible { outline: 2px solid #1264e9; outline-offset: 2px; }
.report-settings-switch:disabled { opacity: .65; }

.perf-toolbar > label { color: #526b8d; }
.perf-toolbar #perf-department {
  width: min(216px, 100%);
  min-width: 0;
  min-height: 44px;
  padding-block: 8px;
  padding-inline-start: 12px;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  background-color: var(--workspace-surface);
  color: #233b59;
  font: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.perf-toolbar #perf-department:hover { background-color: #f4f8fd; }
.perf-toolbar #perf-department:focus-visible { outline: 2px solid #1264e9; outline-offset: 2px; }
.perf-table.perf-work-table { min-width: 640px; }
.perf-work-table th:first-child { width: 145px; }
.perf-work-table th:last-child { width: 116px; }
.perf-work-table td:last-child .text-btn { min-height: 44px; }
.perf-work-table :is(th, td):not(:first-child) { text-align: center; }
.perf-work-table td { vertical-align: middle; padding-block: 14px; }
.perf-work-table td > strong { font-variant-numeric: tabular-nums; }
.perf-work-table td > small { color: #526b8d; white-space: nowrap; }
.perf-work-table td[colspan] { text-align: center; }

.boss-notifications { position: relative; }
.boss-notifications > summary { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 10px; color: #4d6786; cursor: pointer; list-style: none; }
.boss-notifications > summary::-webkit-details-marker { display: none; }
.boss-notifications > summary:hover,.boss-notifications[open] > summary { background: #edf4ff; color: #155bad; }
.boss-notifications > summary:focus-visible { outline: 2px solid #1264e9; outline-offset: 2px; }
.boss-notifications > summary > b { position: absolute; top: 1px; right: 0; min-width: 17px; padding: 1px 4px; border: 2px solid white; border-radius: 10px; background: #b32335; color: white; font-size: 10px; line-height: 13px; text-align: center; }
.boss-notifications-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 360px; max-width: calc(100vw - 32px); border: 1px solid #dfe8f4; border-radius: 14px; background: var(--workspace-surface); box-shadow: 0 10px 35px #23486d1c; }
.boss-notifications-popover h2 { margin: 0; padding: 14px 16px; border-bottom: 1px solid #edf1f7; font-size: 16px; }
.boss-notifications-list { max-height: min(360px, 55dvh); overflow: auto; overscroll-behavior: contain; padding: 4px; }
.boss-notifications-list > p,.boss-notifications-list > .station-load-status { margin: 0; padding: 12px; color: #526b8d; font-size: 13px; }
.boss-notifications-list .inbox-row { min-height: 44px; padding: 10px 12px; border-radius: 8px; }
.boss-notifications-list .inbox-row:focus-visible { outline-offset: -2px; }
.boss-notifications-list .event-copy { min-width: 0; overflow-wrap: anywhere; }
.boss-notice-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 5px; color: #526b8d; font-size: 12px; }
.boss-notice-progress > span > strong { color: #155bad; font-size: inherit; }
.boss-notice-history { margin: 0 12px 8px; border-top: 1px solid #edf1f7; color: #405f82; font-size: 12px; }
.boss-notice-history summary { display: list-item; align-content: center; min-height: 44px; cursor: pointer; }
.boss-notice-history summary:focus-visible { outline: 2px solid #1264e9; outline-offset: -2px; }
.boss-notice-history ol { margin: 0 0 8px; padding: 0 10px; list-style: none; background: #f4f8fd; border-radius: 8px; }
.boss-notice-history li { padding: 9px 0; }
.boss-notice-history li + li { border-top: 1px solid #dfe8f4; }
.boss-notice-history li > div { display: flex; justify-content: space-between; gap: 12px; }
.boss-notice-history li p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .boss-notifications { position: static; }
  .boss-notifications-popover { top: calc(100% + 6px); inset-inline: 8px; width: auto; max-width: none; }
  .operating-rule-layout { gap: 16px; }
  .operating-rule-panel { padding: 16px; }
  .operating-rule-values { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .progress-reminder-settings { padding: 16px; }
  .progress-reminder-row { grid-template-columns: auto minmax(0, 1fr); }
  .progress-reminder-row .report-settings-switch { grid-column: 2; justify-self: start; }
}
