/* Shared workspace controls */
.demo-compact {
  display: none;
}
.sidebar-top {
  padding-bottom: 26px;
}
.nav-group + .nav-group {
  margin-top: 20px;
}
.side-link {
  min-height: 39px;
}
.rail-floor {
  padding-top: 16px;
}
.rail-orbits {
  height: min(14vh, 125px);
}
.scope-chip,
.small-owner,
.form-owner,
.capture-context,
.capture-context > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.scope-chip {
  padding: 6px 9px;
  min-height: 32px;
  max-width: 175px;
  border: 1px solid #d6dfd3;
  border-radius: 6px;
  color: #365540;
  background: #f2f5ef;
  font-size: 0.8rem;
  font-weight: 620;
}
.scope-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stack-form {
  display: grid;
  gap: 15px;
}
.stack-form .form-pair,
.stack-form .type-choices,
.stack-form .dialog-actions,
.stack-form .notice-card,
.stack-form .inline-note {
  margin: 0;
}
.stack-form .dialog-actions {
  padding-top: 4px;
}
.field-label small,
.form-owner,
.small-owner {
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 450;
}
.form-error {
  border-left: 3px solid #b64c3c;
  background: #fbefea;
  color: #85372f;
  padding: 10px 12px;
  font-size: 0.86rem;
}
.workspace-picker {
  min-width: 0;
  border: 0;
  padding: 0;
}
.workspace-picker legend {
  font-size: 0.83rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.workspace-picker .option-card {
  gap: 12px;
}
.workspace-picker .option-card > span {
  flex: 1;
}
.scope-chip:hover,
.stage-edit select:hover {
  border-color: #98aa96;
}
.team-monogram {
  font: 650 0.83rem var(--sans);
}
.ops-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 18px;
  margin-bottom: 21px;
  align-items: stretch;
}
.team-list,
.channels,
.team-queue {
  padding: 12px 22px 20px;
}
.team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.team-row:first-child,
.team-queue button:first-child,
.knowledge-row:first-child,
.history-list article:first-child {
  border-top: 0;
}
.team-name b,
.team-name small,
.team-measure b,
.team-measure small,
.team-queue button b,
.team-queue button small,
.knowledge-row b,
.knowledge-row small,
.history-list article b,
.history-list article small,
.file-target b,
.file-target small,
.intake-card b,
.intake-card small,
.source-urls b,
.source-urls span,
.sample-runs b,
.sample-runs span,
.run-tracks b,
.run-tracks small,
.brief-items b,
.brief-items small {
  display: block;
}
.team-name b,
.team-queue b,
.knowledge-row b,
.history-list b,
.intake-card b,
.run-tracks b,
.file-target b {
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 620;
}
.team-name small,
.team-measure small,
.team-queue small,
.knowledge-row small,
.history-list small,
.file-target small,
.intake-card small,
.run-tracks small {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
  margin-top: 2px;
}
.team-measure {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.team-measure b,
.channel b {
  font-size: 1rem;
  font-weight: 600;
}
.team-measure small {
  font-size: 0.73rem;
}
.channels {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}
.channel > div,
.channel > div span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.channel > div {
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 0.83rem;
}
.channel > i,
.channel > i > i {
  display: block;
  height: 4px;
  border-radius: 8px;
  background: #e8eee4;
}
.channel > i > i {
  background: #718d77;
}
.channel:nth-child(2) > i > i {
  background: #c68b69;
}
.channel:nth-child(3) > i > i {
  background: #839ab3;
}
.channel:nth-child(4) > i > i {
  background: #a099b1;
}
.team-queue {
  padding-top: 0;
}
.team-queue button,
.knowledge-row,
.intake-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
}
.team-queue button {
  padding: 12px 3px;
  border-top: 1px solid var(--line);
}
.team-queue button > span,
.knowledge-text,
.intake-card > span:nth-child(2),
.run-tracks > div > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.team-queue button:hover,
.knowledge-row:hover,
.intake-card:hover {
  background: #f4f7f0;
}
.ops-filters .search-control {
  flex: 1 1 195px;
  max-width: 440px;
}
.source-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.crm-table td {
  overflow-wrap: anywhere;
}
.crm-table .row-title {
  max-width: 300px;
}
.stage-edit {
  margin: 8px 0;
}
.history-list article,
.source-line {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  align-items: flex-start;
}
.history-list article {
  border-top: 1px solid var(--line);
}
.history-list article .stat-icon,
.intake-card .stat-icon,
.knowledge-row .stat-icon {
  border-radius: 9px;
}
.history-list article > div,
.source-line > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.history-list article p,
.source-line p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--copy);
  margin: 4px 0;
}
.intake-list {
  display: grid;
  gap: 8px;
}
.intake-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  min-width: 0;
}
.file-target {
  border: 1px dashed #a9baa9;
  border-radius: 9px;
  background: #f4f7f1;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  cursor: pointer;
  color: var(--ink);
  min-width: 0;
}
.file-target input {
  flex-basis: 100%;
  min-width: 0;
  font-size: 0.83rem;
  width: 100%;
  color: var(--muted);
}
.file-target input::file-selector-button {
  border: 1px solid #c8d4c7;
  border-radius: 5px;
  padding: 6px 9px;
  background: white;
  color: var(--ink);
  margin-right: 8px;
  cursor: pointer;
}
.notice-card .text-link {
  margin-top: 8px;
  padding: 0;
}
.import-review > b {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.import-review .prose {
  margin-top: 8px;
}
.paired-scope {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 580;
  color: #42634b;
}
.paired-scope > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #d8e3d4;
  border-radius: 6px;
  background: #eff4ea;
}
.paired-scope i {
  font-style: normal;
  color: var(--muted);
}
.run-tracks {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 13px;
}
.run-tracks > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
}
.run-tracks > div + div {
  border-top: 1px solid var(--line);
}
.run-tracks > div > .icon,
.source-line > .icon {
  color: #527b5b;
}
.run-tracks .stat-icon,
.history-list .stat-icon {
  width: 31px;
  height: 31px;
}
.source-urls,
.sample-runs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.brief-example .source-urls {
  padding: 6px 12px 12px;
}
.source-urls li,
.sample-runs li {
  padding: 6px 0;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.source-urls span,
.sample-runs span {
  color: var(--muted);
  margin-top: 2px;
}
.capture-context {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}
.capture-context .select-control {
  min-height: 29px;
}
.capture-context .select-control select {
  min-height: 27px;
  font-size: 0.79rem;
}
.capture-context small {
  font-size: 0.79rem;
}
.daily-panel {
  background: #203e32;
  color: #f2f4e9;
  margin: 22px 0 20px;
  display: grid;
  grid-template-columns: minmax(185px, 0.63fr) minmax(0, 1.6fr);
  padding: 22px 24px;
  gap: 26px;
  border: 1px solid #244332;
}
.daily-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.daily-icon,
.login-symbol {
  display: grid;
  place-items: center;
  flex: none;
  background: #365644;
  border: 1px solid #58715e;
  color: #e0e9d8;
  width: 43px;
  height: 43px;
  border-radius: 10px;
}
.daily-kicker,
.login-eyebrow {
  font-size: 0.73rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.daily-kicker {
  color: #becebc;
  margin-bottom: 4px;
}
.daily-panel h2 {
  font: 500 clamp(1.25rem, 2.2vw, 1.85rem) / 1.2 var(--serif);
  letter-spacing: -0.045em;
}
.brief-items {
  padding-left: 20px;
  border-left: 1px solid #476453;
}
.brief-items button {
  padding: 6px 2px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  color: #edf2e7;
}
.brief-items button:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brief-items button > span:first-child {
  color: #c7d8c2;
}
.brief-items b {
  font-size: 0.88rem;
  font-weight: 560;
}
.brief-items small {
  font-size: 0.76rem;
  color: #c3d2c4;
  margin-top: 1px;
}
.knowledge-list {
  padding: 0 21px 8px;
}
.knowledge-row {
  padding: 14px 1px;
  border-top: 1px solid var(--line);
}
.knowledge-row > .icon,
.intake-card > .icon,
.team-queue button > .icon:last-child {
  color: #708275;
}
.source-quote {
  font: 500 1.13rem/1.55 var(--serif);
  border-left: 3px solid #c38a66;
  margin: 18px 0;
  padding: 5px 0 5px 14px;
  color: #344f40;
}
.preserve-lines {
  white-space: pre-line;
}
.source-line {
  border-top: 1px solid var(--line);
  font-size: 0.89rem;
}
.login-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  min-height: 100svh;
  background: #fafbf7;
}
.login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #17372c;
  color: #eff2e6;
  min-height: 100%;
  padding: clamp(30px, 5.5vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.login-brand .wordmark {
  align-self: flex-start;
}
.login-intro {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: auto 0;
  padding: 75px 0 133px;
}
.login-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #c7d4bf;
}
.login-eyebrow i {
  width: 27px;
  height: 2px;
  background: #cf8969;
}
.login-intro h2 {
  font: 500 clamp(2.25rem, 4.5vw, 4.5rem) / 1.09 var(--serif);
  letter-spacing: -0.065em;
  margin: 18px 0 17px;
}
.login-intro h2 em {
  font-style: normal;
  color: #c8d7b9;
}
.login-intro p {
  color: #d3dfce;
  font-size: clamp(0.98rem, 1.23vw, 1.13rem);
  line-height: 1.65;
  max-width: 350px;
}
.login-map {
  position: absolute;
  z-index: -1;
  width: clamp(320px, 42vw, 640px);
  aspect-ratio: 1;
  bottom: -24%;
  right: -23%;
  opacity: 0.78;
}
.orbit {
  border: 1px solid #78998173;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}
.orbit.o2 {
  inset: 10%;
}
.orbit.o3 {
  inset: 20%;
}
.orbit.o4 {
  inset: 30%;
}
.orb-center {
  position: absolute;
  inset: 40%;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  background: #294d3b;
  border: 1px solid #94ad9366;
  border-radius: 50%;
  font: 500 2.5rem var(--serif);
}
.orb-center span {
  color: #df9674;
}
.orb-node {
  position: absolute;
  background: #da9677;
  border: 2px solid #244633;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.orb-node.n1 {
  top: 10%;
  left: 49%;
}
.orb-node.n2 {
  top: 32%;
  left: 25.2%;
}
.orb-node.n3 {
  top: 50%;
  left: 0;
}
.login-card {
  display: grid;
  place-items: center;
  padding: 42px clamp(27px, 6vw, 98px);
}
.login-body {
  width: 100%;
  max-width: 385px;
}
.login-symbol {
  background: #e9efe4;
  border-color: #d6e1d1;
  color: #426348;
  margin-bottom: 16px;
}
.login-body h1 {
  font: 500 clamp(2.5rem, 4vw, 3.8rem) / 1.14 var(--serif);
  letter-spacing: -0.065em;
  margin-bottom: 8px;
}
.login-body > p {
  font-size: 0.99rem;
  color: var(--muted);
}
.login-body .stack-form {
  margin-top: 27px;
  gap: 17px;
}
.login-body .field-label {
  font-size: 0.89rem;
}
.login-body .field-label input,
.login-body .field-label select {
  min-height: 44px;
  font-size: 0.96rem;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 42px;
}
.password-field button {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  width: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.login-submit {
  min-height: 45px;
  margin-top: 2px;
}
.login-body .login-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  font-size: 0.8rem;
  color: #68766a;
}
@media (max-width: 1130px) {
  .ops-columns {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.8fr);
    gap: 12px;
  }
  .team-row {
    gap: 8px;
  }
  .team-list,
  .channels,
  .team-queue {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (min-width: 851px) and (max-width: 1030px) {
  .ops-columns {
    grid-template-columns: 1fr;
  }
  .channels {
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
}
@media (max-height: 765px) {
  .sidebar-top {
    padding-bottom: 15px;
  }
  .nav-group + .nav-group {
    margin-top: 12px;
  }
  .side-link {
    min-height: 34px;
    margin-block: 1px;
  }
  .guide-btn {
    margin-bottom: 4px;
  }
  .team {
    min-height: 60px;
    padding-block: 10px;
  }
  .rail-floor {
    padding-top: 8px;
  }
  .rail-orbits {
    display: none;
  }
}
@media (max-width: 740px) {
  .login-frame {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 20px 26px;
    display: block;
    min-height: 0;
  }
  .login-brand .wordmark > span:first-child {
    font-size: 1.95rem;
  }
  .login-map {
    width: 210px;
    bottom: -140px;
    right: -15px;
  }
  .login-intro {
    display: none;
  }
  .login-card {
    align-items: start;
    padding: 32px 23px 42px;
  }
  .login-frame {
    grid-template-rows: auto 1fr;
  }
  .ops-columns {
    grid-template-columns: 1fr;
  }
  .channels {
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }
  .daily-panel {
    padding: 17px;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .brief-items {
    border-left: 0;
    border-top: 1px solid #476453;
    padding: 8px 0 0;
  }
  .knowledge-list {
    padding-inline: 15px;
  }
}
@media (max-width: 540px) {
  .scope-chip {
    font-size: 0.73rem;
    max-width: 124px;
    padding-inline: 6px;
  }
  .top-end {
    gap: 6px;
  }
  .top-divider {
    display: none;
  }
  .team-row {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    column-gap: 8px;
  }
  .team-row .btn {
    grid-column: 2/-1;
    justify-self: start;
    min-height: 28px;
    padding: 5px 10px;
  }
  .team-row .avatar {
    width: 31px;
    height: 31px;
  }
  .team-measure {
    min-width: 28px;
  }
  .team-measure b {
    font-size: 0.92rem;
  }
  .team-name b {
    font-size: 0.88rem;
  }
  .knowledge-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 4px 10px;
  }
  .knowledge-row .stat-icon {
    width: 32px;
    height: 32px;
    grid-row: 1/3;
  }
  .knowledge-row .knowledge-label {
    grid-column: 2;
  }
  .knowledge-row > .icon {
    grid-row: 1/3;
    grid-column: 3;
  }
  .crm-table tbody tr {
    grid-template-columns: 1fr 1fr;
  }
  .crm-table td[data-label="Lead sources"] {
    grid-column: 1/-1;
  }
  .ops-filters .search-control {
    flex-basis: 100%;
    max-width: none;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .top-end .demo-label {
    font-size: 0.67rem;
    gap: 4px;
    padding: 3px 6px;
    justify-content: center;
  }
  .demo-full {
    display: none;
  }
  .demo-compact {
    display: inline;
  }
  .scope-chip {
    max-width: 128px;
  }
  .crumbs {
    min-width: 0;
    gap: 5px;
  }
  .crumb-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .login-symbol {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }
}

@media (max-width: 680px) {
  .research-stat,
  .research-stat > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .research-stat {
    gap: 5px;
  }
  .research-stat > div {
    flex: 1;
    width: 100%;
    gap: 4px;
  }
  .research-stat strong {
    margin-top: auto;
  }
  .research-stat .stat-icon {
    margin-bottom: 0;
  }
}
