:root {
  --gka-paper: #f4f2e9;
  --gka-sheet: #fbfaf5;
  --gka-ink: #173027;
  --gka-forest: #17382c;
  --gka-forest-2: #214a39;
  --gka-gold: #a49b61;
  --gka-line: rgba(28, 61, 48, 0.18);
  --gka-line-strong: rgba(28, 61, 48, 0.34);
  --gka-muted: #68756e;
  --gka-soft: #8b948e;
  --gka-danger: #8b4a43;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--gka-paper);
  color: var(--gka-ink);
}

body.is-locked {
  overflow: hidden;
}

.gka-shell {
  width: 100%;
  max-width: none;
}

.gka-topbar {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.gka-topbar .gk-brand {
  cursor: default;
}

.gka-product-identity {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 172px;
  padding-left: 28px;
  border-left: 1px solid var(--gka-line);
  color: var(--gka-forest);
  text-align: right;
}

.gka-product-identity span {
  font-family: var(--gk-serif);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.gka-product-identity small {
  margin-top: 5px;
  color: var(--gka-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.gka-main {
  width: var(--gkn-page-frame, min(calc(100% - 48px), 1760px));
  margin-inline: auto;
  padding-bottom: 72px;
}

.gka-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: end;
  padding: clamp(62px, 8vw, 112px) clamp(26px, 4vw, 58px) clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--gka-line);
}

.gka-hero h1 {
  margin: 13px 0 18px;
  color: var(--gka-ink);
  font-family: var(--gk-serif);
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.gka-hero > div > p:last-child {
  max-width: 860px;
  margin: 0;
  color: #52635b;
  font-family: var(--gk-serif);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.85;
}

.gka-hero > aside {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 94px;
  padding-left: 28px;
  border-left: 1px solid var(--gka-line-strong);
}

.gka-hero aside small,
.gka-hero aside strong {
  display: block;
}

.gka-hero aside small {
  margin-bottom: 8px;
  color: var(--gka-gold);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.gka-hero aside strong {
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 17px;
  font-weight: 600;
}

.gka-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 3px solid rgba(63, 107, 82, 0.18);
  border-radius: 50%;
  background: #3f6b52;
}

.gka-mode-bar {
  margin: 0 clamp(26px, 4vw, 58px);
  border: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
}

.gka-intent-brief {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
}

.gka-intent-brief h2 {
  margin: 8px 0;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 600;
}

.gka-intent-brief header > p:last-child {
  margin: 0;
  color: var(--gka-muted);
  font-size: 9px;
  line-height: 1.65;
}

.gka-intent-brief > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gka-intent-brief label span {
  display: block;
  margin-bottom: 7px;
  color: var(--gka-muted);
  font-size: 8px;
  font-weight: 700;
}

.gka-intent-brief select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--gka-line-strong);
  background: #fffefa;
  color: var(--gka-ink);
  font: inherit;
  font-size: 10px;
}

.gka-mode-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 12px 28px;
  border-top: 1px solid var(--gka-line);
}

.gka-mode-note p { margin: 0; }
.gka-mode-note button,
.gka-task-drawer-actions button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--gka-forest);
  background: var(--gka-forest);
  color: #fff;
  cursor: pointer;
}

.gka-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gka-mode-tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 20px 28px;
  border: 0;
  border-right: 1px solid var(--gka-line);
  background: transparent;
  color: var(--gka-ink);
  cursor: pointer;
  text-align: left;
}

.gka-mode-tab:last-child {
  border-right: 0;
}

.gka-mode-tab > span {
  color: var(--gka-gold);
  font-size: 10px;
  font-weight: 760;
}

.gka-mode-tab strong {
  font-family: var(--gk-serif);
  font-size: 24px;
  font-weight: 600;
}

.gka-mode-tab small {
  color: var(--gka-muted);
  font-size: 11px;
}

.gka-mode-tab i {
  padding: 4px 7px;
  border: 1px solid rgba(164, 155, 97, 0.55);
  color: var(--gka-gold);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.gka-mode-tab.is-active {
  background: var(--gka-forest);
  color: #f7f4e9;
}

.gka-mode-tab.is-active small {
  color: rgba(247, 244, 233, 0.68);
}

.gka-mode-tab:focus-visible,
.gka-generate-button:focus-visible,
.gka-industry-option:focus-visible,
.gka-subindustry-option:focus-visible {
  outline: 2px solid var(--gka-gold);
  outline-offset: -3px;
}

.gka-mode-bar > p {
  margin: 0;
  padding: 11px 28px;
  border-top: 1px solid var(--gka-line);
  color: var(--gka-muted);
  font-size: 10px;
}

.gka-mode-panel {
  margin: 28px clamp(26px, 4vw, 58px) 0;
}

.gka-report-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.7fr);
  min-height: 680px;
  border: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
}

.gka-map-panel,
.gka-brief-panel {
  min-width: 0;
}

.gka-map-panel {
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--gka-line-strong);
  background: #efeee6;
}

.gka-brief-panel {
  padding: clamp(24px, 2.8vw, 36px);
  background: #faf9f4;
}

.gka-panel-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--gka-line);
}

.gka-panel-head h2 {
  margin: 7px 0 0;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 600;
}

.gka-select-field,
.gka-compact-fields label,
.gka-focus-field {
  display: grid;
  gap: 7px;
}

.gka-select-field span,
.gka-compact-fields label > span,
.gka-focus-field > span,
.gka-field-label {
  color: var(--gka-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gka-select-field select,
.gka-compact-fields select,
.gka-focus-field textarea {
  min-height: 42px;
  border: 1px solid var(--gka-line-strong);
  border-radius: 0;
  background: #fffefa;
  color: var(--gka-ink);
  font: inherit;
  font-size: 11px;
}

.gka-select-field select,
.gka-compact-fields select {
  min-width: 184px;
  padding: 0 32px 0 12px;
}

.gka-select-field select:focus,
.gka-compact-fields select:focus,
.gka-focus-field textarea:focus,
.gka-chat-composer textarea:focus {
  border-color: var(--gka-forest-2);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(33, 74, 57, 0.1);
}

.gka-map {
  min-height: 435px;
  margin-top: 20px;
  border: 1px solid var(--gka-line);
  background: #e6e7df;
}

.gka-map .gkn-map-viewport {
  min-height: 350px;
}

.gka-map .gkn-vector-map {
  min-height: 350px;
}

.gka-map .gkn-map-note {
  margin-bottom: 0;
}

.gka-country-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(100px, 0.55fr));
  margin-top: 16px;
  border: 1px solid var(--gka-line);
  background: rgba(255, 255, 252, 0.58);
}

.gka-country-snapshot > div {
  min-height: 86px;
  padding: 16px;
  border-right: 1px solid var(--gka-line);
}

.gka-country-snapshot > div:last-child {
  border-right: 0;
}

.gka-country-snapshot span,
.gka-country-snapshot small {
  display: block;
  color: var(--gka-soft);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.gka-country-snapshot strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 22px;
}

.gka-country-snapshot .is-country strong {
  font-size: 28px;
}

.gka-draft-badge {
  padding: 7px 9px;
  border: 1px solid var(--gka-line-strong);
  color: var(--gka-muted);
  font-size: 9px;
  white-space: nowrap;
}

.gka-field-group {
  padding: 22px 0;
  border-bottom: 1px solid var(--gka-line);
}

.gka-field-label {
  display: block;
  margin-bottom: 12px;
}

.gka-industry-list,
.gka-subindustry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gka-industry-option,
.gka-subindustry-option {
  border: 1px solid var(--gka-line);
  border-radius: 0;
  background: #fffefa;
  color: var(--gka-muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
}

.gka-industry-option {
  min-height: 39px;
  padding: 9px 11px;
}

.gka-subindustry-option {
  min-height: 34px;
  padding: 7px 9px;
}

.gka-industry-option:hover,
.gka-subindustry-option:hover {
  border-color: var(--gka-forest-2);
  color: var(--gka-forest);
}

.gka-industry-option.is-selected,
.gka-subindustry-option.is-selected {
  border-color: var(--gka-forest);
  background: var(--gka-forest);
  color: #f6f3e9;
}

.gka-compact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 0 0;
}

.gka-compact-fields select {
  min-width: 0;
  width: 100%;
}

.gka-focus-field {
  margin-top: 15px;
}

.gka-focus-field small {
  color: var(--gka-soft);
  font-size: 8px;
  font-weight: 500;
}

.gka-focus-field textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.6;
}

.gka-scope-summary {
  margin: 20px 0 15px;
  padding: 17px 18px;
  border-left: 3px solid var(--gka-gold);
  background: #eeede4;
}

