:root {
  --ink: #0a253d;
  --navy: #102f4d;
  --blue: #1477d4;
  --blue-soft: #eaf5ff;
  --orange: #f36d21;
  --orange-soft: #fff2e9;
  --green: #11a876;
  --gold: #e6a400;
  --purple: #7568ea;
  --red: #d95745;
  --text: #233344;
  --muted: #728294;
  --line: #d8e5f0;
  --paper: #fbfcfd;
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 26px 70px rgba(12, 44, 74, 0.14);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef4f8;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(243, 109, 33, 0.08), transparent 28%),
    linear-gradient(165deg, rgba(20, 119, 212, 0.11), transparent 48%),
    #eef4f8;
  letter-spacing: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 253, 0.94)),
    url("./assets/plan-bg.png") center / cover no-repeat;
}

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 8px;
  border: 1px solid rgba(190, 215, 237, 0.94);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(13, 49, 80, 0.16);
}

.login-card img {
  width: 174px;
  height: auto;
  display: block;
}

.login-card h1 {
  margin: 34px 0 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 950;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.login-form {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #6d7b8b;
  font-size: 13px;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 850;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 119, 212, 0.12);
}

.login-message {
  min-height: 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 119, 212, 0.1), transparent 28%),
    linear-gradient(235deg, rgba(243, 109, 33, 0.08), transparent 34%),
    #eef4f8;
}

.admin-topbar,
.client-view-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(194, 213, 231, 0.75);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
}

.admin-topbar div,
.client-view-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar img,
.client-view-toolbar img {
  width: 148px;
  height: auto;
}

.admin-topbar strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.admin-topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.bi-hero {
  min-height: 210px;
  padding: 34px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(120deg, rgba(10, 37, 61, 0.96), rgba(16, 47, 77, 0.88)),
    url("./assets/plan-bg.png") center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.bi-hero p {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 950;
}

.bi-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 950;
}

.bi-hero span {
  display: block;
  max-width: 700px;
  margin-top: 14px;
  color: #c4d6e8;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.admin-search {
  min-width: 360px;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-weight: 800;
}

