:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #62728a;
  --line: #d7e2ee;
  --paper: #f3f7fb;
  --panel: #fffef9;
  --panel-soft: #f7fbff;
  --accent: #145f9f;
  --accent-2: #c49a4b;
  --deep: #071b33;
  --blue: #1e74b7;
  --amber: #a96300;
  --red: #b42318;
  --green: #237a3b;
  --shadow: 0 18px 50px rgba(7, 31, 61, 0.09);
  --shadow-soft: 0 8px 24px rgba(7, 31, 61, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 42%, #eef4fb 100%);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, #071b33 0%, #0b2440 54%, #102b48 100%);
  color: #f4fbfb;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 190, 125, 0.55);
  border-radius: 8px;
  background: rgba(184, 138, 58, 0.16);
  color: #f7dfad;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar .eyebrow {
  color: #d8bd83;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
}

h2 {
  margin-bottom: 0;
  font-size: 27px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
}

h4 {
  margin-bottom: 10px;
  font-size: 15px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #c9d8d3;
  text-align: left;
}

.nav-item.is-active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(216, 189, 131, 0.28);
  color: #ffffff;
}

.nav-icon {
  color: #d8bd83;
  font-weight: 800;
  font-size: 12px;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-label {
  margin-bottom: 14px;
  color: #a9c2c9;
  font-size: 13px;
}

.mini-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.mini-metric strong {
  color: #ffffff;
}

.main {
  min-width: 0;
  padding: 30px 34px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.data-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #ead49c;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow-soft);
}

.data-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.server-open-hint {
  display: none;
  font-weight: 700;
}

.server-open-hint a {
  color: var(--accent);
}

body.file-mode .server-open-hint {
  display: block;
}

.data-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.data-badge.warning {
  background: #fff1d6;
  color: var(--amber);
}

.data-badge.verified {
  background: #e7f5ea;
  color: var(--green);
}

.topbar-actions,
.action-row,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.primary-button,
.ghost-button {
  min-height: 40px;
  border: 1px solid var(--accent);
  padding: 0 16px;
  border-radius: 6px;
  transition: 0.16s ease;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 98, 88, 0.18);
}

.primary-button:hover {
  background: #084f47;
  transform: translateY(-1px);
}

.ghost-button {
  background: rgba(255, 254, 249, 0.88);
  color: var(--accent);
}

.ghost-button:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}

.ghost-button.danger {
  border-color: var(--red);
  color: var(--red);
}

.ghost-button.danger:hover {
  background: #fff7f6;
}