.gka-scope-summary > span {
  color: var(--gka-gold);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.gka-scope-summary strong {
  display: block;
  margin: 7px 0;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 17px;
  line-height: 1.5;
}

.gka-scope-summary p {
  margin: 0;
  color: var(--gka-muted);
  font-size: 9px;
  line-height: 1.6;
}

.gka-generate-button {
  display: grid;
  width: 100%;
  min-height: 66px;
  align-content: center;
  justify-items: start;
  padding: 12px 18px;
  border: 1px solid var(--gka-forest);
  border-radius: 0;
  background: var(--gka-forest);
  color: #f7f4e9;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gka-generate-button span {
  font-family: var(--gk-serif);
  font-size: 18px;
  font-weight: 600;
}

.gka-generate-button small {
  margin-top: 5px;
  color: rgba(247, 244, 233, 0.62);
  font-size: 9px;
}

.gka-generate-button:hover:not(:disabled) {
  background: var(--gka-forest-2);
}

.gka-generate-button:disabled {
  border-color: var(--gka-line);
  background: #d9d8d0;
  color: #898f8b;
  cursor: not-allowed;
}

.gka-generate-button:disabled small {
  color: #9ca19e;
}

.gka-safety-note {
  margin: 10px 0 0;
  color: var(--gka-soft);
  font-size: 8px;
  line-height: 1.55;
}

.gka-progress {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 170px;
  padding: clamp(26px, 3.5vw, 48px);
  border: 1px solid var(--gka-line-strong);
  background: var(--gka-forest);
  color: #f7f4e9;
}

.gka-progress-copy h2 {
  margin: 8px 0 7px;
  font-family: var(--gk-serif);
  font-size: 27px;
}

.gka-progress-copy > p:last-child {
  margin: 0;
  color: rgba(247, 244, 233, 0.64);
  font-size: 10px;
}

.gka-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.gka-progress li {
  position: relative;
  min-height: 60px;
  padding: 12px 9px 10px 18px;
  border-top: 1px solid rgba(247, 244, 233, 0.18);
  color: rgba(247, 244, 233, 0.44);
}

.gka-progress li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(247, 244, 233, 0.4);
  border-radius: 50%;
  background: var(--gka-forest);
  content: "";
}

.gka-progress li.is-active,
.gka-progress li.is-complete {
  color: #f7f4e9;
}

.gka-progress li.is-active::before,
.gka-progress li.is-complete::before {
  border-color: var(--gka-gold);
  background: var(--gka-gold);
}

.gka-progress li span,
.gka-progress li strong {
  display: block;
}

.gka-progress li span {
  margin-bottom: 7px;
  color: var(--gka-gold);
  font-size: 8px;
}

.gka-progress li strong {
  font-size: 10px;
}

.gka-progress > button {
  padding: 10px 12px;
  border: 1px solid rgba(247, 244, 233, 0.28);
  background: transparent;
  color: rgba(247, 244, 233, 0.76);
  cursor: pointer;
}

/* Live report v2: persisted orchestration, module status and research log. */
.gka-progress-v2 {
  display: block;
  min-height: 0;
}

.gka-progress-topline {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

.gka-progress-number {
  display: grid;
  justify-items: end;
}

.gka-progress-number strong {
  color: var(--gka-gold);
  font-family: var(--gk-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
}

.gka-progress-number span {
  color: rgba(247, 244, 233, 0.6);
  font-size: 9px;
}

.gka-progress-track {
  height: 3px;
  margin: 25px 0 30px;
  overflow: hidden;
  background: rgba(247, 244, 233, 0.13);
}

.gka-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gka-gold);
  transition: width 360ms ease;
}

.gka-progress-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
}

.gka-progress-v2 .gka-progress-stages {
  display: block;
}

.gka-progress-v2 .gka-progress-stages li {
  min-height: 66px;
  border-top: 0;
  border-left: 1px solid rgba(247, 244, 233, 0.18);
}

.gka-progress-v2 .gka-progress-stages li::before {
  top: 16px;
  left: -4px;
}

.gka-progress-stages small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  opacity: 0.6;
}

