@import url("/fonts/fonts.css");
:root {
  --ink: #242622;
  --muted: #696c64;
  --paper: #f5f4ef;
  --surface: #fff;
  --night: #171715;
  --gold: #d7b45b;
  --line: #dedfd6;
  --green: #316747;
  --amber: #866321;
  --red: #9c4439;
  --radius: 14px;
  --shadow: 0 16px 48px #1717151a;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #856410;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
}
h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.boot {
  padding: 20vh 8vw;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition:
    background 0.16s,
    color 0.16s;
}
.btn:hover {
  background: #eeeee7;
}
.btn.primary {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}
.btn.primary:hover {
  background: #363832;
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #272218;
}
.btn.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: var(--red);
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  background: #edeee8;
  color: #52584b;
}
.badge.done,
.badge.verified {
  background: #e5efe7;
  color: #285d39;
}
.badge.in_progress,
.badge.doing {
  background: #e6edf1;
  color: #3b5c72;
}
.badge.waiting_atc,
.badge.waiting_client,
.badge.blocked,
.badge.reported {
  background: #f6ecd4;
  color: #71551a;
}
.badge.waiting_platform,
.badge.hypothesis {
  background: #ece7f2;
  color: #655079;
}
.badge.new,
.badge.review {
  background: #e6edf1;
  color: #3b5c72;
}
.badge.replaced {
  color: #73634d;
  background: #f0ebe3;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.empty {
  padding: 30px 24px;
  color: var(--muted);
  background: #efefe9;
  border-radius: var(--radius);
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.section {
  margin-top: 34px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 65ch;
}
.section-head .btn {
  flex: none;
}
.notice {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  font-size: 13px;
  background: #fffef8;
}
.notice p {
  max-width: 80ch;
}
.notice strong {
  display: block;
  margin-bottom: 3px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--night);
  color: white;
  padding: 8vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.wordmark img {
  width: 34px;
  height: 34px;
}
.wordmark span {
  color: var(--gold);
}
.login-story h1 {
  font-size: clamp(38px, 4vw, 60px);
  max-width: 12ch;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.login-story h1 em {
  font-style: normal;
  color: var(--gold);
}
.login-story p {
  color: #c5c6bc;
  max-width: 40ch;
  margin-top: 24px;
}
.login-note {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: #c5c6bc;
}
.login-orbit {
  width: 56px;
  height: 56px;
  border: 1px solid #79745e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 25px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
.login-form {
  max-width: 370px;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
}
.login-form > p {
  margin: 14px 0 30px;
}
.field {
  display: block;
  margin: 17px 0;
}
.field span {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c6c9bd;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  min-height: 46px;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field small {
  display: block;
  margin-top: 5px;
}
.form-error {
  color: var(--red);
  margin: 10px 0;
  font-size: 13px;
}
.login-form .btn {
  width: 100%;
  margin: 12px 0 18px;
}
.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: #c8cabf;
  padding: 30px 18px 20px;
}
.sidebar .wordmark {
  margin: 0 12px 38px;
  font-size: 22px;
  color: #fff;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-button {
  border: 0;
  color: #bfc2b5;
  background: transparent;
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  font-size: 13px;
}
.nav-button:hover {
  background: #292c25;
  color: white;
}
.nav-button.active {
  color: var(--gold);
  background: #373426;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
}
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c9182;
  margin: 30px 12px 10px;
}
.side-client {
  display: flex;
  gap: 10px;
  align-items: center;
  background: none;
  border: 0;
  color: #c5c8be;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
}
.side-client.active,
.side-client:hover {
  background: #2b2e26;
  color: #fff;
}
.side-client .avatar {
  width: 25px;
  height: 25px;
  font-size: 8px;
  background: #3b4134;
  color: #eee;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #e5e8de;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.side-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid #30332b;
  font-size: 12px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile .avatar {
  background: #4b4531;
  color: #e9d5a1;
  width: 33px;
  height: 33px;
  font-size: 10px;
}
.profile small {
  color: #919889;
}
.side-bottom button {
  border: 0;
  color: #aeb2a5;
  background: none;
  font-size: 11px;
  padding: 10px 0;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f9f9f4;
}
.breadcrumb {
  font-size: 13px;
  display: flex;
  gap: 10px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.top-date {
  font-size: 12px;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.page {
  padding: 34px 40px 60px;
  max-width: 1560px;
  margin: 0 auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.page-intro p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 60ch;
}
.page-intro .tools {
  display: flex;
  gap: 8px;
}
.workspace-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 32px;
  align-items: start;
}
.ledger {
  border-top: 1px solid var(--line);
}
.client-row {
  display: grid;
  grid-template-columns: 45px minmax(180px, 1.35fr) minmax(140px, 1fr) 94px 22px;
  gap: 16px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.client-row:hover {
  background: #edeee7;
}
.client-row h3 {
  font-size: 15px;
}
.client-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 42ch;
}
.client-row .phase-name {
  font-size: 12px;
  color: #5b6550;
}
.progress-track {
  height: 4px;
  background: #dedfd4;
  border-radius: 3px;
  margin: 9px 0 5px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: #859075;
}
.progress-label {
  font-size: 10px;
  color: var(--muted);
}
.queue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.subtle-stat {
  font-size: 12px;
  color: var(--muted);
}
.operation-strip {
  display: flex;
  gap: 30px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.strip-item {
  font-size: 12px;
  color: var(--muted);
}
.strip-item strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  font-weight: 550;
  color: var(--ink);
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.lua-panel {
  background: #eaece1;
  border-radius: var(--radius);
  padding: 22px;
}
.lua-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lua-mark {
  width: 36px;
  height: 36px;
  background: #343c2c;
  color: #e9eccf;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.lua-head h3 {
  font-size: 15px;
}
.lua-panel p {
  font-size: 13px;
  margin: 16px 0;
  color: #535c47;
}
.lua-panel .btn {
  width: 100%;
  background: #f8faf1;
  border-color: #d0d6c3;
}
.insight {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.insight small {
  display: block;
  margin-top: 5px;
}
.side-section {
  margin-top: 27px;
}
.side-section h3 {
  margin-bottom: 12px;
}
.workload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 12px;
}
.workload .bar {
  flex: 1;
  background: #e0e1d7;
  height: 5px;
  border-radius: 4px;
  overflow: hidden;
}
.workload .bar span {
  display: block;
  height: 100%;
  background: #909c7d;
}
.workload strong {
  font-variant-numeric: tabular-nums;
}
.warning {
  color: var(--red);
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
  white-space: nowrap;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 13px 0;
  color: var(--muted);
  font-size: 13px;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: #8b742e;
  font-weight: 650;
}
.client-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-heading .avatar {
  width: 52px;
  height: 52px;
  font-size: 14px;
  background: #e3d6b6;
  color: #5d4c22;
}
.client-heading h1 {
  font-size: 30px;
}
.cycle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.phase-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 23px 0 30px;
}
.phase-step {
  padding: 12px 15px;
  background: #e9ebe3;
  font-size: 12px;
  color: #5b6251;
}
.phase-step:first-child {
  border-radius: 9px 0 0 9px;
}
.phase-step:last-child {
  border-radius: 0 9px 9px 0;
}
.phase-step.active {
  background: #384431;
  color: #f2f4eb;
}
.phase-step small {
  color: inherit;
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}
.brief {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.brief .lead {
  font-size: 18px;
  line-height: 1.5;
  max-width: 65ch;
}
.brief p + p {
  margin-top: 12px;
}
.next-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.next-list li {
  display: flex;
  gap: 13px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.next-list li:last-child {
  border: 0;
}
.task-check {
  width: 19px;
  height: 19px;
  border: 1px solid #bfc5b6;
  border-radius: 50%;
  flex: none;
  margin-top: 4px;
}
.task-check.done {
  background: #4f6a48;
  border-color: #4f6a48;
  color: white;
  display: grid;
  place-items: center;
}
.task-check.done .icon {
  width: 12px;
  height: 12px;
}
.next-list h3 {
  font-size: 14px;
}
.next-list p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.task-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
}
.swot-block {
  padding-top: 16px;
  border-top: 1px solid #cfd3c5;
}
.swot-block ul {
  padding-left: 17px;
  font-size: 13px;
  color: #646a5e;
}
.swot-block li + li {
  margin-top: 9px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  background: #fff;
  border: 1px solid #cdd0c5;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  min-height: 40px;
}
.filters input {
  flex: 1;
  min-width: 160px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid #bfc5b6;
  white-space: nowrap;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 55ch;
}
.table-button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font-weight: 600;
  color: var(--ink);
}
.table-button:hover {
  text-decoration: underline;
}
.owner-cell {
  white-space: nowrap;
  font-size: 12px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline > li {
  display: grid;
  grid-template-columns: 98px 28px minmax(0, 1fr);
  gap: 10px;
  min-height: 140px;
}
.timeline time {
  font-size: 12px;
  padding-top: 3px;
}
.time-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.time-dot {
  width: 11px;
  height: 11px;
  border: 2px solid #889875;
  background: var(--paper);
  border-radius: 50%;
  margin: 6px 0 10px;
}
.time-axis:after {
  content: "";
  width: 1px;
  flex: 1;
  background: #d4d9c9;
}
.timeline > li:last-child .time-axis:after {
  display: none;
}
.time-body {
  padding-bottom: 27px;
}
.time-body h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.time-body p {
  font-size: 13px;
  color: var(--muted);
  max-width: 70ch;
}
.time-body .badge {
  margin: 10px 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.metric {
  border-top: 1px solid #c5cbba;
  padding: 20px 0;
}
.metric h3 {
  font-size: 14px;
  font-weight: 500;
}
.metric-value {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 34px;
  line-height: 1.2;
  margin: 15px 0 9px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.metric p {
  font-size: 12px;
  color: var(--muted);
  max-width: 60ch;
}
.metric-source {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}
.metric .badge {
  margin-top: 12px;
}
.growth-funnel {
  margin-top: 30px;
  padding: 24px;
  background: #f0f2e9;
  border: 1px solid #d7dccd;
  border-radius: 12px;
}
.growth-coverage { align-self: flex-start; }
.funnel-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.funnel-stage {
  min-height: 178px;
  padding: 16px;
  background: #fff;
  border-top: 4px solid #657c59;
  position: relative;
}
.funnel-stage.unknown { border-top-style: dashed; }
.funnel-step { font-size: 10px; color: var(--muted); }
.funnel-stage small { display:block; margin-top:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; font-size:9px; }
.funnel-stage h3 { font-size:13px; margin:5px 0 12px; min-height:32px; }
.funnel-stage strong { font-family:"Manrope",Arial,sans-serif; font-size:28px; }
.funnel-stage p { font-size:10px; color:var(--muted); margin-top:8px; }
.funnel-rate { margin-top:14px; padding-top:10px; border-top:1px solid var(--line); font-size:10px; color:#59634f; }
.funnel-limit { margin-top:16px; font-size:11px; color:var(--muted); }
.comparison {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 18px;
}
.comparison-bar {
  height: 80px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
}
.comparison-bar i {
  display: block;
  background: #ccd3c1;
  border-radius: 4px 4px 0 0;
  min-height: 5px;
}
.comparison-bar.after i {
  background: #6c805d;
}
.calculator {
  margin-top: 28px;
  padding: 24px;
  background: #e9ece2;
  border-radius: var(--radius);
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.calculator .field {
  margin: 20px 0 8px;
}
.calculation-output {
  padding-top: 16px;
  margin-top: 15px;
  border-top: 1px solid #c9cfbd;
  font-size: 13px;
}
.calculation-output strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 25px;
  color: #425437;
  display: block;
  margin-bottom: 5px;
}
.quote {
  font-size: 20px;
  line-height: 1.6;
  margin: 24px 0;
  padding: 0;
  max-width: 55ch;
  color: #4e563e;
}
.quote cite {
  font-style: normal;
  font-size: 12px;
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}
.request {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.request:first-child {
  padding-top: 0;
}
.request h3 {
  margin: 10px 0;
  font-size: 16px;
}
.request p {
  font-size: 13px;
  color: #626859;
}
.request-answer {
  background: #eaece3;
  margin-top: 13px;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
}
.request > small {
  display: block;
  margin-top: 10px;
}
.form-box {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}
.form-box h3 {
  margin-bottom: 15px;
}
.form-box .btn {
  width: 100%;
}
.evidence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.evidence {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.evidence h3 {
  font-size: 14px;
  margin: 10px 0;
}
.evidence p {
  font-size: 12px;
  color: var(--muted);
}
.evidence details {
  font-size: 11px;
  margin-top: 12px;
}
.evidence details div {
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.asset-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.asset-list li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.asset-list .icon {
  color: #73825c;
  margin-top: 3px;
}
.asset-list h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.asset-list p {
  color: var(--muted);
  font-size: 12px;
  max-width: 65ch;
}
.asset-list .btn {
  margin-left: auto;
  flex: none;
}
.video-cover {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  max-width: 720px;
}
.video-cover video {
  display: block;
  width: 100%;
}
.sop {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.sop summary {
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}
.sop p,
.sop ol {
  font-size: 13px;
  color: var(--muted);
}
.sop ol li {
  margin: 9px 0;
  max-width: 75ch;
}
.sop .btn {
  margin-top: 12px;
}
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 25px;
}
.journey-stage {
  padding: 18px;
  border-top: 3px solid #a2af8f;
  background: #eaede2;
}
.journey-stage:nth-child(even) {
  background: #f0f1eb;
}
.journey-stage p {
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.chat {
  max-width: 820px;
  margin: 0 auto;
}
.chat-intro {
  padding: 15px 0 24px;
}
.chat-intro .lua-head {
  margin-bottom: 20px;
}
.chat-messages {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.message {
  padding: 22px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.message.lua {
  background: #e9ece0;
}
.message.user {
  background: white;
  border: 1px solid var(--line);
  margin-left: 40px;
}
.chat-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.chat-form textarea {
  flex: 1;
  border: 1px solid #bfc6b3;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  resize: vertical;
  min-height: 80px;
  color: var(--ink);
}
.chat-form .btn {
  height: 48px;
}
.quick-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.settings-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.settings-row h3 {
  font-size: 14px;
}
.settings-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 65ch;
}
.print-note {
  display: none;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 32px;
  width: min(600px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: var(--shadow);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #17171570;
}
.close-drawer {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 30px;
  color: #61675a;
}
#drawer-body h2 {
  padding-right: 25px;
  margin: 10px 0 20px;
}
#drawer-body p {
  margin: 12px 0;
  font-size: 14px;
}
#drawer-body dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  font-size: 13px;
}
#drawer-body dt {
  color: var(--muted);
}
#drawer-body dd {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  background: #2f3c28;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: 90vw;
  z-index: 200;
  transition:
    transform 0.18s,
    opacity 0.18s;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.footer-note {
  margin-top: 35px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.loading-line {
  padding: 40px;
  color: var(--muted);
}
.review-banner {
  background: #f2ead2;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0 0 25px;
}
.source-path {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.onboarding-form {
  max-width: 900px;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.checklist input {
  accent-color: #536544;
  width: 17px;
  height: 17px;
}
.onboarding-result {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 22px 0;
  background: white;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
.inline-link {
  color: #506544;
}
.fact-row {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.fact-row span:first-child {
  min-width: 120px;
  color: var(--muted);
}
.source-freshness {font-size:12px;color:var(--muted);margin:-8px 0 24px;max-width:80ch}
.page {animation:page-arrive 180ms ease-out both}
@keyframes page-arrive {from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.client-source {display:block;margin-top:5px;font-size:10px}
.delivery-chart {max-width:850px}
.delivery-row {display:grid;grid-template-columns:150px minmax(60px,1fr) 60px;align-items:center;gap:20px;margin:17px 0;font-size:12px}
.delivery-row strong {font-variant-numeric:tabular-nums;font-size:16px;font-weight:600}
.delivery-bar i {display:block;height:12px;background:#d6dccd;border-radius:3px;overflow:hidden}
.delivery-bar b {display:block;height:100%;background:#647d52}
@media(max-width:700px){.delivery-row{grid-template-columns:100px minmax(50px,1fr) 45px;gap:12px}.delivery-row strong{font-size:13px}}
@media (min-width: 1600px) {
  .page {
    padding: 44px 56px 70px;
  }
  .workspace-columns {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }
  .client-row {
    padding: 27px 0;
  }
  .topbar {
    padding: 0 56px;
  }
}
@media (max-width: 1200px) {
  .workspace-columns {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 23px;
  }
  .page {
    padding: 30px 26px 55px;
  }
  .topbar {
    padding: 0 26px;
  }
  .client-row {
    grid-template-columns: 40px minmax(130px, 1fr) 100px 22px;
    gap: 12px;
  }
  .client-row .row-progress {
    display: none;
  }
  .app-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .request-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 980px) {
  .workspace-columns {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .right-column .side-section {
    margin-top: 0;
  }
  .right-column .side-section:last-child {
    grid-column: 1/-1;
  }
  .app-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .sidebar .wordmark {
    font-size: 19px;
    margin-left: 8px;
  }
  .request-layout {
    grid-template-columns: 1fr;
  }
  .request-layout .form-box {
    order: -1;
  }
  .form-box form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .form-box form .field {
    margin: 6px 0;
  }
  .form-box form .btn {
    align-self: end;
  }
  .top-date {
    display: none;
  }
  .page-intro {
    align-items: start;
  }
  .page-intro .tools {
    flex-wrap: wrap;
  }
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
  .journey {
    grid-template-columns: 1fr 1fr;
  }
  .client-row {
    grid-template-columns: 43px minmax(150px, 1fr) 105px 20px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 40px #17171555;
  }
  .mobile-menu {
    display: inline-flex;
    border: 0;
    background: none;
    padding: 8px;
  }
  .topbar {
    height: 62px;
    padding: 0 17px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .top-actions .btn {
    padding: 8px 11px;
    font-size: 11px;
    min-height: 35px;
  }
  .page {
    padding: 26px 20px 50px;
  }
  .page-intro {
    display: block;
    margin-bottom: 23px;
  }
  .page-intro .tools {
    margin-top: 17px;
  }
  .page-intro p {
    font-size: 13px;
  }
  .operation-strip {
    gap: 19px;
    flex-wrap: wrap;
    padding-bottom: 18px;
  }
  .strip-item {
    font-size: 10px;
  }
  .strip-item strong {
    font-size: 21px;
    margin-right: 4px;
  }
  .client-row {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 20px 0;
  }
  .client-row .phase-column {
    display: none;
  }
  .client-row > .avatar { grid-column:1; grid-row:1 / 3; }
  .client-row > div:nth-child(2) { grid-column:2; grid-row:1; min-width:0; }
  .client-row > div:nth-child(3) { grid-column:2; grid-row:2; min-width:0; display:flex;flex-wrap:wrap;gap:2px 8px; }
  .client-row > .icon { grid-column:3; grid-row:1 / 3; }
  .client-row > div:nth-child(3) p { margin:0; }
  .client-row .avatar {
    width: 37px;
    height: 37px;
    font-size: 10px;
    border-radius: 10px;
  }
  .client-row h3 {
    font-size: 14px;
  }
  .client-row p {
    font-size: 11px;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 23px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }
  .client-heading h1 {
    font-size: 27px;
  }
  .phase-flow {
    gap: 2px;
  }
  .phase-step {
    padding: 10px 6px;
    font-size: 10px;
    text-align: center;
  }
  .phase-step small {
    display: none;
  }
  .brief {
    padding: 20px;
  }
  .brief .lead {
    font-size: 16px;
  }
  .swot-grid,
  .metric-grid,
  .evidence-list {
    grid-template-columns: 1fr;
  }
  .timeline > li {
    grid-template-columns: 64px 20px minmax(0, 1fr);
    gap: 9px;
  }
  .timeline time {
    font-size: 10px;
  }
  .time-body h3 {
    font-size: 16px;
  }
  .metric-grid {
    gap: 7px;
  }
  .growth-funnel { padding:18px; }
  .funnel-stages { grid-template-columns:1fr 1fr; }
  .metric-value {
    font-size: 32px;
  }
  .calculator {
    padding: 20px;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calculator .field {
    margin: 10px 0;
  }
  .section-head {
    align-items: start;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .section-head p {
    font-size: 12px;
  }
  .request-layout {
    gap: 20px;
  }
  .form-box form {
    display: block;
  }
  .form-box form .field {
    margin: 12px 0;
  }
  .form-row,
  .checklist {
    grid-template-columns: 1fr;
  }
  .asset-list li {
    flex-wrap: wrap;
  }
  .asset-list li > div {
    flex: 1;
    min-width: 180px;
  }
  .asset-list .btn {
    margin-left: 33px;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .message {
    padding: 18px;
    font-size: 13px;
  }
  .message.user {
    margin-left: 20px;
  }
  .chat-form {
    display: block;
  }
  .chat-form textarea {
    width: 100%;
  }
  .chat-form .btn {
    margin-top: 10px;
    float: right;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 30px 25px;
    gap: 35px;
  }
  .login-story h1 {
    font-size: 37px;
    max-width: 14ch;
  }
  .login-story p {
    margin-top: 15px;
    font-size: 13px;
  }
  .login-note {
    display: none;
  }
  .login-form-wrap {
    padding: 30px 25px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .footer-note {
    display: block;
  }
  .footer-note span {
    display: block;
    margin-top: 5px;
  }
  td,
  th {
    padding: 13px 8px;
  }
  .settings-row {
    display: block;
  }
  .settings-row .badge {
    margin-top: 12px;
  }
}
.analytics-panel{border-top:4px solid var(--accent);}
.analytics-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0;}
.analytics-filters .analytics-presets{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;}
.analytics-presets .btn.active{background:var(--ink);color:white;border-color:var(--ink);}
.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0;}
.analytics-kpis>div{border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--surface);}
.analytics-kpis small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:10px;}
.analytics-kpis strong{display:block;font-family:var(--display);font-size:25px;margin-top:7px;}
.analytics-bars{height:120px;display:flex;align-items:flex-end;gap:4px;border-bottom:1px solid var(--line);margin:12px 0 22px;overflow:hidden;}
.analytics-bars span{min-width:4px;flex:1;max-width:24px;background:var(--accent);border-radius:3px 3px 0 0;}
.analytics-limit{font-size:11px;margin-top:14px;line-height:1.55;}
.strategy-hero{padding:30px;border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:14px;background:var(--surface);margin-bottom:28px;}
.strategy-hero small{text-transform:uppercase;letter-spacing:.1em;color:var(--accent);font-weight:800;}
.strategy-hero h3{font-family:var(--display);font-size:clamp(24px,3vw,38px);line-height:1.15;max-width:28ch;margin:10px 0;}
.strategy-hero p{color:var(--muted);max-width:70ch;}
.allocation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;}
.allocation-grid article{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface);}
.allocation-grid strong{font-family:var(--display);font-size:34px;color:var(--accent);}
.allocation-grid p{font-size:12px;color:var(--muted);line-height:1.5;}
.source-catalog{display:grid;gap:12px;}
.source-item{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--surface);}
.source-item small{color:var(--accent);text-transform:uppercase;letter-spacing:.08em;font-weight:800;}
.source-item h3{margin:6px 0;}.source-item p{margin:4px 0;color:var(--muted);font-size:12px;max-width:70ch;}
@media(max-width:820px){.analytics-filters{grid-template-columns:1fr 1fr}.analytics-filters label:last-of-type{grid-column:1/-1}.analytics-kpis{grid-template-columns:1fr 1fr}.source-item{align-items:flex-start;flex-direction:column}.allocation-grid{grid-template-columns:1fr}}
@media(max-width:520px){.analytics-filters{grid-template-columns:1fr}.analytics-filters label:last-of-type{grid-column:auto}.analytics-kpis{grid-template-columns:1fr 1fr}.analytics-kpis strong{font-size:20px}}

.junior-results { margin: 24px 0; }
.result-entry-list { display: grid; gap: 14px; margin: 18px 0 24px; }
.result-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: white; }
.result-entry .section-head { margin-bottom: 14px; }
.result-entry-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.result-entry-values span { display: block; color: var(--muted); font-size: 12px; }
.result-entry-values strong { display: block; color: var(--ink); font-size: 15px; margin-top: 4px; }
.result-entry-form .form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.result-entry-form .field { min-width: 0; }
.result-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.result-entry-form .result-form-actions .btn { width: auto; min-width: 150px; }
.result-entry-form [hidden] { display: none !important; }
@media (max-width: 760px) {
  .result-entry-form .form-row, .result-entry-values { grid-template-columns: 1fr; }
  .result-entry-form .result-form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .tabs,
  .tools,
  .btn,
  .filters,
  .chat-form,
  .quick-prompts,
  .close-drawer,
  #toast {
    display: none !important;
  }
  .app-shell,
  .workspace-columns,
  .request-layout {
    display: block;
  }
  .page {
    padding: 0;
    max-width: none;
  }
  .section {
    break-inside: avoid;
  }
  .brief {
    border: 0;
    padding: 0;
  }
  .print-note {
    display: block;
    font-size: 10px;
  }
  .footer-note {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .metric-value {
    font-size: 24px;
  }
  .calculator {
    break-inside: avoid;
  }
  .page-intro {
    margin-top: 0;
  }
}

/* Contextual help works with hover, keyboard focus and touch. */
.context-help{display:inline-block;position:relative;vertical-align:middle;text-transform:none;letter-spacing:normal;font-weight:400;font-size:12px}
.context-help button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #9a8b68;border-radius:50%;cursor:pointer;list-style:none;color:#66572e;background:#fffaf0;font-weight:700}
.context-help button::-webkit-details-marker{display:none}
.context-help button:focus-visible{outline:3px solid #92712c;outline-offset:3px}
.context-help-content{display:none;position:absolute;z-index:30;inset-inline-start:0;top:100%;width:min(270px,70vw);padding:14px;background:#24231f;color:#fffdf7;border-radius:8px;font-size:13px;line-height:1.55;box-shadow:0 8px 25px #0003;white-space:normal}
.context-help.is-open .context-help-content,.context-help:focus-within .context-help-content{display:block}
@media(hover:hover){.context-help:hover .context-help-content{display:block}}
.welcome-access{padding:24px;margin-bottom:28px;border:1px solid #bda979;border-radius:12px;background:#fff9e9;display:flex;gap:20px;align-items:center;justify-content:space-between}
.welcome-access h2{font-size:20px;margin-bottom:8px}.welcome-access p{max-width:660px;line-height:1.6}.welcome-actions{display:flex;gap:10px;flex-wrap:wrap}
.account-password .form-box{max-width:600px;margin-top:20px}.account-password small{display:block;margin-top:12px;line-height:1.5}.account-access p{margin:14px 0;overflow-wrap:anywhere}
.section-explanation{font-size:13px;line-height:1.6;color:#665f52;margin:8px 0 24px;max-width:900px}
.ticket-comment{border-bottom:1px solid #ddd5c7;padding:14px 0}.ticket-comment small{display:block;color:#6b6458;margin-top:5px}.ticket-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-top:10px}
.ticket-thread{max-height:45vh;overflow:auto;margin:20px 0}.request p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.welcome-access{display:block;padding:18px}.welcome-actions{margin-top:16px}.welcome-actions .btn{width:100%}.context-help-content{position:fixed;left:6vw;right:6vw;top:auto;bottom:24px;width:auto;max-height:40vh;overflow:auto}.tabs{padding-bottom:8px}}

@media(max-width:700px){.context-help.is-open{display:block;margin:8px 0}.context-help-content{position:static;inset:auto;width:auto;max-width:calc(100vw - 64px);max-height:none;margin:8px 0;line-height:1.6}.context-help:not(.is-open) .context-help-content{display:none}}

.chat .message{font-size:16px;line-height:1.7;overflow-wrap:anywhere}.lua-sources{white-space:normal;margin:14px 0;padding-left:22px}.lua-sources a{color:#6f5313;text-decoration:underline}.lua-sources small{display:block;color:var(--muted)}.lua-help,.lua-suggestions{margin-top:14px}.chat .message small{font-size:13px}.lua-help .btn{white-space:normal}
