/* Strategic command center, blueprint, context capture and learning cycle. */

.kpis li.attention {
  background: var(--status-review-bg);
  border-color: var(--bp-review-border);
}

.dependency-path span {
  min-width: 0px;
}

.learning-steps {
  counter-reset: step 0;
}

.learning-steps > details > summary::before {
  counter-increment: step 1;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  font-size: 13px;
}

#decision[data-view="home"] {
  background: transparent;
  border: 0px;
  box-shadow: none;
  padding: 0px;
}

#decision[data-view="home"] > h2 {
  font-size: 38px;
  margin-bottom: 8px;
}

.view-lead {
  font-size: 13px;
  color: rgb(98, 105, 93);
  margin: 0px 0px 24px;
}

.kpis strong {
  display: block;
  font: 500 32px / 1.1 var(--font-display);
  margin-bottom: 6px;
  color: rgb(21, 62, 43);
}

.kpis span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  display: block;
}

.kpis .attention strong {
  color: rgb(122, 90, 32);
}

.kpis li.is-zero {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.kpis li.is-zero strong {
  color: var(--text-muted);
}

.attention-section > .eyebrow {
  font-size: 10px;
  color: rgb(121, 96, 58);
}

.attention-section > h3 {
  font: 500 23px / 1.25 var(--font-display);
  margin: 9px 0px 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h3 {
  font: 500 24px / 1.2 var(--font-display);
  margin: 6px 0px;
}

.section-heading > span {
  font-size: 11px;
  color: rgb(105, 113, 95);
}

.section-heading .eyebrow {
  font-size: 10px;
}

.strategy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.strategy-card-footer button {
  font-size: 11px;
  min-height: 44px;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  margin: 18px 0px;
  gap: 14px;
}

.blueprint-grid .analysis-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-default);
  background: rgb(248, 247, 240);
  border-radius: 12px;
  padding: 20px;
  border-top: 3px solid rgb(201, 174, 130);
}

.blueprint-pillar .eyebrow {
  font-size: 10px;
  color: rgb(122, 102, 68);
}

.blueprint-pillar h3 {
  font-size: 15px;
}

.blueprint-grid .current {
  margin: 12px 0px 6px;
  background: transparent;
  border: 0px;
  padding: 0px;
  font: 500 20px / 1.35 var(--font-display);
}

.blueprint-grid p {
  font-size: 12px;
}

.blueprint-grid button {
  font-size: 12px;
  margin-top: auto;
}

.blueprint-grid .current {
  align-self: stretch;
}

.dependency-path {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-weight: 650;
  font-size: 11px;
  padding: 12px 0px;
  border-bottom: 1px solid rgb(225, 227, 216);
}

.dependency-path .edge {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--bp-radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
}

.dependency-path .edge.is-soft {
  border-style: dashed;
}

.dependency-path > span:nth-child(3)::before {
  content: "→";
  content: "→" / "";
  margin-right: 10px;
  color: var(--bp-warning);
}

#capture-context {
  padding: 22px;
  background: rgb(244, 245, 237);
  border: 1px solid rgb(216, 221, 207);
  border-radius: 12px;
  margin: 24px 0px;
}

#capture-context > label:first-child {
  margin-top: 0px;
}

#capture-context button {
  margin-top: 16px;
  font-size: 12px;
}

.add-context {
  margin-top: 32px;
}

.add-context > h3 {
  font: 500 24px / 1.2 var(--font-display);
  margin: 0px;
}

.add-context #capture-context {
  margin-top: 14px;
}

.memory-group {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgb(222, 223, 213);
  border-radius: 10px;
  background: rgb(250, 251, 246);
}

.memory-group h3 {
  font-size: 14px;
  margin: 0px 0px 12px;
}

.memory-group p {
  font-size: 13px;
}

.memory-2 {
  background: rgb(250, 245, 233);
  border-style: dashed;
  border-color: rgb(201, 174, 130);
}

.memory-3 {
  background: rgb(241, 247, 244);
  border-left: 3px solid rgb(11, 104, 71);
}




.learning-steps > details {
  padding: 14px 20px;
  margin: 12px 0px;
  border: 1px solid rgb(219, 223, 210);
  border-radius: 10px;
  background: rgb(251, 252, 248);
}

.learning-steps form {
  padding: 0px 0px 10px;
}

.learning-steps form button {
  margin-top: 18px;
  font-size: 12px;
}