.gka-progress-v2 .gka-progress-modules {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gka-progress-v2 .gka-progress-modules li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  min-height: 72px;
  padding: 11px;
  border: 1px solid rgba(247, 244, 233, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.gka-progress-v2 .gka-progress-modules li::before {
  display: none;
}

.gka-progress-modules li small {
  display: block;
  margin-top: 6px;
  font-size: 7px;
  line-height: 1.4;
  opacity: 0.6;
}

.gka-progress-modules li i {
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.gka-progress-modules li.is-complete i { border-color: #7fb28d; background: #7fb28d; }
.gka-progress-modules li.is-running i { border-color: var(--gka-gold); background: var(--gka-gold); box-shadow: 0 0 0 4px rgba(164, 155, 97, 0.16); }
.gka-progress-modules li.is-error i { border-color: #d48b80; background: #d48b80; }

.gka-progress-log {
  max-height: 142px;
  margin-top: 18px;
  overflow: auto;
  border-top: 1px solid rgba(247, 244, 233, 0.16);
}

.gka-progress-log p {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 9px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(247, 244, 233, 0.08);
  color: rgba(247, 244, 233, 0.68);
  font-size: 8px;
  line-height: 1.5;
}

.gka-progress-log time { color: var(--gka-gold); }
.gka-progress-log .is-error { color: #efb1a8; }
.gka-progress-log .is-warn { color: #e0ca7f; }
.gka-progress-log .is-success { color: #9fd0ac; }

.gka-progress-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 24px;
}

.gka-progress-actions button {
  padding: 10px 14px;
  border: 1px solid rgba(247, 244, 233, 0.28);
  background: transparent;
  color: #f7f4e9;
  cursor: pointer;
}

.gka-task-hub-button {
  position: fixed;
  right: clamp(16px, 2.5vw, 34px);
  bottom: clamp(16px, 2.5vw, 30px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: var(--gka-forest);
  color: #fff;
  box-shadow: 0 14px 36px rgba(18, 48, 39, 0.24);
  cursor: pointer;
}

.gka-task-hub-button strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--gka-gold);
  color: #152b24;
}

.gka-unified-launcher { gap: 9px; min-height: 54px; padding-left: 10px; }
.gka-unified-launcher > img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.gka-unified-launcher > span { display: grid; gap: 2px; min-width: 120px; text-align: left; }
.gka-unified-launcher > span b { font-size: 11px; }
.gka-unified-launcher > span small { color: rgba(255, 255, 255, 0.68); font-size: 8px; }
.gka-unified-launcher > strong:empty { display: none; }

.gka-unified-drawer > section { width: min(680px, 96vw); }
.gka-unified-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--gka-line); }
.gka-unified-tabs button { min-height: 48px; border: 0; border-right: 1px solid var(--gka-line); background: #efeee6; color: var(--gka-muted); font: inherit; font-size: 10px; cursor: pointer; }
.gka-unified-tabs button:last-child { border-right: 0; }
.gka-unified-tabs button.is-active { background: #fffefa; color: var(--gka-forest); box-shadow: inset 0 -3px var(--gka-forest); font-weight: 750; }
.gka-unified-tabs button span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 50%; background: var(--gka-gold); color: #21352e; font-size: 8px; }
.gka-unified-panel[hidden] { display: none; }
.gka-unified-panel .gka-chat-main { min-height: calc(100vh - 150px); border: 0; }
.gka-unified-panel .gka-chat-main > header { position: static; }
.gka-unified-panel .gka-chat-messages { min-height: 250px; max-height: calc(100vh - 430px); }
.gka-chat-scope { margin: 14px 24px 0; padding: 10px 12px; border: 1px solid var(--gka-line); background: #eef2ed; color: var(--gka-muted); font-size: 9px; line-height: 1.55; }
.gka-chat-scope strong { color: var(--gka-forest); }
.gka-chat-scope input { accent-color: var(--gka-forest); }
.gka-brief-scope { display: grid; gap: 5px; padding: 13px 24px; border-bottom: 1px solid var(--gka-line); background: #e9eee9; }
.gka-brief-scope span { color: var(--gka-muted); font-size: 8px; }
.gka-brief-scope strong { color: var(--gka-forest); font-family: var(--gk-serif); font-size: 14px; }
.gka-embedded-workspace { margin-top: 24px; }
.gka-embedded-workspace[hidden] { display: none; }
.gka-embedded-workspace .gka-progress,
.gka-embedded-workspace .gka-report { margin: 0; }
.gk-selection-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gk-selection-actions [hidden] { display: none; }

.gka-task-drawer > section { width: min(620px, 94vw); }
.gka-task-drawer-actions { padding: 20px 25px 12px; }
.gka-task-drawer-actions p { margin: 10px 0 0; color: var(--gka-muted); font-size: 9px; line-height: 1.6; }
.gka-task-list { padding: 4px 25px 48px; }
.gka-task-card { margin-top: 12px; padding: 18px; border: 1px solid var(--gka-line-strong); background: #fffefa; }
.gka-task-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gka-task-card__head h3 { margin: 4px 0 6px; color: var(--gka-forest); font-family: var(--gk-serif); font-size: 19px; }
.gka-task-card__head p { margin: 0; color: var(--gka-muted); font-size: 9px; }
.gka-task-status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--gka-line-strong); color: var(--gka-muted); font-size: 8px; font-weight: 800; }
.gka-task-status.is-complete { border-color: #7fac8d; color: #37694c; }
.gka-task-status.is-running { border-color: var(--gka-gold); color: #7d6f2d; }
.gka-task-progress { height: 5px; margin: 16px 0 9px; overflow: hidden; background: #e8e6db; }
.gka-task-progress i { display: block; height: 100%; background: var(--gka-forest); }
.gka-task-meta { display: flex; justify-content: space-between; color: var(--gka-muted); font-size: 8px; }
.gka-task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.gka-task-actions button { padding: 8px 10px; border: 1px solid var(--gka-line-strong); background: transparent; color: var(--gka-ink); cursor: pointer; }
.gka-task-actions button:first-child { border-color: var(--gka-forest); background: var(--gka-forest); color: #fff; }
.gka-task-actions .is-delete { margin-left: auto; color: #9d4c43; }

.gka-brief-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gka-brief-modal[hidden] { display: none; }
.gka-experience-notice { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 18px; }
.gka-experience-notice[hidden] { display: none; }
.gka-experience-notice__backdrop { position: absolute; inset: 0; background: rgba(13, 28, 22, .64); backdrop-filter: blur(3px); }
.gka-experience-notice > section { position: relative; width: min(480px, 94vw); padding: 34px; border: 1px solid var(--gka-line-strong); background: #f7f5ee; box-shadow: 0 28px 90px rgba(9, 30, 23, .32); }
.gka-experience-notice h2 { margin: 8px 0 14px; color: var(--gka-forest); font-family: var(--gk-serif); font-size: 32px; font-weight: 600; }
.gka-experience-notice > section > p:not(.gk-kicker) { color: var(--gka-muted); line-height: 1.8; }
.gka-experience-notice > section > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.gka-experience-notice button, .gka-experience-notice a { min-height: 42px; padding: 10px 15px; border: 1px solid var(--gka-forest); background: transparent; color: var(--gka-forest); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.gka-experience-notice a { background: var(--gka-forest); color: #fff; }
.gka-brief-modal__backdrop { position: absolute; inset: 0; background: rgba(13, 28, 22, 0.64); backdrop-filter: blur(3px); }
.gka-brief-modal > section { position: relative; width: min(720px, 96vw); border: 1px solid var(--gka-line-strong); background: #f7f5ee; box-shadow: 0 28px 90px rgba(9, 30, 23, 0.32); }
.gka-brief-modal__mark { position: absolute; top: 28px; right: 32px; color: rgba(28, 73, 59, 0.18); font-family: var(--gk-serif); font-size: 42px; }
.gka-brief-modal h2 { max-width: 620px; margin: 10px 0; color: var(--gka-forest); font-family: var(--gk-serif); font-size: clamp(28px, 4vw, 44px); font-weight: 600; }
.gka-brief-modal > section > p:not(.gk-kicker) { max-width: 620px; color: var(--gka-muted); line-height: 1.8; }
.gka-brief-modal__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.gka-brief-modal__fields span { display: block; margin-bottom: 8px; color: var(--gka-muted); font-size: 9px; font-weight: 700; }
.gka-brief-modal__fields select { width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid var(--gka-line-strong); background: #fffefa; color: var(--gka-ink); }
.gka-brief-modal__actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; align-items: center; margin-top: 30px; }
.gka-brief-modal__actions button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--gka-line-strong); background: transparent; color: var(--gka-ink); cursor: pointer; }
.gka-brief-modal__actions button:last-child { border-color: var(--gka-forest); background: var(--gka-forest); color: #fff; }

.gka-brief-assistant > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gka-line);
  background: var(--gka-sheet);
}

.gka-assistant-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--gka-forest);
  color: #fff;
  font-family: var(--gk-serif);
  font-size: 21px;
}

.gka-brief-assistant > header > div:nth-child(2) { display: grid; gap: 3px; }
.gka-brief-assistant > header strong { color: var(--gka-forest); font-size: 12px; }
.gka-brief-assistant > header span { color: var(--gka-muted); font-size: 8px; }
.gka-brief-assistant > header span i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #5c9a6d; }
.gka-brief-assistant > header small { margin-left: auto; color: var(--gka-muted); font-size: 9px; }
.gka-brief-conversation { min-height: 210px; max-height: 350px; overflow: auto; padding: 28px 24px 12px; }
.gka-brief-conversation article { display: flex; gap: 9px; align-items: flex-end; margin-bottom: 16px; }
.gka-brief-conversation article > span { display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--gka-forest); color: #fff; font-size: 7px; }
.gka-brief-conversation article.is-user { justify-content: flex-end; }
.gka-brief-conversation article.is-user > span { order: 2; background: var(--gka-gold); color: #21352e; }
.gka-brief-conversation article > div { max-width: 78%; padding: 12px 15px; border: 1px solid var(--gka-line); border-radius: 4px 16px 16px 16px; background: #fff; color: #33473f; box-shadow: 0 4px 14px rgba(19, 53, 42, 0.05); }
.gka-brief-conversation article.is-user > div { border-radius: 16px 4px 16px 16px; background: #e5ede8; }
.gka-brief-conversation p { margin: 0; font-size: 11px; line-height: 1.75; }
.gka-brief-conversation p + p { margin-top: 5px; }
.gka-brief-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px 61px; }
.gka-brief-replies button { padding: 9px 12px; border: 1px solid rgba(28, 73, 59, 0.35); border-radius: 999px; background: #fff; color: var(--gka-forest); cursor: pointer; }
.gka-brief-replies button:hover { border-color: var(--gka-forest); background: var(--gka-forest); color: #fff; }
.gka-brief-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 24px; padding: 10px; border: 1px solid var(--gka-line-strong); background: #fff; }
.gka-brief-composer input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--gka-ink); }
.gka-brief-composer button { padding: 8px 14px; border: 0; background: var(--gka-forest); color: #fff; cursor: pointer; }
.gka-brief-footer { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 8px; align-items: center; padding: 16px 24px 20px; }
.gka-brief-footer button { border: 0; background: transparent; color: var(--gka-muted); cursor: pointer; font-size: 9px; }
.gka-brief-footer #confirmResearchBriefButton { padding: 9px 13px; background: var(--gka-forest); color: #fff; }

.gka-report {
  border: 1px solid var(--gka-line-strong);
  background: #e9e8df;
}

.gka-report-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 3vw, 42px);
  border-bottom: 1px solid var(--gka-line);
}

.gka-report-header > button,
.gka-report-actions button,
.gka-report-nav a {
  border: 0;
  background: transparent;
  color: var(--gka-forest);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-decoration: none;
}

.gka-report-header h2 {
  margin: 8px 0 6px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
}

.gka-report-header > div > p:last-child {
  margin: 0;
  color: var(--gka-muted);
  font-size: 9px;
}

.gka-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gka-report-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--gka-line-strong);
  background: #f6f4ec;
}

.gka-report-nav {
  position: sticky;
  top: 68px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  border-bottom: 1px solid var(--gka-line-strong);
  background: rgba(244, 242, 233, 0.96);
}

.gka-report-nav > span {
  align-self: center;
  padding: 0 16px;
  color: var(--gka-muted);
  font-size: 8px;
  white-space: nowrap;
}

.gka-report-nav a {
  padding: 14px 18px;
  border-right: 1px solid var(--gka-line);
  text-align: center;
}

.gka-report-nav a:hover {
  background: var(--gka-forest);
  color: #f7f4e9;
}

.gka-report-body {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 52px;
}

.gka-report-section {
  margin-top: 18px;
  padding: clamp(28px, 4.2vw, 58px);
  border-left: 3px solid var(--gka-gold);
  background: var(--gka-sheet);
}

.gka-live-report-layout {
  position: relative;
}

.gka-live-chapter {
  scroll-margin-top: 125px;
}

.gka-live-sections {
  display: grid;
  gap: 18px;
  margin-top: 25px;
}

.gka-live-section {
  scroll-margin-top: 126px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--gka-line);
  background: #fffefa;
}

.gka-live-section.is-evidence_gap {
  border-color: rgba(164, 155, 97, 0.46);
}

.gka-live-section > header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gka-line);
}

.gka-live-section > header span {
  color: var(--gka-gold);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.gka-live-section > header h4 {
  margin: 7px 0 6px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 600;
}

.gka-live-section > header p {
  max-width: 720px;
  margin: 0;
  color: var(--gka-muted);
  font-size: 10px;
  line-height: 1.65;
}

.gka-section-quality {
  display: grid;
  min-width: 94px;
  padding: 8px 10px;
  border-left: 1px solid var(--gka-line);
  color: var(--gka-muted);
}

.gka-section-quality span {
  font-size: 8px;
  letter-spacing: 0.04em;
}

.gka-section-quality strong {
  margin-top: 3px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 20px;
  font-weight: 600;
}

.gka-section-quality small {
  margin-left: 2px;
  color: var(--gka-muted);
  font-family: inherit;
  font-size: 8px;
}

.gka-section-situation > p {
  margin: 24px 0;
  color: #46564e;
  font-family: var(--gk-serif);
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-line;
}

.gka-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--gka-line);
}

.gka-metric-row article {
  min-height: 100px;
  padding: 17px;
  border-right: 1px solid var(--gka-line);
}

.gka-metric-row strong,
.gka-metric-row span,
.gka-metric-row small { display: block; }
.gka-metric-row strong { color: var(--gka-forest); font-family: var(--gk-serif); font-size: 25px; }
.gka-metric-row span { margin-top: 5px; font-size: 9px; font-weight: 700; }
.gka-metric-row small { margin-top: 8px; color: var(--gka-muted); font-size: 8px; }

.gka-live-chart {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--gka-line);
  background: #f7f6f0;
}

.gka-live-chart figcaption {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.gka-live-chart figcaption strong,
.gka-live-chart figcaption small { display: block; }
.gka-live-chart figcaption strong { color: var(--gka-forest); font-family: var(--gk-serif); font-size: 18px; }
.gka-live-chart figcaption small { margin-top: 5px; color: var(--gka-muted); font-size: 8px; }
.gka-live-chart figcaption > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; font-size: 8px; }
.gka-live-chart figcaption span i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--legend); }
.gka-live-chart > p,
.gka-chart-empty { margin: 7px 0 0; color: var(--gka-muted); font-size: 8px; line-height: 1.55; }

.gka-chart-svg {
  display: block;
  width: 100%;
  max-height: 330px;
  margin-top: 14px;
  overflow: visible;
}

.gka-chart-axis { stroke: rgba(28, 61, 48, 0.25); stroke-width: 1; }
.gka-chart-axis text { stroke: none; fill: var(--gka-muted); font-size: 9px; }
.gka-chart-donut .is-total { fill: var(--gka-forest); font-family: var(--gk-serif); font-size: 22px; }

.gka-opportunity-risk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.gka-opportunity-risk article { padding: 18px; border-top: 3px solid #3f7461; background: #edf3ef; }
.gka-opportunity-risk article:last-child { border-color: #a65d51; background: #f5eeeb; }
.gka-opportunity-risk span { color: var(--gka-muted); font-size: 7px; letter-spacing: 0.13em; }
.gka-opportunity-risk h5 { margin: 6px 0 8px; font-family: var(--gk-serif); font-size: 20px; }
.gka-opportunity-risk p { margin: 0; color: #536159; font-size: 10px; line-height: 1.75; }

.gka-implication-box { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--gka-gold); background: #f2f0e6; }
.gka-implication-box > strong { font-family: var(--gk-serif); font-size: 17px; }
.gka-implication-box ol { margin: 10px 0 0; padding-left: 19px; }
.gka-implication-box li { margin: 7px 0; color: #526159; font-size: 10px; line-height: 1.65; }

.gka-findings { margin: 20px 0; padding: 0; list-style: none; }
.gka-findings li { display: grid; grid-template-columns: 45px 1fr auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--gka-line); }
.gka-findings li > span { align-self: start; padding: 3px 5px; border: 1px solid var(--gka-line); color: var(--gka-muted); font-size: 7px; text-align: center; }
.gka-findings li.is-fact > span { border-color: #5e8f7d; color: #356554; }
.gka-findings li.is-gap > span { border-color: #b8974c; color: #8a6b24; }
.gka-findings p { margin: 0; color: #46564e; font-size: 10px; line-height: 1.65; }
.gka-findings small { color: var(--gka-muted); font-size: 7px; }
.gka-citation { margin-left: 3px; color: #856b2b; font-size: 8px; font-weight: 750; text-decoration: none; }

.gka-gap-box { margin-top: 16px; padding: 12px 15px; border: 1px dashed rgba(164, 155, 97, 0.65); }
.gka-gap-box summary { color: #79652f; font-size: 9px; font-weight: 700; cursor: pointer; }
.gka-gap-box li { margin: 6px 0; color: var(--gka-muted); font-size: 9px; }

.gka-refine-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 14px;
  padding: 19px 20px;
  border: 1px solid rgba(28, 61, 48, 0.42);
  border-left: 4px solid var(--gka-forest);
  background: linear-gradient(120deg, #edf3ef 0%, #f7f5ea 100%);
}

.gka-refine-action > div > span {
  display: block;
  color: var(--gka-gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.gka-refine-action strong {
  display: block;
  margin-top: 6px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 17px;
  font-weight: 600;
}

.gka-refine-action p {
  margin: 5px 0 0;
  color: var(--gka-muted);
  font-size: 9px;
  line-height: 1.6;
}

.gka-refine-action button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-width: 185px;
  min-height: 46px;
  padding: 0 15px 0 17px;
  border: 1px solid var(--gka-forest);
  background: var(--gka-forest);
  color: #fffefa;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.gka-refine-action button:hover,
.gka-refine-action button:focus-visible {
  background: #285642;
  transform: translateY(-1px);
}

.gka-refine-action button i {
  color: #d8ce91;
  font-size: 16px;
  font-style: normal;
}

.gka-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gka-summary-grid article { padding: 18px; border-top: 3px solid var(--gka-gold); background: #f2f0e8; }
.gka-summary-grid .is-opportunity { border-color: #4c806d; }
.gka-summary-grid .is-risk { border-color: #a65d51; }
.gka-summary-grid h4 { margin: 0 0 10px; font-family: var(--gk-serif); font-size: 18px; }
.gka-summary-grid ul { margin: 0; padding-left: 17px; }
.gka-summary-grid li { margin: 7px 0; color: #526159; font-size: 9px; line-height: 1.55; }

.gka-endnotes ol { margin: 24px 0 0; padding: 0; list-style: none; }
.gka-endnotes li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--gka-line); }
.gka-endnotes li > span { color: var(--gka-gold); font-size: 9px; }
.gka-endnotes strong { font-size: 10px; line-height: 1.55; }
.gka-endnotes p { margin: 5px 0; color: var(--gka-muted); font-size: 8px; }
.gka-endnotes a { display: block; overflow-wrap: anywhere; color: var(--gka-forest-2); font-size: 8px; }

.gka-report-body.is-columns {
  width: calc(100% - 30px);
  max-width: none;
}

.gka-report-body.is-columns .gka-executive-summary,
.gka-report-body.is-columns .gka-endnotes { margin-right: auto; margin-left: auto; }
.gka-report-body.is-columns .gka-live-chapter { display: inline-block; width: calc(33.333% - 14px); margin-right: 14px; vertical-align: top; }
.gka-report-body.is-columns .gka-live-chapter:last-of-type { margin-right: 0; }
.gka-report-body.is-columns .gka-live-section > header { display: block; }
.gka-report-body.is-columns .gka-refine-action { grid-template-columns: 1fr; }
.gka-report-body.is-columns .gka-refine-action button { width: 100%; }
.gka-report-body.is-columns .gka-opportunity-risk,
.gka-report-body.is-columns .gka-summary-grid { grid-template-columns: 1fr; }
.gka-report-body.is-columns .gka-live-chart figcaption { display: block; }

.gka-section-workbench {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(620px, 94vw);
  overflow: auto;
  padding: 30px;
  border-left: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
  box-shadow: -22px 0 60px rgba(21, 43, 34, 0.18);
}

.gka-section-workbench > button:first-child { float: right; border: 1px solid var(--gka-line); background: transparent; padding: 7px 9px; cursor: pointer; }
.gka-section-workbench h3 { margin: 8px 0; font-family: var(--gk-serif); font-size: 30px; }
.gka-section-workbench > p { color: var(--gka-muted); font-size: 10px; line-height: 1.65; }
.gka-section-workbench label span { display: block; margin: 22px 0 8px; font-size: 9px; font-weight: 700; }
.gka-section-workbench textarea { width: 100%; min-height: 130px; padding: 13px; border: 1px solid var(--gka-line-strong); background: #fffefa; color: var(--gka-ink); font: inherit; font-size: 11px; line-height: 1.6; resize: vertical; }
.gka-section-workbench > button:not(:first-child) { width: 100%; min-height: 43px; margin-top: 10px; border: 0; background: var(--gka-forest); color: #fff; cursor: pointer; }

.gka-diff { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gka-line); }
.gka-diff > h4 { font-family: var(--gk-serif); font-size: 21px; }
.gka-diff > article { margin: 15px 0; border: 1px solid var(--gka-line); }
.gka-diff > article > strong { display: block; padding: 9px 12px; background: #e9e8df; font-size: 9px; }
.gka-diff > article > div { padding: 11px 12px; }
.gka-diff > article > div.is-new { background: #edf3ef; }
.gka-diff > article span { color: var(--gka-muted); font-size: 7px; text-transform: uppercase; }
.gka-diff > article p { margin: 5px 0 0; color: #526159; font-size: 9px; line-height: 1.6; }
.gka-diff-actions { display: flex; gap: 8px; }
.gka-diff-actions button { flex: 1; padding: 11px; border: 1px solid var(--gka-forest); background: var(--gka-forest); color: #fff; cursor: pointer; }
.gka-diff-actions button:last-child { background: transparent; color: var(--gka-forest); }

#versionsList { padding: 16px 25px 40px; }
.gka-version-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--gka-line); }
.gka-version-item > span { color: var(--gka-gold); font-family: var(--gk-serif); }
.gka-version-item strong,
.gka-version-item small { display: block; }
.gka-version-item strong { font-size: 10px; }
.gka-version-item small { margin-top: 5px; color: var(--gka-muted); font-size: 8px; }
.gka-version-item button { padding: 7px 9px; border: 1px solid var(--gka-line); background: transparent; color: var(--gka-forest); font-size: 8px; cursor: pointer; }

.gka-report-section__head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gka-line);
}

.gka-report-section__head span {
  color: var(--gka-gold);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.gka-report-section__head h3 {
  margin: 7px 0 0;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 600;
}

.gka-report-section__head small {
  color: var(--gka-soft);
  font-size: 9px;
}

.gka-report-lede {
  max-width: 1060px;
  margin: 25px 0 30px;
  color: #526159;
  font-family: var(--gk-serif);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
}

.gka-report-headline {
  max-width: 950px;
  margin: 28px 0 14px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(21px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.35;
}

.gka-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.gka-kpi {
  display: grid;
  min-height: 160px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--gka-line);
  border-top: 3px solid rgba(164, 155, 97, 0.7);
  background: #fffefa;
}

.gka-kpi:first-child {
  border-color: var(--gka-forest);
  background: var(--gka-forest);
}

.gka-kpi > span {
  justify-self: end;
  color: var(--gka-gold);
  font-size: 8px;
}

.gka-kpi strong {
  margin: 8px 0 14px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
}

.gka-kpi h4 {
  margin: 0;
  color: var(--gka-forest);
  font-size: 11px;
}

.gka-kpi p,
.gka-kpi small {
  color: var(--gka-muted);
  font-size: 8px;
  line-height: 1.55;
}

.gka-kpi p {
  margin: 7px 0 10px;
}

.gka-kpi small {
  margin-top: auto;
}

.gka-kpi:first-child strong,
.gka-kpi:first-child h4 {
  color: #d1b965;
}

.gka-kpi:first-child p,
.gka-kpi:first-child small {
  color: rgba(247, 244, 233, 0.65);
}

.gka-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.gka-insight-card {
  min-height: 130px;
  padding: 19px;
  border: 1px solid var(--gka-line);
  background: #f1f0e8;
}

.gka-insight-card span {
  color: var(--gka-gold);
  font-size: 8px;
  font-weight: 760;
}

.gka-insight-card h4 {
  margin: 8px 0 10px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 18px;
}

.gka-insight-card p {
  margin: 0;
  color: var(--gka-muted);
  font-size: 10px;
  line-height: 1.7;
}

.gka-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  table-layout: fixed;
}

.gka-table th,
.gka-table td {
  padding: 15px 14px;
  border: 1px solid var(--gka-line);
  vertical-align: top;
  text-align: left;
}

.gka-table th {
  background: #ecebe3;
  color: var(--gka-muted);
  font-size: 9px;
  font-weight: 700;
}

.gka-table td {
  color: #526159;
  font-size: 10px;
  line-height: 1.7;
}

.gka-table td:first-child {
  color: var(--gka-forest);
  font-weight: 700;
}

.gka-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gka-share-card {
  padding: 20px;
  border: 1px solid var(--gka-line);
  background: #f1f0e8;
}

.gka-share-card header {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--gka-line);
}

.gka-share-card h4 {
  margin: 0 0 7px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 19px;
}

.gka-share-card header p,
.gka-share-card footer {
  margin: 0;
  color: var(--gka-muted);
  font-size: 8px;
  line-height: 1.5;
}

.gka-share-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) minmax(0, 2fr) 40px;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
}

.gka-share-row span,
.gka-share-row strong {
  font-size: 9px;
}

.gka-share-row meter {
  height: 6px;
  width: 100%;
  border: 0;
  background: #d8d9d2;
}

.gka-share-row meter::-webkit-meter-bar {
  border: 0;
  border-radius: 0;
  background: #d8d9d2;
  box-shadow: none;
}

.gka-share-row meter::-webkit-meter-optimum-value {
  background: var(--gka-forest-2);
}

.gka-share-row meter::-moz-meter-bar {
  background: var(--gka-forest-2);
}

.gka-share-row b {
  color: var(--gka-forest);
  font-size: 9px;
  text-align: right;
}

.gka-report-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(164, 155, 97, 0.48);
  color: var(--gka-muted);
  font-size: 9px;
  line-height: 1.65;
}

.gka-evidence-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.gka-evidence-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 22, 0.48);
}

.gka-evidence-drawer > section {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 92vw);
  overflow: auto;
  border-left: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
  box-shadow: -22px 0 60px rgba(21, 43, 34, 0.14);
}

.gka-evidence-drawer > section > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 1px solid var(--gka-line);
  background: var(--gka-sheet);
}

.gka-evidence-drawer h2 {
  margin: 6px 0 0;
  font-family: var(--gk-serif);
  font-size: 28px;
}

.gka-evidence-drawer header button {
  padding: 8px 10px;
  border: 1px solid var(--gka-line-strong);
  background: transparent;
  color: var(--gka-ink);
  cursor: pointer;
}

#evidenceList {
  padding: 16px 25px 40px;
}

.gka-evidence-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--gka-line);
}

.gka-evidence-item > span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 6px;
  border: 1px solid var(--gka-line);
  color: var(--gka-muted);
  font-size: 8px;
}

.gka-evidence-item h3 {
  margin: 0 0 7px;
  color: var(--gka-forest);
  font-family: var(--gk-serif);
  font-size: 17px;
  line-height: 1.45;
}

.gka-evidence-item p {
  margin: 0 0 9px;
  color: var(--gka-muted);
  font-size: 9px;
}

.gka-evidence-item a {
  color: var(--gka-forest-2);
  font-size: 9px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.gka-chat-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
  min-height: 690px;
  border: 1px solid var(--gka-line-strong);
  background: var(--gka-sheet);
}

.gka-chat-sidebar {
  padding: 31px;
  border-right: 1px solid var(--gka-line-strong);
  background: #e9e8df;
}

.gka-chat-sidebar h2 {
  margin: 8px 0 25px;
  font-family: var(--gk-serif);
  font-size: 28px;
}

.gka-chat-sidebar button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--gka-forest);
  background: var(--gka-forest);
  color: #f7f4e9;
  cursor: pointer;
}

.gka-chat-sidebar > p {
  margin: 22px 0 0;
  color: var(--gka-muted);
  font-size: 9px;
  line-height: 1.7;
}

.gka-chat-main {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto auto;
  min-width: 0;
}

.gka-chat-main > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 1px solid var(--gka-line);
}

.gka-chat-main header h2 {
  margin: 7px 0 0;
  font-family: var(--gk-serif);
  font-size: 25px;
}

.gka-chat-main header > span {
  padding: 6px 8px;
  border: 1px solid var(--gka-line);
  color: var(--gka-muted);
  font-size: 8px;
}

.gka-chat-thinking {
  margin: 0 0 15px;
  border: 1px solid rgba(36, 74, 64, 0.16);
  background: rgba(239, 239, 231, 0.7);
}

.gka-chat-thinking summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--gka-forest);
  cursor: pointer;
  list-style: none;
}