.kpi-grid,
.bi-grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  margin-top: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-grid article,
.bi-card,
.admin-card {
  border-radius: 8px;
  border: 1px solid rgba(194, 213, 231, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(12, 44, 74, 0.08);
}

.kpi-grid article {
  min-height: 130px;
  padding: 22px;
}

.kpi-grid span,
.kpi-grid b {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.kpi-grid strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.bi-grid {
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
}

.bi-card,
.admin-card {
  padding: 24px;
}

.bi-card-title,
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bi-card-title h2,
.admin-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.bi-card-title span,
.admin-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 720;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.bar-row span,
.bar-row b {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.bar-row div {
  height: 12px;
  border-radius: 999px;
  background: #edf4fa;
  overflow: hidden;
}

.bar-row i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.mini-columns {
  min-height: 180px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
}

.mini-col {
  flex: 1;
  min-width: 36px;
  height: 150px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  text-align: center;
}

.mini-col i {
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.mini-col b,
.mini-col span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-card {
  margin-top: 16px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

.admin-table th {
  padding: 13px 12px;
  color: #6b7c8e;
  background: #f3f8fc;
  font-size: 12px;
  font-weight: 950;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 12px;
  border-top: 1px solid #e2edf6;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  vertical-align: top;
}

.admin-table td strong {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.admin-table small {
  color: var(--muted);
  font-size: 11px;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell a,
.actions-cell button {
  margin-right: 8px;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.empty-text {
  color: var(--muted);
  font-weight: 800;
}

.client-view-page {
  background: #eef4f8;
}

.client-view-toolbar {
  justify-content: space-between;
}

.client-view-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px;
}

.plan-tools {
  width: min(100%, 440px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-tools input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(194, 213, 231, 0.75);
  backdrop-filter: blur(22px);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.toolbar-brand img {
  width: 148px;
  height: 31px;
  object-fit: contain;
}

.toolbar-brand strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.toolbar-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.save-pill {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  background: #eafaf4;
  border: 1px solid #b6ead4;
  font-size: 12px;
  font-weight: 850;
}

.btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 44, 74, 0.13);
}

.btn:disabled,
.btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.btn.ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #ff8a44, var(--orange));
}

.btn.soft {
  color: var(--blue);
  background: #edf7ff;
  border: 1px solid #bddcff;
}

.btn.dark {
  color: #fff;
  background: var(--ink);
}

.workspace {
  max-width: 1780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 386px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.control-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(190, 211, 232, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.control-panel::-webkit-scrollbar {
  width: 8px;
}

.control-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c5d5e4;
}

.control-card {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.control-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.control-title span {
  width: 22px;
  height: 3px;
  background: var(--blue);
}

.control-title.orange span {
  background: var(--orange);
}

.control-title.green span {
  background: var(--green);
}

.control-title.blue span {
  background: var(--blue);
}

.control-title.muted span {
  background: var(--ink);
}

.control-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

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

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbddeb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: 0;
  font-size: 14px;
  font-weight: 720;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input {
  height: 38px;
  padding: 0 11px;
}

textarea {
  min-height: 72px;
  padding: 10px 11px;
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 119, 212, 0.12);
}

.split-fields,
.money-inputs {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.split-fields {
  grid-template-columns: 1fr 1fr;
}

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

.money-inputs label:last-child {
  grid-column: span 2;
}

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

.choice-row input,
.tax-inputs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row span,
.tax-inputs label {
  min-height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: #f8fbfe;
  border: 1px solid #d6e4f0;
  font-size: 13px;
  font-weight: 850;
}

.choice-row input:checked + span {
  color: var(--green);
  background: #eafaf4;
  border-color: #9ddebf;
}

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

.tax-inputs label:has(input:checked) {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #ffcaa4;
}

.node-editors {
  display: grid;
  gap: 10px;
}

.node-editor {
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.node-editor summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.node-editor summary::-webkit-details-marker {
  display: none;
}

.node-editor summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.node-editor-body {
  padding: 0 13px 13px;
  display: grid;
  gap: 10px;
}

.preview-area {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.plan-page {
  width: min(1280px, 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 214, 236, 0.86);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 34px 90px rgba(13, 49, 80, 0.18);
}

.ambient-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.84) 450px, rgba(249, 252, 255, 0.95) 100%),
    linear-gradient(110deg, rgba(20, 119, 212, 0.12), transparent 34%),
    linear-gradient(250deg, rgba(243, 109, 33, 0.09), transparent 40%),
    url("./assets/plan-bg.png") top center / 1360px auto no-repeat;
  pointer-events: none;
}

.hero-section,
.info-strip,
.capital-section,
.solution-section,
.journey-section,
.client-footer {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 410px;
  padding: 42px 54px 36px;
}

.client-nav {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.client-nav img {
  width: 190px;
  height: 40px;
  object-fit: contain;
}

.client-nav span {
  color: #718398;
  font-size: 13px;
  font-weight: 850;
}

.hero-content {
  max-width: 1080px;
  margin-top: 68px;
}

.title-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hero-icon {
  width: 42px;
  height: 42px;
  margin-top: 4px;
  border-radius: 12px;
  display: inline-block;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 68% 32%, #ffffff 0 11%, transparent 12%),
    linear-gradient(135deg, var(--orange), #ffaf62);
  box-shadow: 0 14px 28px rgba(243, 109, 33, 0.22);
  position: relative;
}

.hero-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 950;
}

.hero-content h1 {
  margin: 40px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 4.25vw, 58px);
  line-height: 1.16;
  font-weight: 950;
  max-width: 1120px;
}

.subtitle {
  max-width: 820px;
  margin: 12px 0 0;
  color: #5f7083;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 850;
}

.info-strip {
  margin: -8px 54px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.party-panel {
  min-height: 176px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(200, 219, 237, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.party-panel span {
  width: 78px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #bde0ff;
  font-size: 13px;
  font-weight: 950;
}

.party-panel.owner span {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #ffcaa4;
}

.party-panel b {
  display: block;
  margin-top: 22px;
  color: #6f7f91;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.party-panel p {
  min-height: 56px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 880;
  white-space: pre-line;
}

.section-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
}

.section-icon {
  width: 34px;
  height: 34px;
  margin-top: 3px;
  border-radius: 10px;
  display: block;
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce8f2;
  box-shadow: 0 10px 22px rgba(13, 49, 80, 0.06);
}

.section-icon::before,
.section-icon::after {
  content: "";
  position: absolute;
}

.money-icon {
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.98), #fff),
    #fff;
  border-color: #ffd7bf;
}

.money-icon::before {
  left: 8px;
  top: 19px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 999px;
}

.money-icon::after {
  left: 8px;
  top: 9px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 7px, rgba(243, 109, 33, 0.2) 7px 9px, transparent 9px),
    #fff;
}

.journey-icon {
  background:
    linear-gradient(180deg, rgba(236, 247, 255, 0.96), #fff),
    #fff;
  border-color: #c4e1fb;
}

.journey-icon::before {
  left: 7px;
  top: 16px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
}

.journey-icon::after {
  left: 6px;
  top: 10px;
  width: 22px;
  height: 14px;
  background:
    radial-gradient(circle at 2px 7px, var(--blue) 0 3px, transparent 3.5px),
    radial-gradient(circle at 11px 7px, var(--gold) 0 3px, transparent 3.5px),
    radial-gradient(circle at 20px 7px, var(--green) 0 3px, transparent 3.5px);
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 950;
}

.section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 680;
}

.capital-section {
  padding: 54px 54px 34px;
}

.capital-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-height: 128px;
  align-items: start;
}

.capital-rail::before {
  content: "";
  position: absolute;
  left: 6.8%;
  right: 6.8%;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--purple), var(--green), var(--blue), var(--red));
}

.fund-point {
  position: relative;
  min-width: 0;
  padding-top: 54px;
  text-align: center;
}

.fund-point::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 0 7px rgba(20, 119, 212, 0.1);
}

.fund-point.accent-orange::before {
  border-color: var(--orange);
  box-shadow: 0 0 0 7px rgba(243, 109, 33, 0.1);
}

.fund-point.accent-gold::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 7px rgba(230, 164, 0, 0.1);
}

.fund-point.accent-purple::before {
  border-color: var(--purple);
  box-shadow: 0 0 0 7px rgba(117, 104, 234, 0.1);
}

.fund-point.accent-green::before {
  border-color: var(--green);
  box-shadow: 0 0 0 7px rgba(17, 168, 118, 0.1);
}

.fund-point.accent-red::before {
  border-color: var(--red);
  box-shadow: 0 0 0 7px rgba(217, 87, 69, 0.1);
}

.fund-point span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.fund-point strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
}

.solution-section {
  margin: 0 54px;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 16px;
}

.solution-card {
  min-height: 142px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(200, 219, 237, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.card-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.payment-methods {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.payment-methods span,
.tax-wall span {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #718398;
  border: 1px solid #d2e2ef;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.payment-methods span.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.payment-card p {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 850;
  white-space: pre-line;
}

.tax-wall {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tax-wall span.active {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #ffcaa4;
}

.journey-section {
  padding: 58px 54px 52px;
}

.journey-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.journey-line::before {
  content: "";
  position: absolute;
  left: 6.8%;
  right: 6.8%;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green), var(--gold), var(--red), var(--green), var(--orange));
}

.journey-node {
  position: relative;
  min-width: 0;
  padding-top: 68px;
}

.journey-node::before {
  content: attr(data-index);
  position: absolute;
  left: 50%;
  top: 18px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85);
}

.journey-card {
  min-height: 336px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(200, 219, 237, 0.92);
  background: rgba(255, 255, 255, 0.88);
}

.journey-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  text-align: center;
}

.journey-date {
  min-height: 28px;
  margin: 8px auto 14px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f2f7fb;
  border: 1px solid #d9e7f3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;
}

.journey-fields {
  display: grid;
  gap: 9px;
}

.journey-field {
  min-height: 74px;
  padding: 10px;
  border-radius: 8px;
  background: #fbfdff;
  border: 1px solid #e0ebf4;
}

.journey-field b {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
}

.journey-field.owner b {
  color: var(--green);
}

.journey-field.note b {
  color: var(--orange);
}

.journey-field p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  white-space: pre-line;
}