.analysis-item {
  padding: 18px 0px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
}

.analysis-item h3 {
  font-size: 15px;
}

.practice-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0px;
  margin: 20px 0px 28px;
}

.practice-summary li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgb(215, 221, 204);
  border-radius: 10px;
  background: var(--surface-card);
  font-size: 13px;
  color: var(--text-secondary);
}

.practice-summary strong {
  font: 500 22px / 1 var(--font-display);
  color: var(--human);
}

#decision[data-view="practice"] > .analysis-item h3 {
  margin: 4px 0px;
}

#decision[data-view="practice"] > .analysis-item p:last-child {
  margin: 0px;
}

#decision[data-view="practice"] > .analysis-item {
  padding: 12px 18px;
  margin-top: 10px;
  border-width: 1px 1px 1px 3px;
  border-style: solid;
  border-color: rgb(215, 221, 204) rgb(215, 221, 204) rgb(215, 221, 204) rgb(162, 181, 151);
  border-image: none;
  border-radius: 10px;
  background: rgb(247, 249, 243);
}

.home-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

#decision .home-heading h2 {
  font-size: 34px;
  max-width: 24ch;
  margin-bottom: 12px;
}

.home-heading > .button, .home-heading > button {
  font-size: 12px;
  white-space: nowrap;
}

.home-heading .view-lead {
  font-size: 12px;
  margin-bottom: 0px;
}

.kpis strong small {
  font: 400 12px / 1 var(--font-ui);
  color: var(--text-muted);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  padding: 0px;
  list-style: none;
  gap: 10px;
  margin: 24px 0px 20px;
}

.kpis li {
  background: rgb(255, 253, 249);
  border: 1px solid rgb(222, 221, 211);
  border-radius: 10px;
  box-shadow: rgba(7, 61, 45, 0.016) 0px 2px 5px;
  padding: 16px 18px;
}

.attention-section {
  border-width: 1px 1px 1px 3px;
  border-style: solid;
  border-color: rgb(213, 188, 141) rgb(213, 188, 141) rgb(213, 188, 141) rgb(176, 139, 83);
  border-image: none;
  background: rgb(255, 252, 245);
  border-radius: 12px;
  box-shadow: var(--product-shadow);
  padding: 20px 22px;
  margin-bottom: 0px;
}

.attention-section .section-heading {
  margin-bottom: 14px;
}

.attention-section .section-heading h3 {
  font-size: 25px;
}

.attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0px;
  border-top: 1px solid rgb(228, 220, 201);
}

.attention-row h3 {
  font-size: 13px;
  margin: 0px 0px 5px;
}

.attention-row p {
  font-size: 11px;
  color: rgb(106, 98, 78);
  margin: 0px;
}

.attention-row button {
  font-size: 10px;
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.clear-state {
  border-left: 2px solid rgb(201, 174, 130);
  padding: 4px 18px;
}

.clear-state p {
  font-size: 13px;
  color: rgb(96, 108, 84);
  margin: 8px 0px;
}

.clear-state .eyebrow {
  font-size: 10px;
}

.strategy-map {
  margin: 24px 0px;
}

.strategy-card {
  background: rgb(255, 253, 249);
  border: 1px solid rgb(216, 221, 207);
  border-radius: 12px;
  box-shadow: var(--product-shadow);
  position: relative;
  padding: 18px;
}

.strategy-index {
  font: 500 20px / 1 var(--font-display);
  color: rgb(122, 98, 56);
  margin-bottom: 8px;
}

.strategy-card h3 {
  font-size: 13px;
  margin: 0px 0px 8px;
}

.strategy-card > p {
  line-height: 1.6;
  min-height: 3.2em;
  font-size: 12px;
  margin: 0px 0px 12px;
}

.strategy-card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(230, 228, 218);
  margin-top: 10px;
  padding-top: 6px;
}

.learning-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgb(217, 223, 208);
  border-radius: 12px;
  background: rgb(248, 250, 242);
  margin-bottom: 16px;
}

.learning-summary h3 {
  font: 500 23px / 1.2 var(--font-display);
  margin: 8px 0px;
}

.learning-summary .eyebrow {
  font-size: 10px;
}

.learning-counts {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 10px;
  color: rgb(104, 116, 91);
}

.learning-counts strong {
  display: block;
  font: 500 26px / 1.3 var(--font-display);
  color: rgb(36, 70, 42);
}

.learning-summary > button {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 11px;
  min-height: 40px;
}