.gka-chat-thinking summary span { font-size: 10px; font-weight: 720; }
.gka-chat-thinking summary small { color: var(--gka-muted); font-size: 8px; }
.gka-chat-thinking summary::-webkit-details-marker { display: none; }
.gka-chat-thinking ol { margin: 0; padding: 0 12px 12px; list-style: none; }
.gka-chat-thinking li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(36, 74, 64, 0.1); }
.gka-chat-thinking li i { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--gka-gold); }
.gka-chat-thinking li.is-running i { animation: gka-pulse 1s ease-in-out infinite; }
.gka-chat-thinking li.is-pending i { border: 1px solid var(--gka-line-strong); background: transparent; }
.gka-chat-thinking li strong, .gka-chat-thinking li small { display: block; }
.gka-chat-thinking li strong { color: var(--gka-ink); font-size: 9px; }
.gka-chat-thinking li small { margin-top: 2px; color: var(--gka-muted); font-size: 8px; line-height: 1.55; }

.gka-chat-messages article > div > ol { margin: 9px 0; padding-left: 20px; }
.gka-chat-messages article > div > ol li { margin: 6px 0; line-height: 1.75; }
.gka-chat-sources { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gka-line); }
.gka-chat-sources > strong { color: var(--gka-muted); font-size: 8px; letter-spacing: 0.08em; }
.gka-chat-sources a { display: grid; grid-template-columns: 20px 1fr; gap: 7px; align-items: start; color: var(--gka-forest); font-size: 9px; line-height: 1.55; text-decoration: none; }
.gka-chat-sources a span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--gka-line-strong); font-size: 8px; }