.full {
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.work-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 158px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card em {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff1d6;
  color: var(--amber);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.metric-card.risk strong {
  color: var(--red);
}

.score-breakdown-panel {
  margin-bottom: 18px;
}

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

.score-component {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.score-component-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-component span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-component strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.score-weight {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.score-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.score-component p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.executive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid #cfdcd4;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 254, 249, 0.98), rgba(239, 247, 242, 0.98));
  box-shadow: var(--shadow);
}

.growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #cfdcd4;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffef9, #eef6ff);
  box-shadow: var(--shadow);
}

.growth-hero h3 {
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: 0;
}

.growth-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.case-score {
  padding: 18px;
  border-radius: 8px;
  background: var(--deep);
  color: #fffef9;
}

.case-score span {
  color: #d8bd83;
  font-size: 12px;
  font-weight: 800;
}

.case-score strong {
  display: block;
  margin: 8px 0;
  font-size: 38px;
}

.case-score p {
  color: #dfe9e4;
  font-size: 13px;
}

.hero-copy h3 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(11, 98, 88, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.hero-proof {
  padding: 20px;
  border: 1px solid rgba(18, 36, 32, 0.12);
  border-radius: 8px;
  background: #071b33;
  color: #fffef9;
}

.hero-proof p {
  margin-bottom: 14px;
  color: #d8bd83;
  font-weight: 800;
}

.hero-proof ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-proof li {
  padding-left: 14px;
  border-left: 2px solid #d8bd83;
  color: #e9f0ed;
  line-height: 1.6;
}

.value-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.flow-step {
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-grid,
.knowledge-grid,
.realdata-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.commercial-grid,
.growth-grid,
.factory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 18px;
}

.growth-grid.second-row {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.work-panel {
  padding: 18px;
}

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

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

select,
input {
  min-height: 40px;
  padding: 0 10px;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(11, 98, 88, 0.14);
  border-color: var(--accent);
}

textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

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

.channel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  transition: 0.16s ease;
}

.channel-card:hover {
  border-color: rgba(11, 98, 88, 0.28);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.channel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.score-pill {
  background: #eef6ff;
  color: var(--accent);
}

.status-pill.ready {
  background: #e7f5ea;
  color: var(--green);
}

.status-pill.manual {
  background: #fff3df;
  color: var(--amber);
}

.status-pill.blocked {
  background: #fdebea;
  color: var(--red);
}

.channel-card p,
.risk-item p,
.connector-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.channel-card small {
  display: block;
  margin-top: 8px;
  color: #7a8782;
  font-size: 12px;
  line-height: 1.45;
}

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf2ef;
  margin-top: 10px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.risk-list {
  display: grid;
  gap: 10px;
}

.risk-item {
  border-left: 3px solid var(--amber);
  padding: 12px;
  background: #fffaf2;
  border-radius: 0 8px 8px 0;
}

.risk-item.high {
  border-left-color: var(--red);
  background: #fff7f6;
}

.prompt-table-wrap {
  overflow-x: auto;
}

.prompt-table-wrap.compact {
  max-height: 560px;
  overflow: auto;
}

.prompt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.prompt-table th,
.prompt-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.prompt-table th {
  color: var(--muted);
  font-size: 12px;
}

.prompt-table button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 32px;
  background: #ffffff;
  color: var(--accent);
}

.upload-zone {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px dashed var(--accent-2);
  border-radius: 8px;
  background: #f3f8ff;
}

.api-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.truth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.truth-steps div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.truth-steps strong {
  display: block;
  margin-bottom: 8px;
}

.truth-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.commercial-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.commercial-stat,
.account-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.commercial-stat span,
.account-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.commercial-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.scheduler-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.account-list,
.report-actions {
  display: grid;
  gap: 12px;
}

.growth-actions,
.growth-task-list,
.case-timeline,
.offer-pack {
  display: grid;
  gap: 12px;
}

.growth-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel-soft);
}

.growth-action-card.high {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.growth-action-card span,
.case-step span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.growth-action-card strong,
.case-step strong,
.offer-pack strong {
  display: block;
  margin-bottom: 6px;
}

.growth-action-card p,
.growth-task p,
.case-step p,
.offer-pack p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.growth-task {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.growth-task input {
  width: 18px;
  height: 18px;
}

.growth-task > span {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.growth-task.is-done {
  opacity: 0.72;
}

.growth-task.is-done strong {
  text-decoration: line-through;
}

.case-step,
.offer-pack div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.case-step span {
  background: #fff3df;
  color: var(--amber);
}

.case-step.is-done span {
  background: #e7f5ea;
  color: var(--green);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.evidence-detail {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.evidence-detail p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.evidence-detail a {
  color: var(--accent);
}

.answer-audit-console {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(204, 218, 211, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(20, 95, 159, 0.08), rgba(197, 154, 70, 0.05));
}

.audit-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.audit-console-head h4 {
  margin: 0;
  color: #10233a;
  font-size: 17px;
}

.answer-audit-list {
  display: grid;
  gap: 10px;
}

.answer-audit-card,
.answer-audit-empty {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
}

.answer-audit-card.warning {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.answer-audit-card.pending,
.answer-audit-empty {
  border-left-color: #9aabc0;
  background: #fbfdff;
}

.answer-audit-card.review {
  border-left-color: #6f7f91;
  background: #f8fafc;
}

.answer-audit-card.verified {
  border-left-color: var(--green);
}

.answer-audit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.answer-audit-top strong,
.answer-audit-empty strong {
  color: #10233a;
  line-height: 1.35;
}

.answer-audit-top span,
.answer-audit-empty span {
  flex: 0 0 auto;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.answer-audit-card.warning .answer-audit-top span {
  background: #fff3df;
  color: var(--amber);
}

.answer-audit-card.pending .answer-audit-top span {
  background: #f2f6fa;
  color: #62758b;
}

.answer-audit-card.verified .answer-audit-top span {
  background: #e7f5ea;
  color: var(--green);
}

.answer-audit-card.review .answer-audit-top span {
  background: #eef2f7;
  color: #546477;
}

.answer-audit-card p,
.answer-audit-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.answer-audit-card b {
  display: block;
  margin-bottom: 2px;
  color: #506172;
  font-size: 11px;
}

.answer-audit-card a {
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.answer-audit-card .ghost-button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.client-demo .api-panel,
.client-demo #logoutBtn,
.client-demo #saveApiConfigBtn,
.client-demo #clearRealDataBtn,
.client-demo .auth-overlay {
  display: none !important;
}

.client-demo .data-banner {
  border-color: #cfdcd4;
  background: #f8fbf6;
}

.compact-head {
  align-items: center;
  margin-bottom: 12px;
}

.inline-result {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7faf9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.inline-result:not(:empty) {
  display: block;
}

.inline-result.success {
  border-color: #b9dfc3;
  background: #f1fbf3;
  color: var(--green);
}

.inline-result.error {
  border-color: #f1b8b3;
  background: #fff7f6;
  color: var(--red);
}

.upload-zone input {
  background: #ffffff;
}

.upload-zone p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.manual-entry {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.real-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-tile {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.summary-tile span {
  color: var(--muted);
  font-size: 12px;
}

.summary-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.product-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.readiness-list,
.gap-list {
  display: grid;
  gap: 12px;
}

.readiness-list div,
.gap-list p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.readiness-list strong,
.gap-list strong {
  display: block;
  margin-bottom: 6px;
}

.readiness-list p,
.gap-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.gap-list p strong {
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.textarea-group {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.release-pack-result {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 95, 159, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  box-shadow: var(--shadow-soft);
}

.release-pack-result.is-visible {
  display: grid;
  gap: 10px;
}

.release-pack-result strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.release-pack-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.release-pack-result .pack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-pack-result .pack-items span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.compliance-box {
  display: grid;
  gap: 10px;
}

.check-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.check-item.warn {
  border-color: #f0c171;
  background: #fffaf2;
}

.source-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workflow-actions a,
.workflow-actions button {
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
}

.fact-sheet {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.fact-sheet dt,
.fact-sheet dd {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.fact-sheet dt {
  color: var(--muted);
  background: #f2f6f6;
  font-weight: 700;
}

.fact-sheet dd {
  background: #ffffff;
}

.official-kb-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.official-kb-list {
  display: grid;
  gap: 10px;
}

.official-kb-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background: #fbfdff;
}

.official-kb-card.is-editing {
  border-color: rgba(20, 95, 159, 0.35);
  background: #f7fbff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.official-kb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.official-kb-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.official-kb-top span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.official-kb-edit-head span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.official-kb-top strong,
.official-kb-edit-head strong {
  display: block;
  color: #10233a;
  line-height: 1.45;
}

.official-kb-top em,
.official-kb-edit-head em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.official-kb-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.official-kb-card b {
  display: block;
  color: #506172;
  font-size: 11px;
}

.official-kb-card a {
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.official-kb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-kb-actions .ghost-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.official-kb-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.official-kb-inline-form label {
  display: grid;
  gap: 6px;
  color: #506172;
  font-size: 12px;
  font-weight: 800;
}

.official-kb-inline-form input,
.official-kb-inline-form select,
.official-kb-inline-form textarea {
  width: 100%;
  border: 1px solid rgba(204, 218, 211, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.official-kb-inline-form input,
.official-kb-inline-form select {
  min-height: 38px;
  padding: 0 10px;
}

.official-kb-inline-form textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.official-kb-full-field {
  grid-column: 1 / -1;
}

.official-kb-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(204, 218, 211, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.official-kb-toolbar .inline-result {
  flex: 1 1 220px;
}

.connector-note {
  display: grid;
  gap: 10px;
}

.connector-note p {
  margin: 0;
  padding: 12px;
  border-left: 3px solid var(--accent-2);
  background: #f3f8ff;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #071b33;
  color: #ffffff;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.platform-modal {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 27, 51, 0.42);
  backdrop-filter: blur(10px);
}

.platform-modal.is-visible {
  display: flex;
}

.platform-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid rgba(197, 154, 70, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(7, 31, 61, 0.24);
}

.platform-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.platform-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
  margin-bottom: 16px;
}

.platform-modal-head img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(7, 31, 61, 0.16);
}

.platform-modal-head h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.platform-modal-focus {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.platform-modal-meter {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background: #f8fbff;
}

.platform-modal-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.platform-modal-meter span,
.platform-modal-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.platform-modal-meter strong {
  color: var(--accent);
}

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

.platform-modal-grid div {
  padding: 14px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.platform-modal-grid strong {
  display: block;
  margin-top: 8px;
  color: #0e3558;
  line-height: 1.45;
}

.platform-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 36, 32, 0.74);
}

.auth-overlay.is-visible {
  display: flex;
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(216, 189, 131, 0.45);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.auth-card h2 {
  margin-bottom: 10px;
}

.auth-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.demo-accounts {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.demo-accounts p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Executive polish layer */
:root {
  --ink: #102033;
  --muted: #62728a;
  --line: #d7e2ee;
  --paper: #f3f7fb;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --accent: #145f9f;
  --accent-2: #c59a46;
  --deep: #071b33;
  --blue: #1e74b7;
  --shadow: 0 18px 45px rgba(7, 31, 61, 0.1);
  --shadow-soft: 0 8px 22px rgba(7, 31, 61, 0.07);
}

body {
  background:
    radial-gradient(circle at 85% 0%, rgba(30, 116, 183, 0.12), transparent 34%),
    linear-gradient(180deg, #edf5ff 0, #f8fbff 280px, #f2f6fb 100%);
  text-rendering: optimizeLegibility;
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, #06182e 0%, #09213d 48%, #0f2e51 100%);
  padding: 28px 16px;
  box-shadow: 10px 0 34px rgba(6, 24, 46, 0.14);
}

.brand-block {
  padding: 2px 4px 10px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, rgba(197, 154, 70, 0.32), rgba(30, 116, 183, 0.26));
  border-color: rgba(230, 205, 151, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-list {
  gap: 7px;
}

.nav-group-title {
  grid-column: 1 / -1;
  margin: 8px 8px 0;
  color: rgba(223, 236, 247, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-item {
  min-height: 44px;
  padding: 0 12px;
  color: #c1d5e6;
}

.nav-item.is-active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border-color: rgba(197, 154, 70, 0.35);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  background: rgba(197, 154, 70, 0.16);
}

.sidebar-panel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.main {
  padding: 26px 32px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -26px -32px 18px;
  padding: 22px 32px 16px;
  background: rgba(243, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 226, 238, 0.72);
}

.topbar h2 {
  font-size: 25px;
  line-height: 1.25;
}

.topbar-actions {
  justify-content: flex-end;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.topbar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(20, 95, 159, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #355570;
  font-size: 12px;
  font-weight: 800;
}

.user-badge,
.data-badge,
.status-pill,
.score-pill,
.hero-tags span,
.channel-meta span {
  letter-spacing: 0;
}

.primary-button,
.ghost-button,
.download-link,
.workflow-actions a,
.workflow-actions button,
.prompt-table button {
  border-radius: 7px;
}

.primary-button {
  background: linear-gradient(180deg, #1e74b7, #145f9f);
  border-color: #145f9f;
  box-shadow: 0 10px 20px rgba(20, 95, 159, 0.2);
}

.ghost-button,
.download-link,
.workflow-actions a,
.workflow-actions button,
.prompt-table button {
  background: #ffffff;
  border-color: #cad8d1;
}

.ghost-button:hover,
.download-link:hover,
.workflow-actions a:hover,
.workflow-actions button:hover,
.prompt-table button:hover {
  background: #f1f7ff;
  border-color: rgba(20, 95, 159, 0.35);
}

.data-banner {
  border-color: rgba(197, 154, 70, 0.42);
  background: linear-gradient(90deg, #fffaf0, #f7fbff);
  box-shadow: var(--shadow-soft);
}

.data-banner strong {
  color: #2a332f;
}

.executive-hero,
.growth-hero {
  border: 0;
  color: #f8fbfa;
  background:
    linear-gradient(135deg, rgba(7, 27, 51, 0.98), rgba(19, 75, 122, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 76px);
  box-shadow: 0 24px 60px rgba(7, 31, 61, 0.18);
}

.executive-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  padding: 30px;
}

.hero-copy h3,
.growth-hero h3 {
  color: #ffffff;
}

.hero-copy p,
.growth-hero p {
  color: #dbeaf7;
}

.executive-hero .eyebrow,
.growth-hero .eyebrow {
  color: #e4c27b;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(228, 194, 123, 0.24);
  color: #f4db9e;
}

.hero-proof {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-proof p {
  color: #f4db9e;
}

.hero-proof li {
  color: #eef6ff;
  border-left-color: #d8b765;
}

.metric-card,
.work-panel,
.flow-step,
.score-component,
.channel-card,
.truth-steps div,
.summary-tile,
.commercial-stat,
.account-list div,
.growth-action-card,
.growth-task,
.case-step,
.offer-pack div,
.readiness-list div,
.gap-list p,
.check-item,
.workflow-card,
.api-panel,
.scheduler-box,
.evidence-detail,
.answer-audit-console,
.answer-audit-card,
.answer-audit-empty {
  border-color: rgba(204, 218, 211, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  min-height: 148px;
}

.metric-card::before {
  height: 3px;
  background: linear-gradient(90deg, #145f9f, #c59a46 70%, #1e74b7);
}

.metric-card strong {
  font-size: 40px;
}

.work-panel {
  padding: 20px;
}

.section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 226, 238, 0.72);
}

.channel-card:hover,
.flow-step:hover,
.growth-action-card:hover {
  transform: translateY(-2px);
}

.channel-title strong,
.risk-item strong,
.growth-action-card strong,
.readiness-list strong,
.gap-list strong {
  color: #15211e;
}

.risk-item {
  box-shadow: none;
}

.prompt-table th {
  background: #f6faf8;
  color: #50615b;
  font-weight: 800;
}

.prompt-table td {
  background: rgba(255, 255, 255, 0.74);
}

.prompt-table tbody tr:hover td {
  background: #f8fbff;
}

input,
select,
textarea {
  border-color: #ccd8d2;
  background: #f8fbff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 95, 159, 0.13);
}

.toast {
  background: #071b33;
  box-shadow: 0 20px 50px rgba(7, 31, 61, 0.24);
}

.auth-overlay {
  background:
    linear-gradient(135deg, rgba(7, 27, 51, 0.88), rgba(22, 60, 94, 0.78));
}

.auth-card {
  border: 1px solid rgba(228, 194, 123, 0.3);
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.auth-card h2 {
  font-size: 28px;
}

.demo-accounts {
  background: #f7faf8;
}

.client-demo #logoutBtn,
.client-demo #saveApiConfigBtn,
.client-demo #clearRealDataBtn,
.client-demo #saveManualRunBtn,
.client-demo .api-panel,
.client-demo .manual-entry,
.client-demo .upload-zone,
.client-demo .auth-overlay {
  display: none !important;
}

.client-demo .data-banner {
  border-color: #c9d9ea;
  background: linear-gradient(90deg, #f2f7ff, #ffffff);
}

/* Premium dashboard uplift */
body {
  background:
    linear-gradient(90deg, rgba(20, 95, 159, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 95, 159, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, rgba(197, 154, 70, 0.12), transparent 28%),
    linear-gradient(180deg, #eef6ff 0, #f8fbff 330px, #f2f6fb 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.app-shell {
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  gap: 16px;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(5, 19, 38, 0.98), rgba(9, 33, 61, 0.98) 48%, rgba(13, 45, 78, 0.98)),
    linear-gradient(90deg, rgba(197, 154, 70, 0.22), transparent 34%);
}

.sidebar .nav-list {
  flex: 1;
}

.brand-block {
  align-items: flex-start;
  padding: 4px 6px 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-color: rgba(238, 210, 151, 0.72);
  background:
    linear-gradient(145deg, rgba(215, 176, 102, 0.38), rgba(30, 116, 183, 0.28)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.18);
}

.brand-block h1 {
  margin-top: 2px;
  color: #ffffff;
  font-size: 24px;
}

.sidebar-brand-card {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 190, 125, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(30, 116, 183, 0.2), rgba(7, 27, 51, 0.12));
}

.sidebar-brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(197, 154, 70, 0.16) 46% 47%, transparent 47%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%);
  background-size: auto, 42px 100%;
  pointer-events: none;
}

.sidebar-brand-card span,
.sidebar-brand-card strong,
.sidebar-brand-card p {
  z-index: 1;
  position: relative;
}

.sidebar-brand-card span {
  display: block;
  color: #e6c882;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.sidebar-brand-card strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}

.sidebar-brand-card p {
  margin: 0;
  color: #c5d8eb;
  font-size: 12px;
  line-height: 1.65;
}

.nav-list {
  gap: 5px;
}

.nav-group-title {
  margin-top: 8px;
  color: rgba(230, 242, 255, 0.52);
}

.nav-item {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.025);
}

.nav-item.is-active {
  background:
    linear-gradient(90deg, rgba(30, 116, 183, 0.36), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(197, 154, 70, 0.5);
  box-shadow: inset 3px 0 0 #c59a46;
}

.executive-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(6, 24, 46, 0.98) 0%, rgba(13, 58, 101, 0.96) 58%, rgba(12, 74, 122, 0.92) 100%);
}

.executive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(197, 154, 70, 0.2) 54% 54.4%, transparent 54.4%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 100%);
  background-size: auto, 64px 64px, 64px 64px;
  opacity: 0.88;
  pointer-events: none;
}

.hero-copy,
.hero-command-card {
  position: relative;
  z-index: 1;
}

.hero-copy h3 {
  max-width: 780px;
  font-size: 36px;
}

.hero-copy p {
  max-width: 760px;
  color: #d9e8f7;
}

.hero-command-card {
  align-self: stretch;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(216, 190, 125, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(7, 27, 51, 0.32);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 45px rgba(0, 0, 0, 0.18);
}

.command-card-top,
.command-score,
.command-tracks div,
.command-platforms {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.command-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.command-card-top span,
.command-card-top em,
.command-score span,
.command-tracks span {
  color: #c7daf0;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.command-card-top em {
  color: #e6c882;
}

.command-score {
  padding: 16px;
}

.command-score strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 58px;
  line-height: 0.95;
}

.command-score strong::after {
  content: "/100";
  margin-left: 6px;
  color: #e6c882;
  font-size: 18px;
  font-weight: 800;
}

.command-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.command-tracks div {
  min-height: 78px;
  padding: 12px;
}

.command-tracks strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 14px;
}

.command-platforms {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 12px;
}

.platform-icon-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(230, 200, 130, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(230, 200, 130, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: 0.16s ease;
}

.platform-icon-badge:hover,
.platform-icon-badge:focus-visible {
  border-color: rgba(230, 200, 130, 0.62);
  transform: translateY(-2px);
  outline: none;
}

.platform-icon-badge img {
  width: 76%;
  height: 76%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.ops-summary-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
  border-color: rgba(180, 203, 227, 0.88);
}

.ops-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #145f9f, #c59a46);
}

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

.target-metrics div {
  padding: 10px;
  border: 1px solid rgba(203, 218, 234, 0.92);
  border-radius: 8px;
  background: #ffffff;
}

.target-metrics span {
  display: block;
  line-height: 1.35;
}

.target-metrics strong {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 22px;
}

.metric-card,
.work-panel,
.platform-card,
.tool-card,
.diagnostic-task,
.workflow-card {
  backdrop-filter: blur(10px);
}

.ops-summary-grid,
.command-grid,
.tools-grid,
.growth-inline-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.ops-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-grid,
.tools-grid,
.growth-inline-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.growth-inline-grid .section-head {
  align-items: center;
}

.operations-console {
  margin-bottom: 18px;
}

.operations-console .compact-head {
  align-items: center;
}

.operations-board {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.operation-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    linear-gradient(135deg, rgba(20, 95, 159, 0.08), rgba(197, 154, 70, 0.05));
}

.operation-column.priority {
  border-color: rgba(197, 154, 70, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(248, 251, 255, 0.96)),
    linear-gradient(135deg, rgba(197, 154, 70, 0.12), rgba(20, 95, 159, 0.06));
}

.operation-column-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.operation-column-head.with-action {
  align-items: flex-start;
}

.operation-column-head.with-action .ghost-button {
  margin-left: auto;
  white-space: nowrap;
}

.operation-column-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: #0f4778;
  color: #f1d59b;
  font-size: 12px;
  font-weight: 900;
}

.operation-column-head .eyebrow {
  margin: 0 0 3px;
  font-size: 11px;
}

.operation-column-head h4 {
  margin: 0;
  color: #10233a;
  font-size: 16px;
  line-height: 1.2;
}

.risk-list.compact {
  gap: 16px;
}

.risk-list.compact .risk-item {
  border-left: 0;
  border-top: 3px solid var(--amber);
  border-radius: 8px;
  padding: 17px 18px;
  min-height: 118px;
}

.risk-list.compact .risk-item.high {
  border-top-color: var(--red);
}

.risk-list.compact .risk-item p,
.growth-actions.compact .growth-action-card p,
.growth-task-list.compact .growth-task p {
  font-size: 13px;
  line-height: 1.68;
}

.growth-actions.compact .growth-action-card {
  grid-template-columns: 1fr;
  gap: 10px;
  border-left-width: 3px;
}

.growth-actions.compact .growth-action-card .ghost-button {
  width: fit-content;
}

.growth-task-list.compact .growth-task {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.growth-task-list.compact .growth-task > span {
  display: none;
}

.growth-task-list.compact .growth-task .ghost-button {
  grid-column: 2;
  width: fit-content;
}

.case-score.mini {
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 154, 70, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0, #f8fbff);
  color: var(--ink);
}

.case-score.mini span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.case-score.mini strong {
  display: block;
  margin: 4px 0;
  color: var(--accent);
  font-size: 24px;
}

.case-score.mini p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.growth-actions.compact,
.growth-task-list.compact,
.case-timeline.compact {
  gap: 10px;
}

.growth-actions.compact .growth-action-card,
.growth-task-list.compact .growth-task {
  padding: 12px;
}

.growth-task-list.compact .growth-task {
  grid-template-columns: auto minmax(0, 1fr);
}

.case-timeline.compact {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-timeline.compact .case-step {
  padding: 12px;
}

.offer-pack.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.offer-pack.compact div {
  padding: 12px;
}

.offer-pack.compact strong {
  color: #0e3558;
}

.offer-pack.compact p {
  font-size: 12px;
}

.ops-summary-card {
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(203, 218, 234, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.ops-summary-card span,
.diagnostic-headline span,
.diagnostic-progress span,
.diagnostic-stats span,
.platform-card small,
.tool-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-summary-card strong {
  display: block;
  margin: 8px 0;
  color: #0e3558;
  font-size: 22px;
  line-height: 1.2;
}

.ops-summary-card p,
.platform-card p,
.tool-card p,
.tool-boundary p,
.resource-card p,
.diagnostic-task p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.platform-matrix,
.toolbox-grid {
  display: grid;
  gap: 12px;
}

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

.platform-card,
.tool-card,
.diagnostic-task,
.tool-boundary p {
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background: var(--panel-soft);
}

.platform-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  border-color: rgba(20, 95, 159, 0.42);
  box-shadow: 0 14px 32px rgba(7, 31, 61, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.platform-card.ready {
  border-color: rgba(35, 122, 59, 0.28);
}

.platform-card.demo {
  border-color: rgba(197, 154, 70, 0.34);
}

.platform-card.pending {
  border-color: rgba(180, 35, 24, 0.18);
}

.platform-topline,
.resource-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.platform-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.platform-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(197, 154, 70, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 95, 159, 0.12), rgba(197, 154, 70, 0.12)),
    #ffffff;
  overflow: hidden;
}

.platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-topline strong {
  color: #0e3558;
  font-size: 15px;
}

.platform-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef6;
}

.platform-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.diagnostic-task {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.diagnostic-headline {
  display: grid;
  gap: 6px;
}

.diagnostic-headline strong {
  color: #0e3558;
  font-size: 20px;
  line-height: 1.25;
}

.diagnostic-headline em {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff4dd;
  color: var(--amber);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.diagnostic-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnostic-keywords span,
.resource-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.diagnostic-progress {
  display: grid;
  gap: 8px;
}

.diagnostic-progress > div:first-child,
.diagnostic-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.diagnostic-progress strong {
  color: var(--accent);
}

.diagnostic-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-stats div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(203, 218, 234, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.diagnostic-stats strong {
  display: block;
  margin-top: 6px;
  color: #0e3558;
  font-size: 15px;
  line-height: 1.35;
}

.resource-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
}

.resource-card h4 {
  margin: 10px 0 8px;
  color: #0e3558;
  font-size: 18px;
}

.resource-card .channel-meta {
  margin-top: 12px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.tool-card strong {
  display: block;
  margin: 5px 0 8px;
  color: #0e3558;
  font-size: 18px;
}

.tool-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff4dd;
  color: var(--amber);
}

.tool-boundary {
  display: grid;
  gap: 12px;
}

.tool-boundary p {
  padding: 14px;
  border-left: 3px solid var(--accent-2);
}

.tool-boundary strong {
  color: var(--ink);
}

.service-command-panel {
  margin-bottom: 20px;
}

.service-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.service-stage {
  min-height: 188px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-soft);
}

.service-stage.is-active {
  border-color: rgba(20, 95, 159, 0.42);
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
}

.service-stage.is-done {
  border-color: rgba(35, 122, 59, 0.28);
  background: linear-gradient(180deg, #fbfff8 0%, #f0f8ed 100%);
}

.service-stage-step {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--deep);
  color: #f7dfad;
  font-size: 12px;
  font-weight: 900;
}

.service-stage strong,
.deliverable-card strong,
.industry-template-card strong,
.consultant-action-card strong {
  display: block;
  color: var(--ink);
}

.service-stage p,
.deliverable-card p,
.industry-template-card p,
.consultant-action-card p,
.client-report-shell p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.service-stage small,
.deliverable-card small {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1.5;
}

.service-insight-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 14px;
  margin-top: 14px;
}

.service-maturity-card,
.consultant-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: var(--shadow-soft);
}

.service-maturity-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.service-maturity-card > strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--deep);
  font-size: 34px;
  line-height: 1;
}

.service-maturity-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.maturity-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.maturity-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.consultant-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.consultant-action-list {
  display: grid;
  gap: 10px;
}

.consultant-action-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.consultant-action-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(20, 95, 159, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.consultant-action-card dl,
.industry-template-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.consultant-action-card dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.consultant-action-card dl div,
.industry-template-card dl div {
  padding: 8px 9px;
  border: 1px solid #e1ebf4;
  border-radius: 7px;
  background: #ffffff;
}

.consultant-action-card dt,
.industry-template-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.consultant-action-card dd,
.industry-template-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.deliverables-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
}

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

.deliverable-card {
  min-height: 220px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-soft);
}

.deliverable-card-head span,
.industry-template-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(196, 154, 75, 0.14);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.deliverable-card .ghost-button {
  justify-self: start;
}

.industry-template-list {
  display: grid;
  gap: 12px;
}

.industry-template-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.industry-template-card.is-active {
  border-color: rgba(20, 95, 159, 0.45);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.client-report-view {
  display: none;
}

.official-site-view {
  display: none;
}

.weekly-report-view {
  display: none;
}

.client-report-mode .app-shell,
.client-report-mode .auth-overlay,
.client-report-mode .platform-modal {
  display: none !important;
}

.client-report-mode .client-report-view {
  display: block;
  min-height: 100vh;
  padding: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.official-site-mode .app-shell,
.official-site-mode .auth-overlay,
.official-site-mode .platform-modal,
.official-site-mode .client-report-view,
.official-site-mode .weekly-report-view {
  display: none !important;
}

.official-site-mode .official-site-view {
  display: block;
  min-height: 100vh;
  background: #f5f8fb;
}

.weekly-report-mode .app-shell,
.weekly-report-mode .auth-overlay,
.weekly-report-mode .platform-modal,
.weekly-report-mode .official-site-view {
  display: none !important;
}

.weekly-report-mode .weekly-report-view {
  display: block;
  min-height: 100vh;
  padding: 22px;
  background: linear-gradient(180deg, #f5f8fb 0%, #eef3f8 100%);
}

.weekly-report-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.weekly-report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: var(--shadow-soft);
}

.weekly-report-toolbar h1 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.weekly-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.weekly-report-frame {
  width: 100%;
  min-height: calc(100vh - 132px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.official-site-shell {
  min-height: 100vh;
  color: var(--ink);
  background: #f5f8fb;
}

.official-hero {
  position: relative;
  min-height: min(640px, 82svh);
  padding: clamp(54px, 8vw, 92px) clamp(20px, 7vw, 88px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #071b33;
  color: #f7fbff;
}

.official-hero-screen {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(216, 189, 131, 0.24);
  border-radius: 8px;
  background: #0e2a49;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.7;
}

.official-screen-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.official-screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8bd83;
}

.official-screen-grid {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 72px);
  width: min(520px, 44vw);
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 14px;
}

.official-screen-score,
.official-screen-list,
.official-screen-lines {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.official-screen-score {
  min-height: 190px;
  padding: 22px;
  display: grid;
  align-content: center;
}

.official-screen-score small,
.official-screen-list span {
  color: #c7d8e8;
  font-size: 12px;
  font-weight: 800;
}

.official-screen-score strong {
  color: #f7dfad;
  font-size: clamp(58px, 7vw, 94px);
  line-height: 0.9;
}

.official-screen-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.official-screen-list span {
  display: block;
  padding: 10px 12px;
  border-left: 3px solid #d8bd83;
  background: rgba(255, 255, 255, 0.08);
}

.official-screen-lines {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 72px);
  width: min(360px, 32vw);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.official-screen-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #d8bd83;
}

.official-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.official-hero-content .eyebrow,
.official-section-head .eyebrow,
.official-trust-band .eyebrow {
  color: #a96300;
}

.official-hero-content h1 {
  margin: 0;
  color: #fffdf4;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.official-hero-content h2 {
  margin: 18px 0 0;
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
}

.official-hero-content p:not(.eyebrow) {
  margin: 18px 0 24px;
  max-width: 640px;
  color: #d8e5ef;
  font-size: 17px;
  line-height: 1.75;
}

.official-band {
  padding: clamp(38px, 6vw, 76px) clamp(18px, 6vw, 76px);
}

.official-proof-band {
  margin-top: -26px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.official-proof-band article,
.official-reason-grid article,
.official-flow article,
.official-deliverable-grid article,
.official-industry-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: var(--shadow-soft);
}

.official-proof-band article {
  padding: 18px;
}

.official-proof-band span,
.official-deliverable-grid span,
.official-industry-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.official-proof-band strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 30px;
}

.official-section-head {
  max-width: 820px;
  margin-bottom: 22px;
}

.official-section-head h2,
.official-trust-band h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.official-reason-grid,
.official-flow,
.official-deliverable-grid,
.official-industry-grid {
  display: grid;
  gap: 14px;
}

.official-reason-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-reason-grid article,
.official-flow article,
.official-deliverable-grid article,
.official-industry-grid article {
  padding: 20px;
}

.official-reason-grid strong,
.official-flow strong,
.official-deliverable-grid strong,
.official-industry-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.official-reason-grid p,
.official-flow p,
.official-deliverable-grid p,
.official-industry-grid p,
.official-trust-band p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.official-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.official-flow article span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #0e2a49;
  color: #f7dfad;
  font-weight: 900;
}

.official-deliverable-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-deliverable-grid span,
.official-industry-grid span {
  margin-bottom: 10px;
  color: var(--amber);
}

.official-industry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.official-trust-band {
  margin: 0 clamp(18px, 6vw, 76px) clamp(36px, 6vw, 72px);
  padding: clamp(24px, 5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(20, 95, 159, 0.18);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: var(--shadow);
}

.client-report-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.client-report-hero,
.client-report-disclaimer,
.client-report-grid article,
.client-report-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  box-shadow: var(--shadow-soft);
}

.client-report-hero {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.client-report-hero h1 {
  margin: 0;
  font-size: 30px;
}

.client-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-report-metrics div {
  padding: 16px;
}

.client-report-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-report-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 30px;
}

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

.client-report-grid article,
.client-report-disclaimer {
  padding: 18px;
}

.client-report-grid h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-hero,
  .growth-hero,
  .dashboard-grid,
	  .command-grid,
	  .tools-grid,
	  .growth-inline-grid,
	  .operations-board,
	  .factory-grid,
  .knowledge-grid,
  .realdata-grid,
  .commercial-grid,
  .deliverables-layout,
  .service-insight-grid,
  .client-report-grid,
  .official-reason-grid,
  .official-deliverable-grid,
  .official-trust-band,
  .growth-grid,
  .product-readiness {
    grid-template-columns: 1fr;
  }

  .value-flow,
  .score-breakdown,
  .ops-summary-grid,
  .service-journey,
  .client-report-metrics,
  .official-proof-band,
  .official-flow,
  .official-industry-grid,
  .truth-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-screen-grid,
  .official-screen-lines {
    width: min(420px, 46vw);
  }
}

@media (max-width: 760px) {
  .sidebar {
    padding: 16px;
    gap: 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-item {
    min-height: 38px;
    padding: 0 10px;
    gap: 8px;
    font-size: 14px;
  }

  .sidebar-panel {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .topbar {
    margin: -18px -18px 18px;
    padding: 18px;
  }

  .topbar,
  .section-head,
  .data-banner,
  .workflow-card {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .metric-grid,
  .score-breakdown,
  .value-flow,
  .ops-summary-grid,
	  .platform-matrix,
	  .platform-modal-grid,
	  .operations-board,
  .service-journey,
  .service-insight-grid,
  .deliverables-layout,
  .deliverable-center,
  .client-report-metrics,
  .client-report-grid,
  .official-proof-band,
  .official-flow,
  .official-industry-grid,
  .consultant-action-card,
  .consultant-action-card dl,
	  .answer-audit-list,
	  .channel-grid,
  .form-grid,
  .upload-zone,
  .real-summary,
  .commercial-stats,
  .growth-task,
  .growth-task-list.compact .growth-task,
  .case-timeline.compact,
  .offer-pack.compact,
  .truth-steps,
  .diagnostic-stats,
	  .tool-card {
	    grid-template-columns: 1fr;
	  }

	  .operations-console .compact-head,
	  .operation-column-head.with-action {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  .operation-column-head.with-action .ghost-button {
	    margin-left: 0;
	    width: fit-content;
	  }

	  .audit-console-head {
	    flex-direction: column;
	  }

  .client-report-hero {
    flex-direction: column;
  }

  .official-hero {
    min-height: auto;
    padding: 44px 18px 36px;
    align-items: flex-end;
  }

  .official-hero-screen {
    inset: 12px;
  }

  .official-screen-grid {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 190px;
    opacity: 0.48;
  }

  .official-screen-score {
    min-height: 120px;
    padding: 16px;
  }

  .official-screen-list {
    display: none;
  }

  .official-screen-lines {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
    opacity: 0.48;
  }

  .official-hero-content h1 {
    font-size: 48px;
  }

  .official-hero-content h2 {
    font-size: 25px;
  }

  .official-hero-content p:not(.eyebrow) {
    font-size: 15px;
  }

  .official-band {
    padding: 34px 16px;
  }

  .official-trust-band {
    margin: 0 16px 32px;
    align-items: stretch;
  }

	  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  h2 {
    font-size: 23px;
  }

  .executive-hero {
    padding: 20px;
  }

  .hero-copy h3 {
    font-size: 24px;
  }

  .growth-hero {
    padding: 20px;
  }

  .growth-hero h3 {
    font-size: 24px;
  }

  .growth-action-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .sidebar,
  .main,
  .topbar,
  .data-banner,
  .tab-panel,
  .work-panel,
  .official-site-shell,
  .official-band,
  .official-hero,
  .official-trust-band,
  .service-stage,
  .deliverable-card,
  .industry-template-card,
  .client-report-shell,
  .official-kb-card,
  .official-kb-toolbar,
  .answer-audit-card,
  .weekly-report-shell,
  .weekly-report-toolbar,
  .answer-audit-empty {
    min-width: 0;
    max-width: 100%;
  }

  .app-shell,
  .sidebar,
  .main {
    width: 100%;
  }

  .sidebar {
    overflow-x: hidden;
  }

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

  .nav-item {
    min-width: 0;
    white-space: normal;
  }

  .topbar-actions,
  .action-row,
  .official-kb-actions,
  .official-kb-toolbar {
    justify-content: flex-start;
  }

  .primary-button,
  .ghost-button,
  .user-badge,
  .data-badge,
  .status-pill {
    max-width: 100%;
    white-space: normal;
  }

  .weekly-report-mode .weekly-report-view {
    padding: 14px;
  }

  .weekly-report-toolbar {
    grid-template-columns: 1fr;
  }

  .weekly-report-actions {
    justify-content: stretch;
  }

  .weekly-report-actions .primary-button,
  .weekly-report-actions .ghost-button {
    flex: 1 1 100%;
  }

  .weekly-report-frame {
    min-height: calc(100vh - 220px);
  }
}

@media (max-width: 520px) {
  .nav-list {
    grid-template-columns: 1fr;
  }

  .official-kb-inline-form {
    grid-template-columns: 1fr;
  }

  .official-kb-edit-head {
    flex-direction: column;
  }
}