.context-next {
  background: rgb(234, 240, 229);
  border: 1px solid rgb(210, 221, 201);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
}

.context-next h3 {
  font: 500 23px / 1.2 var(--font-display);
  margin: 8px 0px;
}

.context-next .eyebrow {
  font-size: 10px;
}

.context-next p {
  font-size: 12px;
  margin: 8px 0px 0px;
}

.context-next button {
  font-size: 11px;
  white-space: nowrap;
}

/* Entrepreneur Learning MVP — selective glassmorphism */
.learning-dashboard {
  display: grid;
  gap: 20px;
}

.learning-hero,
.learning-card,
.learning-evidence-item,
.learning-next {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(18, 48, 35, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.learning-hero {
  padding: 22px;
  border-radius: 18px;
}

.learning-hero h2 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.learning-hero p:last-child {
  margin-bottom: 0;
  max-width: 62ch;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learning-card {
  padding: 16px;
  border-radius: 15px;
}

.learning-card h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.learning-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.learning-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(7, 61, 45, 0.08);
  color: rgb(7, 61, 45);
  font-size: 14px;
}

.learning-evidence {
  display: grid;
  gap: 10px;
}

.learning-evidence-item {
  padding: 16px;
  border-radius: 14px;
}

.learning-evidence-item h3 {
  margin: 5px 0;
  font-size: 15px;
}

.learning-evidence-item p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}

.learning-next {
  padding: 18px 20px;
  border-radius: 16px;
  border-left: 3px solid rgba(7, 61, 45, 0.40);
}

.learning-next h3 {
  margin: 5px 0;
}

.learning-next p:last-child {
  margin-bottom: 0;
  max-width: 60ch;
}

.learning-moment {
  margin-top: 18px;
  border-top: 1px solid var(--border-default);
  padding-top: 14px;
}

.learning-moment > summary {
  font-weight: 650;
}

.learning-moment-body {
  padding-top: 8px;
}

.learning-moment-body > p {
  max-width: 62ch;
}

.learning-moment-body details {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .learning-hero h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .learning-hero,
  .learning-card,
  .learning-evidence-item,
  .learning-next {
    background: rgb(249, 250, 246);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


/* BRANDOPOLIS: FEATURED LEARNING NAV */
#journey #practice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  margin-top: 0.45rem;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  overflow: hidden;

  border: 1px solid rgba(14, 108, 82, 0.22);
  border-left: 3px solid rgba(14, 108, 82, 0.72);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.70),
      rgba(232, 242, 236, 0.52)
    );

  box-shadow:
    0 8px 24px rgba(35, 57, 47, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

#journey #practice::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  right: -18px;
  top: -20px;
  border-radius: 999px;
  background: rgba(17, 116, 87, 0.055);
  pointer-events: none;
}

#journey #practice:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 108, 82, 0.34);
  border-left-color: rgba(14, 108, 82, 0.88);

  box-shadow:
    0 10px 28px rgba(35, 57, 47, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

#journey #practice .practice-title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: #153b30;
}

#journey #practice .practice-subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.67rem;
  line-height: 1.2;
  letter-spacing: 0.035em;
  color: rgba(32, 82, 66, 0.72);
}

#journey #practice[aria-current="page"] {
  border-color: rgba(10, 105, 76, 0.44);
  border-left-color: #0b7657;

  background:
    linear-gradient(
      135deg,
      rgba(245, 252, 248, 0.92),
      rgba(221, 239, 229, 0.72)
    );

  box-shadow:
    0 12px 32px rgba(26, 84, 65, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (prefers-reduced-transparency: reduce) {
  #journey #practice {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #f4f8f5;
  }
}

/* Competitive onboarding: checkbox is an inline choice, not a full-width field */
.competitive-research-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  font-weight: 600;
  cursor: pointer;
}

.competitive-research-option input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: #073d2d;
}

.competitive-intake {
  margin-top: 18px;
}

.competitive-intake .hint {
  margin-top: 8px;
}

/* BRANDOPOLIS: competitive findings are evidence candidates, not AI reports. */
.competitive-finding {
  padding: 22px 0 24px;
}

.competitive-finding-head {
  margin-bottom: 18px;
}

.competitive-finding-head h4 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.competitive-finding-section {
  margin-top: 18px;
}

.competitive-finding-section .eyebrow {
  margin-bottom: 6px;
}