@keyframes gka-pulse { 50% { opacity: .3; transform: scale(.75); } }

.gka-chat-messages {
  overflow: auto;
  padding: 32px clamp(24px, 7vw, 100px);
}

.gka-chat-messages article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  max-width: 840px;
  margin: 0 auto 21px;
}

.gka-chat-messages article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--gka-forest);
  color: #d8c16e;
  font-size: 8px;
  font-weight: 800;
}

.gka-chat-messages article.is-user > span {
  background: #d8d8d0;
  color: var(--gka-forest);
}

.gka-chat-messages article > div {
  padding: 13px 16px;
  border: 1px solid var(--gka-line);
  background: #f1f0e8;
}

.gka-chat-messages article.is-user > div {
  background: #fffefa;
}

.gka-chat-messages p {
  margin: 0;
  color: #526159;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.gka-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 clamp(24px, 7vw, 100px) 13px;
}

.gka-chat-prompts button {
  padding: 8px 10px;
  border: 1px solid var(--gka-line);
  background: #f1f0e8;
  color: var(--gka-muted);
  cursor: pointer;
  font-size: 9px;
}

.gka-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 0 clamp(24px, 7vw, 100px);
  padding: 9px;
  border: 1px solid var(--gka-line-strong);
  background: #fffefa;
}