.client-footer {
  min-height: 64px;
  padding: 18px 54px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: #fff;
}

.client-footer strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.client-footer span {
  margin-left: auto;
  color: #c2d7eb;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-align: right;
}

.flash {
  animation: flash 0.55s ease;
}

@keyframes flash {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 109, 33, 0.36), 0 34px 90px rgba(13, 49, 80, 0.18);
  }

  100% {
    box-shadow: 0 0 0 22px rgba(243, 109, 33, 0), 0 34px 90px rgba(13, 49, 80, 0.18);
  }
}

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

  .control-panel {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .app-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .hero-section {
    min-height: 340px;
  }

  .hero-content {
    margin-top: 58px;
  }

  .info-strip,
  .solution-section {
    grid-template-columns: 1fr;
  }

  .capital-rail,
  .journey-line {
    grid-template-columns: 1fr;
  }

  .capital-rail::before,
  .journey-line::before {
    display: none;
  }

  .fund-point {
    padding-top: 0;
    padding-left: 44px;
    text-align: left;
  }

  .fund-point::before {
    left: 12px;
    top: 8px;
    margin-left: 0;
  }

  .journey-node {
    padding-top: 0;
    padding-left: 52px;
  }

  .journey-node::before {
    left: 17px;
    top: 8px;
    margin-left: 0;
  }

  .journey-card {
    min-height: 0;
  }

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

  .client-footer span {
    margin-left: 0;
    text-align: left;
  }

  .bi-hero,
  .admin-topbar,
  .client-view-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search,
  .plan-tools {
    width: 100%;
    min-width: 0;
  }

  .kpi-grid,
  .bi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .workspace,
  .app-toolbar {
    padding: 12px;
  }

  .toolbar-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .split-fields,
  .money-inputs,
  .choice-row,
  .tax-inputs {
    grid-template-columns: 1fr;
  }

  .money-inputs label:last-child {
    grid-column: auto;
  }

  .hero-section,
  .capital-section,
  .journey-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .client-nav {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

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

  .subtitle {
    font-size: 17px;
  }

  .info-strip,
  .solution-section {
    margin-left: 22px;
    margin-right: 22px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .client-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: #fff;
  }

  .app-toolbar,
  .control-panel,
  .client-view-toolbar,
  .admin-topbar {
    display: none !important;
  }

  .workspace,
  .preview-area {
    display: block;
    padding: 0;
  }

  .plan-page {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-section,
  .party-panel,
  .solution-card,
  .journey-card {
    break-inside: avoid;
  }
}