.competitive-finding-section > p:last-child {
  margin-top: 0;
  line-height: 1.65;
}

.competitive-finding-sources {
  margin-top: 20px;
  padding-top: 2px;
}

.competitive-finding-sources summary {
  cursor: pointer;
  font-weight: 600;
}

.competitive-source-group {
  margin-top: 16px;
}

.competitive-source-group ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.competitive-source-group li + li {
  margin-top: 7px;
}

.competitive-source-group a {
  overflow-wrap: anywhere;
}

.competitive-finding > .actions {
  margin-top: 20px;
}

/* Competitive evidence disclosure: one integrated control. */
.competitive-finding-sources > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 2px;
  padding: 14px 0 10px;
  border-top: 1px solid var(--border-default);
  color: var(--text-primary);
}

.competitive-finding-sources > summary::after {
  content: "›";
  margin-left: 3px;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  color: var(--human);
  transform: translateY(-1px);
}

.competitive-finding-sources[open] > summary::after {
  content: "⌄";
  transform: translateY(-2px);
}

.competitive-finding-sources > summary:hover {
  color: var(--human);
}

/* BRANDOPOLIS: evidence checkbox follows the same inline-choice pattern
   as competitive onboarding. */
#evidence-fields > label:has(#evidence-external) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 16px 0 6px;
  font-weight: 600;
  cursor: pointer;
}

#evidence-external {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: #073d2d;
  flex: 0 0 18px;
}

/* BRANDOPOLIS: reusable private multi-document source corpus uploader. */
.document-intake {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(177, 166, 139, .48);
  border-radius: 12px;
  background: rgba(252, 250, 244, .72);
}

.document-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 14px 0 8px;
  padding: 9px 13px;
  border: 1px solid rgba(7, 61, 45, .32);
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  color: var(--bp-brand-green, #073d2d);
  font-weight: 650;
  cursor: pointer;
}

.document-picker:hover {
  border-color: rgba(7, 61, 45, .58);
  background: rgba(244, 249, 245, .96);
}

.document-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.document-picker:has(+ .document-input:focus-visible) {
  outline: 3px solid rgba(7, 61, 45, .18);
  outline-offset: 3px;
}

.document-selection {
  margin: 6px 0 4px;
}

.document-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.document-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(177, 166, 139, .38);
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
}

.document-list li.has-error {
  border-color: rgba(157, 66, 55, .38);
}

.document-list strong,
.document-list small {
  display: block;
  overflow-wrap: anywhere;
}

.document-list strong {
  font-size: 13px;
}

.document-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.document-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  border-radius: 6px;
  background: rgba(7, 61, 45, .08);
  color: var(--bp-brand-green, #073d2d);
}

.context-documents {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(177, 166, 139, .46);
  border-radius: 12px;
  background: rgba(250, 248, 241, .78);
}

.context-documents h4 {
  margin: 4px 0 6px;
}

.context-documents #upload-context-documents {
  margin-top: 8px;
}

.context-entry-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.context-entry-divider::before,
.context-entry-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(177, 166, 139, .42);
}

/* Source Corpus: document upload and local analysis actions. */
.document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.context-documents .document-actions button {
  margin: 0;
}

.context-documents #analyze-context-documents {
  border-color: rgba(7, 61, 45, .24);
}

.context-documents #analyze-context-documents:disabled {
  opacity: .48;
  cursor: not-allowed;
}

/* Source Corpus: actionable state surfaced on the strategic home. */
.document-attention {
  margin: 22px 0 28px;
  padding: 22px 24px;
  border: 1px solid rgba(153, 116, 56, .24);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(251, 247, 236, .98),
      rgba(247, 242, 226, .92)
    );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.document-attention > div {
  min-width: 0;
}

.document-attention h3 {
  margin: 4px 0 7px;
}

.document-attention p:last-child {
  margin-bottom: 0;
  max-width: 720px;
}

.document-attention > button {
  flex: 0 0 auto;
  margin: 0;
}

.document-attention.is-ready {
  border-color: rgba(7, 61, 45, .18);
  background:
    linear-gradient(
      135deg,
      rgba(239, 246, 240, .98),
      rgba(247, 248, 240, .92)
    );
}

@media (max-width: 760px) {
  .document-attention {
    align-items: stretch;
    flex-direction: column;
  }

  .document-attention > button {
    width: 100%;
  }
}

/* Source Corpus: local, visible progress for document claim generation. */
.document-progress {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 61, 45, .16);
  border-radius: 12px;
  background: rgba(244, 248, 242, .82);
}