.gka-chat-composer textarea {
  min-height: 56px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--gka-ink);
  font: inherit;
  font-size: 11px;
  resize: none;
}

.gka-chat-composer button {
  min-width: 76px;
  border: 1px solid var(--gka-forest);
  background: var(--gka-forest);
  color: #f7f4e9;
  cursor: pointer;
}

.gka-chat-status {
  margin: 9px clamp(24px, 7vw, 100px) 22px;
  color: var(--gka-soft);
  font-size: 8px;
}

.gka-chat-status button {
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid var(--gka-line-strong);
  background: transparent;
  color: var(--gka-forest);
  cursor: pointer;
  font-size: 8px;
}

.gka-error {
  padding: 16px 18px;
  border: 1px solid rgba(139, 74, 67, 0.35);
  background: rgba(139, 74, 67, 0.07);
  color: var(--gka-danger);
  font-size: 10px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .gka-report-builder {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  }

  .gka-country-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gka-country-snapshot > div:nth-child(2) {
    border-right: 0;
  }

  .gka-country-snapshot > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gka-line);
  }

  .gka-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gka-brief-modal__fields { grid-template-columns: 1fr; }
  .gka-brief-modal > section { max-height: 92vh; overflow: auto; }
  .gka-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(calc(100% - 24px), 1400px);
  }

  .gka-hero {
    grid-template-columns: 1fr;
  }

  .gka-hero > aside {
    min-height: 64px;
  }

  .gka-mode-tab {
    grid-template-columns: 28px 1fr auto;
  }

  .gka-mode-tab small {
    display: none;
  }

  .gka-report-builder,
  .gka-chat-layout {
    grid-template-columns: 1fr;
  }

  .gka-map-panel,
  .gka-chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--gka-line-strong);
  }

  .gka-progress {
    grid-template-columns: 1fr;
  }

  .gka-report-header {
    grid-template-columns: 1fr;
  }

  .gka-report-actions {
    justify-self: start;
  }

  .gka-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gka-mode-note { align-items: flex-start; flex-direction: column; }
  .gka-brief-modal { padding: 8px; }
  .gka-brief-modal > section { width: 100%; max-height: 96vh; }
  .gka-brief-conversation { min-height: 190px; padding: 22px 14px 10px; }
  .gka-brief-conversation article > div { max-width: 86%; }
  .gka-brief-replies { padding: 0 14px 14px 50px; }
  .gka-brief-composer { margin: 0 14px; }
  .gka-brief-footer { grid-template-columns: auto 1fr auto; padding: 14px; }
  .gka-brief-footer span { display: none; }
  .gka-brief-footer #confirmResearchBriefButton { grid-column: 1 / -1; }
  .gka-task-hub-button { right: 12px; bottom: 12px; }
  .gka-unified-launcher > span { min-width: 0; }
  .gka-unified-launcher > span small { display: none; }
  .gka-unified-drawer > section { width: 100%; }
  .gka-unified-panel .gka-chat-main { min-height: calc(100dvh - 138px); }
  .gka-unified-panel .gka-chat-messages { max-height: calc(100dvh - 390px); }
  .gka-topbar .gk-brand span {
    display: none;
  }

  .gka-product-identity {
    min-width: 0;
    padding-left: 16px;
  }

  .gka-product-identity span {
    font-size: 14px;
  }

  .gka-product-identity small {
    font-size: 7px;
  }

  .gka-main {
    padding-bottom: 36px;
  }

  .gka-hero {
    padding: 48px 18px 30px;
  }

  .gka-mode-bar,
  .gka-mode-panel {
    margin-right: 14px;
    margin-left: 14px;
  }

  .gka-mode-tabs {
    grid-template-columns: 1fr;
  }

  .gka-intent-brief,
  .gka-intent-brief > div {
    grid-template-columns: 1fr;
  }

  .gka-mode-tab {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--gka-line);
  }

  .gka-panel-head {
    align-items: start;
    flex-direction: column;
  }

  .gka-select-field,
  .gka-select-field select {
    width: 100%;
  }

  .gka-map-panel,
  .gka-brief-panel {
    padding: 20px;
  }

  .gka-map {
    min-height: 320px;
  }

  .gka-map .gkn-map-viewport,
  .gka-map .gkn-vector-map {
    min-height: 250px;
  }

  .gka-compact-fields,
  .gka-country-snapshot,
  .gka-kpi-grid,
  .gka-share-grid {
    grid-template-columns: 1fr;
  }

  .gka-country-snapshot > div {
    border-right: 0;
    border-bottom: 1px solid var(--gka-line);
  }

  .gka-progress ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gka-progress-topline,
  .gka-live-chart figcaption,
  .gka-live-section > header {
    align-items: start;
    flex-direction: column;
  }

  .gka-progress-number {
    justify-items: start;
  }

  .gka-progress-layout {
    grid-template-columns: 1fr;
  }

  .gka-progress-v2 .gka-progress-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gka-progress-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gka-report-nav {
    top: 58px;
  }

  .gka-report-nav a {
    padding: 12px 5px;
    font-size: 9px;
  }

  .gka-report-nav > span {
    display: none;
  }

  .gka-report-body {
    width: calc(100% - 20px);
  }

  .gka-report-section {
    padding: 25px 20px;
  }

  .gka-report-section__head {
    align-items: start;
    flex-direction: column;
  }

  .gka-opportunity-risk,
  .gka-summary-grid {
    grid-template-columns: 1fr;
  }

  .gka-findings li {
    grid-template-columns: 42px 1fr;
  }

  .gka-findings small {
    grid-column: 2;
  }

  .gka-report-body.is-columns .gka-live-chapter {
    display: block;
    width: auto;
    margin-right: 0;
  }

  .gka-table {
    display: block;
    overflow-x: auto;
  }

  .gka-table th,
  .gka-table td {
    min-width: 150px;
  }

  .gka-chat-messages,
  .gka-chat-prompts {
    padding-right: 18px;
    padding-left: 18px;
  }

  .gka-chat-composer {
    margin-right: 18px;
    margin-left: 18px;
  }

  .gka-refine-action {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .gka-refine-action button {
    width: 100%;
  }
}

