:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #677083;
  --line: #d8dee8;
  --blue: #2458d3;
  --blue-soft: #eaf0ff;
  --green: #15803d;
  --green-soft: #e8f7ee;
  --amber: #b45309;
  --amber-soft: #fff3d6;
  --red: #b91c1c;
  --red-soft: #ffe7e7;
  --shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f6f7f9 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

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

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
}

button:hover {
  border-color: var(--blue);
}

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

.sidebar {
  background: #172033;
  color: #f8fafc;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}

.brand strong {
  display: block;
  font-size: 22px;
}

.brand span {
  color: #cbd5e1;
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  width: 100%;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border-color: transparent;
  color: #e5e7eb;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.main {
  min-width: 0;
}

.topbar {
  background: rgba(246, 247, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.home-actions {
  display: none;
}

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

.topbar p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 14px;
}

.content {
  padding: 24px 26px 40px;
  max-width: 1120px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.05);
  padding: 16px;
}

.focus-panel {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 58%, #ecfdf5 100%);
}

.focus-panel h2 {
  font-size: 26px;
  line-height: 1.2;
  max-width: 820px;
}

.sparkline {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin: 16px 0;
  max-width: 760px;
  padding: 12px 14px;
}

.sparkline span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sparkline strong {
  font-size: 17px;
}

.autopilot-panel,
.possibility-panel,
.radar-panel,
.lift-panel {
  background: #ffffff;
}

.lift-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 55%, #ecfeff 100%);
}

.lift-panel h2 {
  font-size: 22px;
  line-height: 1.2;
}

.win-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.win-list div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

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

.eyebrow {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.calm-score {
  color: var(--green);
  font-size: 30px;
}

.compact-progress {
  margin-top: 14px;
}

.compact-progress .score-row {
  grid-template-columns: 96px 1fr 44px;
  font-size: 13px;
}

.mini-update {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.mini-update:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.doc-pipeline h2 {
  font-size: 20px;
  line-height: 1.25;
  max-width: 620px;
}

.ritual-list {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}

.ritual-list li {
  margin: 4px 0;
}

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

.compass-list div {
  border-left: 3px solid var(--blue);
  background: #f8fafc;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

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

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-list span {
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

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

.panel-head h2,
.panel-head p {
  margin-bottom: 0;
}

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

.radar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.radar-card strong {
  display: block;
  margin: 3px 0 5px;
}

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

.radar-type {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.minimal-home {
  align-content: center;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 760px;
  min-height: calc(100vh - 170px);
  padding: 24px 0;
}

.wave-mark {
  background:
    radial-gradient(circle at 70% 35%, rgba(20, 184, 166, 0.22), transparent 32%),
    linear-gradient(135deg, #dbeafe, #ecfeff 55%, #ecfdf5);
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  height: 78px;
  position: relative;
  width: 78px;
}

.wave-mark::before {
  border: 7px solid #2458d3;
  border-left-color: transparent;
  border-bottom-color: #14b8a6;
  border-radius: 50%;
  content: "";
  height: 38px;
  left: 17px;
  position: absolute;
  top: 18px;
  transform: rotate(-18deg);
  width: 38px;
}

.tiny-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.minimal-home h2 {
  font-size: 40px;
  line-height: 1.08;
  margin: 0;
  max-width: 720px;
}

.minimal-next {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 720px;
}

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

.minimal-capture {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 620px;
  padding-top: 18px;
}

.minimal-capture textarea {
  min-height: 74px;
}

.one-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.ocean-card {
  display: grid;
  gap: 18px;
  max-width: 680px;
  width: 100%;
}

.ocean-card h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0;
}

.answer-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.answer-box span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.answer-box strong {
  font-size: 21px;
  line-height: 1.25;
}

.answer-box p {
  color: var(--muted);
  margin: 0;
}

.career-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-filter span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.target-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-lanes span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.one-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.signal-line {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding-top: 14px;
}

.signal-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-line strong {
  font-size: 16px;
  line-height: 1.35;
}

.signal-line a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.signal-line a:hover {
  text-decoration: underline;
}

.current-info {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.current-head div {
  display: grid;
  gap: 4px;
}

.current-head strong {
  font-size: 14px;
}

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

.current-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding-top: 10px;
}

.current-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.current-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-item a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.current-item a:hover {
  text-decoration: underline;
}

.current-item p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.current-item button {
  justify-self: start;
}

.source-status {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.source-status span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.source-status .ok {
  background: var(--green-soft);
  color: var(--green);
}

.source-status .issue {
  background: var(--amber-soft);
  color: var(--amber);
}

.one-capture {
  border-top: 0;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 0;
}

.one-capture textarea {
  background: rgba(255, 255, 255, 0.82);
  min-height: 72px;
}

.one-capture button {
  justify-self: start;
}

@media (max-width: 720px) {
  .one-page {
    align-items: flex-start;
    padding: 24px 18px;
  }

  .ocean-card h1 {
    font-size: 32px;
  }
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
}

.panel h2 {
  font-size: 18px;
}

.panel h3 {
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.kpi {
  display: grid;
  gap: 8px;
}

.kpi-value {
  font-size: 34px;
  font-weight: 760;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--blue), #13a36f);
}

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

.score-row {
  display: grid;
  grid-template-columns: 120px 1fr 54px;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.not-started {
  background: #eef2f7;
  color: #475569;
}

.pill.in-progress {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.blocked {
  background: var(--red-soft);
  color: var(--red);
}

.pill.done {
  background: var(--green-soft);
  color: var(--green);
}

.pill.watch,
.pill.idea {
  background: #eef2f7;
  color: #475569;
}

.pill.apply,
.pill.prototype,
.pill.contacted {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.applied,
.pill.published,
.pill.met,
.pill.polished {
  background: var(--green-soft);
  color: var(--green);
}

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

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 880px;
}

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

th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td input,
td textarea,
td select,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.danger {
  color: var(--red);
  border-color: #fecaca;
}

.compact {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 13px;
}

.empty {
  background: #f8fafc;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.milestone {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 5px;
}

.milestone.done .dot {
  background: var(--green);
}

.milestone.blocked .dot {
  background: var(--red);
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

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

.update-image {
  display: block;
  max-width: 420px;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin: 10px 0;
}

.suggestions {
  background: var(--blue-soft);
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  padding: 12px;
}

.suggestions ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

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

.role-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

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

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

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

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

  .cols-2,
  .cols-3,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