.document-progress[hidden] {
  display: none;
}

.document-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}

.document-progress-head strong {
  color: #073d2d;
}

.document-progress-head span {
  color: #315b4f;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.document-progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(7, 61, 45, .10);
}

.document-progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #0b7959;
  transition: width .28s ease;
}

.document-progress .hint {
  margin: 9px 0 0;
}

.document-progress.is-complete {
  background: rgba(235, 246, 238, .94);
}

.document-progress.is-error {
  border-color: rgba(148, 50, 50, .25);
  background: rgba(252, 240, 239, .94);
}

.document-progress.is-error .document-progress-head strong {
  color: #8b302d;
}

/* Human review of AI-extracted document claims. */
.document-claim-actions {
  margin-top: 14px;
}

.document-claim-editor {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 61, 45, .12);
}

.document-claim-editor[hidden],
.document-claim-actions[hidden] {
  display: none;
}

.document-claim-editor textarea {
  width: 100%;
  min-height: 110px;
  margin-top: 8px;
  resize: vertical;
}

.document-claim.is-accepted {
  border-color: rgba(17, 113, 80, .22);
  background: rgba(244, 249, 245, .72);
}

.document-claim.is-rejected {
  opacity: .72;
  background: rgba(248, 247, 243, .7);
}

.document-claim-original {
  margin: 10px 0;
}

.document-claim-original summary {
  cursor: pointer;
  font-size: .9rem;
}

.document-claim-review-note {
  margin-top: 12px;
}

/* Blueprint export lives with the view heading, where the strategic document it produces belongs. */
.blueprint-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 18px;
}

.blueprint-actions .hint {
  margin: 0;
  flex: 1 1 260px;
}