@media print {
  .gk-topbar,
  .gka-hero,
  .gka-mode-bar,
  .gka-report-header > button,
  .gka-report-actions,
  .gka-report-nav,
  .gka-evidence-drawer,
  .gka-section-workbench,
  .gka-refine-action {
    display: none !important;
  }

  body,
  .gka-report,
  .gka-report-section {
    background: #fff !important;
  }

  .gka-mode-panel {
    margin: 0;
  }

  .gka-report-header {
    grid-template-columns: 1fr;
    padding: 0 0 24px;
  }

  .gka-report-body {
    width: 100%;
    margin: 0;
  }

  .gka-report-body.is-columns .gka-live-chapter {
    display: block;
    width: auto;
    margin-right: 0;
  }

  .gka-live-chart,
  .gka-live-section,
  .gka-opportunity-risk article,
  .gka-summary-grid article {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .gka-report-section {
    break-inside: avoid;
    margin: 0 0 18px;
    box-shadow: none;
  }
}

/* Live report collaboration upgrade */
.gka-brief-modal > section { width: min(1180px, 96vw); max-height: 92vh; overflow: auto; }
.gka-stage-intro { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.gka-stage-intro h3 { margin: 0 0 7px; color: var(--gka-ink); font-family: var(--gk-serif); font-size: 23px; }
.gka-stage-intro p { margin: 0; color: var(--gka-muted); font-size: 10px; line-height: 1.6; }
.gka-stage-intro > span { padding: 5px 12px; border-radius: 999px; background: #ebeae4; color: var(--gka-muted); font-size: 9px; }
.gka-brief-conversation:has(.gka-stage-intro) { min-height: 0; padding-bottom: 14px; }
.gka-brief-replies:has(.gka-stage-grid) { display: block; padding: 0 24px 20px; }
.gka-stage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gka-stage-grid .gka-stage-card { display: grid; justify-items: center; min-height: 170px; padding: 19px 8px 16px; border: 1px solid var(--gka-line); border-radius: 16px; background: #fffefa; color: var(--gka-ink); text-align: center; }
.gka-stage-grid .gka-stage-card:hover { border-color: var(--gka-gold); background: #f4f0e4; color: var(--gka-forest); }
.gka-stage-grid .gka-stage-card.is-selected { border: 2px solid var(--gka-forest); background: #e7eeea; color: var(--gka-forest); box-shadow: 0 8px 26px rgba(28, 73, 59, .12); }
.gka-stage-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f0f0ed; font-family: var(--gk-serif); font-size: 18px; }
.gka-stage-card.is-selected > span { background: var(--gka-forest); color: #fff; }
.gka-stage-card strong { margin-top: 14px; font-size: 13px; }
.gka-stage-card small { margin-top: 12px; color: var(--gka-muted); font-size: 9px; line-height: 1.65; }

.gka-progress-log p { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; }
.gka-progress-log p a { grid-column: 2; color: #bad8cd; font-size: 8px; line-height: 1.5; text-decoration: underline; text-underline-offset: 2px; }

.gka-section-narrator { margin: 20px 0; padding: 18px 21px; border-left: 3px solid var(--gka-gold); background: #f4f0e4; }
.gka-section-narrator > span { color: var(--gka-gold); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.gka-section-narrator p { margin: 8px 0 0; color: #44574f; font-size: 10px; line-height: 1.75; }
.gka-section-livebar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 26px; padding: 16px 18px; border: 1px solid var(--gka-line); background: #f7f6f0; }
.gka-section-livebar > div:first-child { display: grid; gap: 4px; }
.gka-section-livebar span { color: var(--gka-gold); font-size: 7px; letter-spacing: .12em; }
.gka-section-livebar strong { font-size: 10px; }
.gka-section-livebar small { color: var(--gka-muted); font-size: 8px; }
.gka-section-livebar > div:last-child { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.gka-section-livebar button { padding: 8px 10px; border: 1px solid var(--gka-line-strong); background: #fff; color: var(--gka-forest); cursor: pointer; font-size: 8px; }
.gka-section-livebar button:hover { background: var(--gka-forest); color: #fff; }
.gka-section-activity { padding: 10px 18px; border: 1px solid var(--gka-line); border-top: 0; }
.gka-section-activity summary { cursor: pointer; color: var(--gka-forest); font-size: 8px; font-weight: 700; }
.gka-section-activity li { margin-top: 8px; color: var(--gka-muted); font-size: 8px; line-height: 1.5; }
.gka-section-activity time { margin-right: 8px; color: var(--gka-gold); }

.gka-revision-summary > span { color: var(--gka-gold); font-size: 8px; letter-spacing: .1em; }
.gka-revision-summary h4 { margin: 8px 0 15px; font-family: var(--gk-serif); font-size: 22px; }
.gka-revision-summary ol { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: revision; }
.gka-revision-summary ol li { position: relative; padding: 13px 14px 13px 46px; border: 1px solid var(--gka-line); background: #fff; counter-increment: revision; }
.gka-revision-summary ol li::before { content: counter(revision); position: absolute; left: 14px; top: 14px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--gka-forest); color: #fff; font-size: 8px; }
.gka-revision-summary li strong { font-size: 10px; }
.gka-revision-summary li p { margin: 5px 0; color: #384c43; font-size: 10px; line-height: 1.6; }
.gka-revision-summary li small { color: var(--gka-muted); font-size: 8px; }
.gka-revision-summary .is-material { padding: 12px; background: #f4f0e4; color: #4c5e55; font-size: 9px; line-height: 1.6; }
.gka-revision-summary .is-material strong { display: block; color: var(--gka-gold); }
.gka-revision-evidence { display: grid; gap: 7px; margin: 14px 0; padding: 13px; border: 1px solid var(--gka-line); }
.gka-revision-evidence strong { font-size: 9px; }
.gka-revision-evidence a, .gka-revision-evidence span { color: var(--gka-forest); font-size: 8px; line-height: 1.5; }
.gka-revision-summary details, .gka-field-diff { margin: 14px 0; }
.gka-revision-summary summary, .gka-field-diff > summary { cursor: pointer; color: var(--gka-forest); font-size: 9px; font-weight: 700; }
.gka-field-diff > article { margin: 12px 0; border: 1px solid var(--gka-line); }
.gka-field-diff > article > strong, .gka-field-diff > article > div { display: block; padding: 9px 12px; }
.gka-field-diff > article > strong { background: #e9e8df; font-size: 9px; }
.gka-field-diff > article > div.is-new { background: #edf3ef; }
.gka-field-diff span { color: var(--gka-muted); font-size: 7px; }
.gka-field-diff p { font-size: 9px; line-height: 1.6; }
.gka-diff-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.gka-diff-actions button:nth-child(2) { background: #efe8d5; color: var(--gka-forest); }
.gka-diff-actions button:disabled { opacity: .45; cursor: not-allowed; }

.gka-material-drawer > section { width: min(660px, 96vw); }
.gka-material-drawer > section > p, .gka-material-drawer label, .gka-material-drawer > section > button, .gka-material-drawer > section > aside, #materialStatus, #materialAnalysis { margin-right: 26px; margin-left: 26px; }
.gka-material-drawer label { display: grid; gap: 7px; margin-top: 14px; color: var(--gka-ink); font-size: 9px; font-weight: 700; }
.gka-material-drawer input, .gka-material-drawer textarea { width: 100%; padding: 12px; border: 1px solid var(--gka-line-strong); background: #fff; color: var(--gka-ink); font: inherit; }
.gka-material-drawer textarea { min-height: 180px; resize: vertical; }
.gka-material-drawer label small { color: var(--gka-muted); font-weight: 400; }
.gka-material-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 26px; border: 1px solid var(--gka-line); }
.gka-material-tabs button { padding: 10px; border: 0; border-right: 1px solid var(--gka-line); background: transparent; color: var(--gka-muted); cursor: pointer; }
.gka-material-tabs button:last-child { border-right: 0; }
.gka-material-tabs button.is-active { background: var(--gka-forest); color: #fff; }
.gka-material-privacy { margin-top: 18px; padding: 14px; background: #f4f0e4; }
.gka-material-privacy strong { font-size: 9px; }
.gka-material-privacy p { margin: 5px 0 0; color: var(--gka-muted); font-size: 8px; line-height: 1.6; }
#analyzeMaterialButton { width: calc(100% - 52px); min-height: 43px; margin-top: 16px; border: 0; background: var(--gka-forest); color: #fff; cursor: pointer; }
#materialStatus { color: var(--gka-muted); font-size: 9px; }
.gka-material-impact { margin: 18px 0 32px; padding: 18px; border: 1px solid var(--gka-line); }
.gka-material-impact h3 { margin: 0 0 8px; font-family: var(--gk-serif); font-size: 22px; }
.gka-material-impact p, .gka-material-impact li { color: #4a5d54; font-size: 9px; line-height: 1.65; }
.gka-material-impact > div { margin-top: 15px; }
.gka-material-impact .is-conflict { padding: 12px; background: #f8ebe7; }
.gka-material-decisions { display: grid; gap: 8px; }
.gka-material-decisions button { padding: 10px; border: 1px solid var(--gka-forest); background: var(--gka-forest); color: #fff; cursor: pointer; }
.gka-material-decisions button:not(:first-child) { background: transparent; color: var(--gka-forest); }

.gka-expert-section { padding-bottom: 28px; }
.gka-expert-lead { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px; background: #edf1ed; }
.gka-expert-lead strong { color: var(--gka-forest); font-family: var(--gk-serif); font-size: 20px; }
.gka-expert-lead p { margin: 7px 0 0; color: var(--gka-muted); font-size: 9px; }
.gka-expert-lead button { flex: 0 0 auto; padding: 11px 16px; border: 0; background: var(--gka-forest); color: #fff; cursor: pointer; }
.gka-expert-status, .gka-expert-empty { margin: 16px 26px; color: var(--gka-muted); font-size: 9px; }
.gka-expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 26px; }
.gka-expert-grid article { padding: 18px; border: 1px solid var(--gka-line); background: #fffefa; }
.gka-expert-grid article > span { color: var(--gka-gold); font-size: 7px; letter-spacing: .1em; }
.gka-expert-grid h4 { margin: 8px 0 5px; color: var(--gka-forest); font-family: var(--gk-serif); font-size: 19px; }
.gka-expert-grid article > p, .gka-expert-grid dd { color: #4b5c54; font-size: 9px; line-height: 1.6; }
.gka-expert-grid dl { display: grid; gap: 10px; }
.gka-expert-grid dt { color: var(--gka-muted); font-size: 7px; text-transform: uppercase; }
.gka-expert-grid dd { margin: 3px 0 0; }
.gka-expert-grid article > small { color: var(--gka-muted); font-size: 7px; }
.gka-expert-grid article > div:last-child { display: flex; gap: 8px; margin-top: 13px; }
.gka-expert-grid a, .gka-expert-grid button, .gka-expert-contact { padding: 8px 10px; border: 1px solid var(--gka-forest); background: transparent; color: var(--gka-forest); cursor: pointer; font-size: 8px; text-decoration: none; }
.gka-expert-grid button.is-selected { background: var(--gka-forest); color: #fff; }
.gka-expert-contact { display: block; width: max-content; margin: 20px 26px 0; background: var(--gka-forest); color: #fff; }
.gka-expert-contact.is-disabled { pointer-events: none; opacity: .55; background: #7b837f; border-color: #7b837f; }
.gka-competitor-profiles { margin: 26px 0; border: 1px solid var(--gka-line); background: #f5f2e8; }
.gka-competitor-profiles > header { display: grid; gap: 5px; padding: 20px 22px; border-bottom: 1px solid var(--gka-line); }
.gka-competitor-profiles > header span { color: var(--gka-gold); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.gka-competitor-profiles > header h5 { margin: 0; color: var(--gka-forest); font-family: var(--gk-serif); font-size: 22px; }
.gka-competitor-profiles > header p { margin: 0; color: var(--gka-muted); font-size: 9px; line-height: 1.6; }
.gka-competitor-profiles > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--gka-line); }
.gka-competitor-profiles article { min-width: 0; padding: 20px; background: #fffefa; }
.gka-competitor-profile__head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.gka-competitor-profile__head small { color: var(--gka-gold); font-size: 7px; letter-spacing: .08em; }
.gka-competitor-profile__head h6 { margin: 4px 0 0; color: var(--gka-forest); font-family: var(--gk-serif); font-size: 20px; }
.gka-competitor-profile__head > strong { max-width: 48%; color: var(--gka-ink); font-size: 9px; line-height: 1.5; text-align: right; }
.gka-competitor-share { margin: 9px 0; color: var(--gka-muted); font-size: 8px; }
.gka-competitor-segments { display: flex; flex-wrap: wrap; gap: 5px; }
.gka-competitor-segments span { padding: 4px 6px; background: #edf1ed; color: var(--gka-forest); font-size: 7px; }
.gka-competitor-profiles dl { display: grid; gap: 12px; margin: 16px 0 0; }
.gka-competitor-profiles dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.gka-competitor-profiles dt { color: var(--gka-gold); font-size: 8px; font-weight: 700; }
.gka-competitor-profiles dd { display: grid; gap: 5px; margin: 0; color: #40534a; font-size: 9px; line-height: 1.55; }
.gka-competitor-profiles dd ul { margin: 0; padding-left: 16px; }
.gka-competitor-profiles dd span::before { color: var(--gka-gold); content: "— "; }
.gka-competitor-profiles footer { margin-top: 14px; color: var(--gka-muted); font-size: 8px; }

html[data-management-demo="true"] body { min-width: 0; overflow: hidden; }
html[data-management-demo="true"] .gk-topbar,
html[data-management-demo="true"] .gka-hero,
html[data-management-demo="true"] .gka-mode-note,
html[data-management-demo="true"] #taskHubButton { display: none !important; }
html[data-management-demo="true"] .gka-shell,
html[data-management-demo="true"] .gka-main { width: 100%; min-width: 0; min-height: 100vh; margin: 0; padding: 0; }
html[data-management-demo="true"] .gka-mode-bar { margin: 0; border-width: 0 0 1px; }
html[data-management-demo="true"] .gka-mode-tab { min-height: 62px; padding: 12px 18px; }
html[data-management-demo="true"] .gka-mode-panel { margin: 0; }
html[data-management-demo="true"] .gka-report-builder { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr) !important; min-height: 0; }
html[data-management-demo="true"] .gka-map-panel,
html[data-management-demo="true"] .gka-brief-panel { min-width: 0; padding: 18px; }
html[data-management-demo="true"] .gka-map { min-height: 214px; }
html[data-management-demo="true"] .gka-panel-head h2 { font-size: 28px; }
html[data-management-demo="true"] .gka-country-snapshot,
html[data-management-demo="true"] .gka-compact-fields,
html[data-management-demo="true"] .gka-focus-field,
html[data-management-demo="true"] .gka-scope-summary,
html[data-management-demo="true"] .gka-safety-note { display: none !important; }

@media (max-width: 760px) {
  .gka-brief-modal > section { width: calc(100vw - 18px); }
  .gka-stage-grid { grid-template-columns: 1fr; }
  .gka-stage-grid .gka-stage-card { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; justify-items: start; min-height: 0; padding: 14px; text-align: left; }
  .gka-stage-card > span { grid-row: 1 / 3; }
  .gka-stage-card strong, .gka-stage-card small { margin-top: 0; }
  .gka-section-livebar { grid-template-columns: 1fr; }
  .gka-section-livebar > div:last-child { justify-content: flex-start; }
  .gka-diff-actions, .gka-expert-grid { grid-template-columns: 1fr; }
  .gka-expert-lead { display: grid; }
  .gka-expert-lead button { width: 100%; }
  .gka-competitor-profiles > div { grid-template-columns: 1fr; }
}

@media print {
  .gka-section-livebar, .gka-section-activity, .gka-expert-lead button, .gka-expert-grid button, .gka-expert-contact { display: none !important; }
}