/* Brando: contextual drawer, with its own scroll area and persistent composer. */
#brando-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;overflow:hidden;padding:0;border-radius:20px 0 0 20px;border:1px solid var(--border-subtle,#d8ddd7);font:14px/1.55 var(--font-ui);box-shadow:-12px 0 48px rgba(7,61,45,.12)}
#brando-dialog[open]{display:flex;flex-direction:column;animation:brando-panel-enter 320ms cubic-bezier(.2,.8,.2,1)}
@keyframes brando-panel-enter{from{transform:translateX(102%)}to{transform:translateX(0)}}
#brando-dialog::backdrop{background:rgba(10,36,27,.14);backdrop-filter:none;-webkit-backdrop-filter:none}
.brando-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--border-subtle,#d8ddd7);flex:0 0 auto}
#brando-dialog h2{margin:0;font-size:26px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brando-brand-chip{font:500 11px/1.4 var(--font-ui);background:#e6efe8;padding:3px 8px;border-radius:20px;color:var(--emerald-deep,#073D2D)}
#brando-dialog .eyebrow{font-size:10px;letter-spacing:.1em}
#brando-dialog #close-brando{min-width:44px;padding:4px 12px;font-size:24px}
.brando-panel-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-gutter:stable}
#brando-dialog h3{font-size:16px;margin:0 0 8px}#brando-dialog h4{font-size:13px;margin:14px 0 5px}
#brando-dialog p,#brando-dialog li{line-height:1.55;overflow-wrap:anywhere}
#brando-dialog .brando-welcome h3{font:400 28px/1.2 var(--font-display);margin-bottom:10px}
.brando-welcome p{color:var(--text-muted,#66716a);margin:0 0 16px}
#brando-scope{font-size:12px;color:var(--text-muted,#66716a);margin:0 0 12px}
.brando-context-card{background:linear-gradient(135deg,#edf3ed,#fbfaf5);border:1px solid #d6e0d6;border-radius:14px;padding:16px}
.brando-context-card p{margin:8px 0;font-size:13px}.brando-context-card .eyebrow{margin:0 0 8px}.brando-context-card p:last-child{margin-bottom:0}
.brando-context-card .brando-current-choice{font:400 20px/1.35 var(--font-display);margin:12px 0}
.brando-context-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0;padding:12px 0;border-block:1px solid var(--border-subtle,#d8ddd7)}
.brando-context-counts div{padding:0 8px}.brando-context-counts div+div{border-left:1px solid var(--border-subtle,#d8ddd7)}
.brando-context-counts dt{font-size:11px;color:var(--text-muted,#66716a)}.brando-context-counts dd{margin:3px 0 0;font-size:20px;color:var(--emerald-deep,#073D2D)}
.brando-context-detail{margin:8px 0;padding:0;border:1px solid var(--border-subtle,#d8ddd7);border-radius:12px}
#brando-dialog .brando-context-detail summary{cursor:pointer;font-weight:600;padding:10px 12px;min-height:44px;box-sizing:border-box}.brando-context-detail>:not(summary){margin-left:12px;margin-right:12px}.brando-context-detail summary span{padding:2px 7px;margin-left:6px;border-radius:16px;background:#ece8da}
.brando-context-detail ul{padding-left:18px;margin:8px 0}.brando-context-detail li{margin:6px 0}.brando-context-detail li button{margin-left:6px}
.brando-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
#brando-dialog .brando-quick button{font-size:12px;padding:10px;text-align:left;white-space:normal}
#brando-dialog button{min-height:44px;font-family:var(--font-ui)}
.brando-composer{flex:0 0 auto;padding:10px 22px 12px;background:#fffdf8;border-top:1px solid var(--border-subtle,#d8ddd7)}
#brando-dialog #brando-form{margin:0;padding:0;border:0;background:none;display:block}
#brando-form label{font-size:12px;margin:0 0 6px}.brando-compose-row{display:flex;align-items:stretch;gap:8px}
#brando-dialog textarea{width:100%;box-sizing:border-box;min-width:0;min-height:52px;max-height:100px;resize:vertical;font:14px/1.4 var(--font-ui);margin:0;padding:10px;border:1px solid #cdd8ce;border-radius:10px;background:white}
.brando-compose-row>button{flex:0 0 auto;padding:8px 12px}
#brando-dialog .brando-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 0}
#brando-dialog .brando-actions button{font-size:11px;padding:4px 0;min-height:32px}
#brando-dialog .brando-authority{font-size:10px;color:var(--text-muted,#66716a);margin:0}
.brando-turn{border-top:1px solid var(--border-subtle,#d8ddd7);padding:16px 0}
#brando-dialog .brando-turn h3{margin-top:18px}#brando-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.85rem}
#brando-status{min-height:0;font-size:12px;margin:0 0 6px}#brando-status:empty{display:none}#brando-dialog .badge{white-space:normal}
#journey .brando-nav-entry{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;margin:0 0 4px;background:linear-gradient(135deg,#edf3ed,#fffdf8);border:1px solid #d6e0d6;border-radius:12px;text-align:left;color:var(--emerald-deep,#073D2D)}
#journey .brando-nav-entry>span{display:block;padding:0;width:auto;font:inherit;color:inherit}
#journey .brando-nav-entry .brando-attention-label{margin:0;font-size:13px;font-weight:600;line-height:1.4}

/* Approved Brando gem is separate from the immutable Ribbon B identity. */
.intelligence-rail{min-width:0;display:flex;flex-direction:column;gap:12px}
.brando-entry{margin:0;border:1px solid var(--border-subtle,#d8ddd7);border-radius:14px;background:rgba(255,252,247,.96);box-shadow:0 4px 16px rgba(68,54,31,.035)}
#open-brando{display:flex;align-items:center;gap:10px;width:100%;padding:12px;text-align:left;background:transparent;border:0;border-radius:14px;color:var(--emerald-deep,#073D2D);min-height:76px}
#open-brando:hover{background:rgba(7,61,45,.035)}
.brando-portrait{width:44px;height:44px;flex:0 0 44px;object-fit:contain;transform-origin:center}
.brando-card-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.brando-card-copy strong{font:600 10px/1.45 var(--font-ui);text-transform:uppercase;letter-spacing:.04em}
.brando-card-copy>span{font:400 12px/1.5 var(--font-ui);color:var(--text-main,#29332e);overflow-wrap:anywhere}
.brando-card-arrow{margin-left:auto;flex:0 0 auto;font-size:22px}
.brando-dialog-heading{display:flex;gap:12px;align-items:center}
.brando-dialog-heading .eyebrow{margin:0 0 4px}
#brando-dialog .brando-actions{align-items:center}
.brando-suggestion{display:flex;align-items:center;gap:12px;border:1px dashed rgba(7,61,45,.24);border-radius:12px;background:rgba(255,252,247,.96);padding:12px 16px;margin:0 0 14px}
.brando-suggestion[hidden]{display:none}
.brando-suggestion>img{object-fit:contain;flex:0 0 32px}
.brando-suggestion p{margin:0;flex:1;min-width:0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.brando-suggestion strong{color:var(--emerald-deep,#073D2D)}
.brando-suggestion small{display:block;font-size:11px;color:var(--text-muted,#66716a);margin-top:4px}
.brando-suggestion button{flex:0 0 auto;min-height:44px}

#brando-submit[aria-busy="true"]{opacity:1;background:var(--emerald-deep,#073D2D);color:#fff;cursor:wait}
.brando-thinking-mark{display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,.4);border-top-color:white;border-radius:50%;animation:brando-thinking .8s linear infinite;margin-right:6px}
.brando-thinking-mark[hidden]{display:none}
@keyframes brando-thinking{to{transform:rotate(360deg)}}
.brando-review-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#brando-section-actions{flex:0 1 auto}#brando-section-actions[hidden]{display:none}
#brando-feedback-dialog{max-width:520px;width:calc(100% - 32px);box-sizing:border-box;border:1px solid #d6e0d6;border-radius:18px;padding:20px;background:#fffdf8;max-height:90dvh;overflow:auto}
#brando-feedback-dialog form{margin:0;padding:0;border:0;background:none}#close-brando-feedback{float:right;min-width:44px;min-height:44px}
#brando-feedback-dialog textarea,#brando-feedback-dialog select{width:100%;box-sizing:border-box}#brando-feedback-text{line-height:1.5}
@media(prefers-reduced-motion:reduce){.brando-thinking-mark{animation:none}}
.brando-suggestion{display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;row-gap:6px}
.brando-suggestion>img{grid-column:1;grid-row:1 / span 2;align-self:center}
.brando-suggestion>p{grid-column:2;grid-row:1}
#brando-section-actions{grid-column:2;grid-row:2;margin:0}
#brando-view-answer{grid-column:3;grid-row:1}
#brando-dismiss-suggestion{grid-column:3;grid-row:2;justify-self:end}
@media(max-width:620px){.brando-suggestion{grid-template-columns:24px minmax(0,1fr) 24px;gap:8px}.brando-suggestion>img{width:24px;height:24px}#brando-view-answer{grid-column:2;grid-row:3;justify-self:start}#brando-dismiss-suggestion{grid-column:3;grid-row:1}#brando-section-actions button{padding:8px;font-size:12px}}
.brando-section{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;margin:16px 0;padding:14px 16px;border:1px solid #d6e0d6;border-radius:14px;background:#fffdf8}
.brando-section>img{width:32px;height:32px;object-fit:contain;align-self:start}
.brando-section p{margin:0 0 8px;line-height:1.5;overflow-wrap:anywhere}
.brando-section .eyebrow{font-size:12px}.brando-section .hint{font-size:12px}
.brando-section details{margin:8px 0}.brando-section summary{cursor:pointer}
.brando-section button{min-height:44px;white-space:normal;text-align:left}
@media(max-width:620px){.brando-section{grid-template-columns:24px minmax(0,1fr);gap:8px;padding:12px}.brando-section>img{width:24px;height:24px}}
/* ADR-0025 · Focusable Intelligent Strategic Workspace (UX JTBD C and D) */

/* C. Independent panel collapse. The controls live at the top of the centre column; ≥1280px for the journey
   (below it the journey is already a drawer) and ≥1001px for the right rail (below it the rail stacks). */
.panel-controls{display:none;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 12px}
.panel-toggle{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border-radius:var(--bp-radius-pill);font-size:12px;font-weight:600;line-height:1.3;background:var(--surface-card);color:var(--bp-brand-emerald-deep);border:1px solid rgba(7,61,45,.18);box-shadow:none}
.panel-toggle:hover{border-color:var(--bp-brand-emerald);background:var(--bp-emerald-wash)}
.panel-toggle-icon{font-size:14px;line-height:1}
.panel-toggle-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:10.5px;font-weight:700;color:rgb(98,71,25);background:rgb(239,224,189)}
.focus-mode-label{margin-right:auto;font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--bp-brando-emerald)}
#toggle-journey{display:none}
@media (min-width:1001px){.app .panel-controls{display:flex}}
@media (min-width:1280px){
  #toggle-journey{display:inline-flex}
  body.left-collapsed #journey{display:none}
  body.left-collapsed #workspace{padding-left:28px}
  body.app.left-collapsed footer{padding-left:28px}
  body.left-collapsed #workspace[aria-busy="true"]::before{left:0}
}
@media (min-width:1001px){
  body.right-collapsed .intelligence-rail{display:none}
  body.right-collapsed .layout{grid-template-columns:minmax(0,1fr)}
}
@media (pointer:coarse){.panel-toggle{min-height:44px}}

/* D. Brando, more visible without competing with the decision: functional emerald, word-labelled states. */
.brando-entry{border-left:3px solid var(--bp-brando-emerald)}
.brando-entry[data-state="idle"]{box-shadow:0 4px 16px rgba(68,54,31,.035),0 0 0 1px var(--bp-brando-emerald-soft)}
.brando-entry[data-state="attention"]{box-shadow:0 0 0 2px var(--bp-brando-emerald-ring)}
.brando-entry[data-state="consulting"]{background:linear-gradient(135deg,var(--bp-brando-emerald-soft),rgba(255,252,247,.96))}
.brando-entry[data-state="ready"]{box-shadow:0 0 0 2px var(--bp-brando-emerald);background:linear-gradient(135deg,var(--bp-brando-emerald-soft),rgba(255,252,247,.96))}
#journey .brando-nav-entry{border-left:3px solid var(--bp-brando-emerald)}
#journey .brando-nav-entry .brando-attention-label{color:var(--bp-brando-emerald)}
.brando-section{border-left:3px solid var(--bp-brando-emerald)}
.brando-section .eyebrow{color:var(--bp-brando-emerald)}
.brando-action,#brando-section-explore{border-color:var(--bp-brando-emerald);color:var(--bp-brando-emerald)}
.brando-action:hover,#brando-section-explore:hover{background:var(--bp-brando-emerald-soft)}

/* Strategic Intelligence summary (ADR-0025): sober, word-first, no dashboard cards. */
.intelligence-summary{margin:20px 0;padding:18px 20px;border:1px solid var(--border-default);border-radius:var(--bp-radius-lg);background:var(--surface-card)}
.intelligence-summary .section-heading{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.intelligence-summary h4{margin:16px 0 8px;font-size:13px}
.intelligence-plan,.intelligence-issues{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.intelligence-step,.intelligence-issue{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 12px;border:1px solid var(--border-default);border-radius:var(--bp-radius-md)}
.intelligence-step p,.intelligence-issue p{margin:4px 0 0}
.intelligence-issue[data-severity="CONFLICT"]{border-color:var(--bp-error-border);background:var(--bp-error-bg)}
.intelligence-issue[data-severity="REVIEW"]{border-color:var(--bp-review-border)}
.intelligence-status{margin:8px 0 16px}
.declared-context{margin:14px 0;padding:12px 14px;border:1px dashed var(--bp-brand-champagne);border-radius:var(--bp-radius-md);background:var(--bp-gold-wash)}
.declared-context dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:6px 0}
.declared-context dt{font-weight:600;color:var(--text-secondary)}
.declared-context dd{margin:0}
.decision-support,.decision-tension{margin:8px 0;font-size:13px}
.bp-disclosure{margin-top:12px}
.bp-disclosure-body{padding:4px 0 0}
@media (max-width:620px){.intelligence-step,.intelligence-issue{flex-direction:column}.declared-context dl{grid-template-columns:1fr}}
/* ADR-0026 · Validation & Learning Engine: next validation, plan quality and hypothesis review. */
.validation-next{margin:20px 0;padding:18px 20px;border:1px solid var(--border-default);border-radius:var(--bp-radius-lg);background:var(--surface-card)}
.validation-next h3{margin:0 0 4px}
.validation-steps{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.validation-step{padding:10px 12px;border:1px solid var(--border-default);border-radius:var(--bp-radius-md)}
.validation-step:first-child{border-color:var(--bp-review-border)}
.validation-step p{margin:4px 0 0}
.plan-quality{margin:8px 0;padding:10px 12px;border:1px dashed var(--border-default);border-radius:var(--bp-radius-md)}
.plan-quality[data-quality="REWORK"]{border-color:var(--bp-review-border)}
.plan-quality ul{margin:6px 0 0;padding-left:18px}
.hypothesis-card[data-status="REJECTED"]{border-color:var(--bp-error-border)}
.hypothesis-card[data-status="WEAKENED"]{border-color:var(--bp-review-border)}
.hypothesis-review-form,.learning-revise-form{display:grid;gap:6px;margin-top:8px}
.analysis-item .actions label{flex-basis:100%}
