@font-face {
  font-family: "Phone Finance SC";
  src: url("./assets/fonts/NotoSansSC-UI.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-FFFF;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --text-caption: 0.75rem;
  --text-body: 0.875rem;
  --text-body-lg: 1rem;
  --brand-blue: #2563eb;
  --brand-purple: #6333d8;
  --brand-teal: #007f78;
  --brand-gradient: linear-gradient(
    115deg,
    #315bea 0%,
    #6333d8 65%,
    #8527c7 100%
  );
  --shadow-card: 0 2px 4px #22204c03, 0 8px 28px #22204c04;
  --ink: #202037;
  --muted: #62647a;
  --line: #e4e5ef;
  --accent: #5b32cc;
  --soft: #f0ecfd;
  --bg: #f7f8fc;
  --danger: #b3261e;
  --radius: 12px;
  font-family:
    Inter,
    "Phone Finance SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Noto Sans SC",
    "WenQuanYi Zen Hei",
    "Droid Sans Fallback",
    sans-serif;
  color: var(--ink);
  font-size: 100%;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f1f3f5;
  border-color: #b9c0ca;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--brand-gradient);
  color: #fff;
  border-color: #5b32cc;
}
.primary:hover {
  background: #4925a6;
  color: #fff;
}
.danger {
  color: var(--danger);
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
}
.eyebrow {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #606b78;
  margin-bottom: 10px;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9a81e6;
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.brand-symbol {
  background: var(--brand-gradient);
  color: #fff;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 23px;
  font-weight: 650;
  flex-shrink: 0;
}
.edition {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
  color: #6a7078;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-copy {
  padding: 48px max(48px, 8vw);
  background: #f3f5f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 90px;
  white-space: nowrap;
}
.login-copy h1 {
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: -1.5px;
}
.login-copy > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 410px;
}
.login-features {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}
.login-features > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.login-features b {
  font-size: var(--text-caption);
  color: #7b8490;
  border: 1px solid #d8dfe7;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
}
.login-features span {
  font-weight: 500;
}
.login-features small {
  display: block;
  color: var(--muted);
  font-size: var(--text-caption);
  margin-top: 6px;
  font-weight: 400;
}
.login-footer {
  margin-top: 64px;
  font-size: var(--text-caption);
  color: #7a828b;
  letter-spacing: 1px;
}
.login-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card h2 {
  font-size: 28px;
  margin: 14px 0;
}
.login-card > .muted {
  margin-bottom: 36px;
}
.login-kicker {
  color: var(--accent);
  font-size: var(--text-body);
  font-weight: 600;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: 8px;
}
.login-help {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.9;
}
.login-caption {
  color: #969da6;
  font-size: var(--text-caption);
  margin-top: 60px;
}
.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #fcfcfd;
  border-right: 1px solid var(--line);
  padding: 28px 14px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 10px 26px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 1px;
}
.workspace-label {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  margin-bottom: 18px;
  font-size: var(--text-caption);
}
.workspace-label .edition {
  margin-left: auto;
  font-size: var(--text-caption);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #388667;
  border-radius: 50%;
}
nav {
  overflow: auto;
  flex: 1;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
nav .nav-group {
  color: #606b78;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  margin: 20px 12px 8px;
}
nav .nav-group:first-child {
  margin-top: 6px;
}
nav button {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  font-weight: 400;
  color: #5c6470;
  gap: 12px;
}
nav button:hover {
  background: #f0f2f5;
}
nav button.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 18px 3px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 3px 10px;
  align-items: center;
  font-size: var(--text-caption);
}
.avatar {
  grid-row: span 2;
  background: #e9edf1;
  border: 1px solid #dfe3e8;
  color: #637183;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-caption);
  font-weight: 600;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: var(--muted);
  font-size: var(--text-body);
  justify-content: flex-start;
}
.text-button:hover {
  background: transparent;
  color: var(--accent);
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: var(--text-caption);
  color: #606b78;
  gap: 12px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-divider {
  height: 14px;
  width: 1px;
  background: var(--line);
}
.badge {
  display: inline-flex;
  align-items: center;
  background: #f0f2f5;
  color: #57616f;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: var(--text-caption);
  white-space: nowrap;
}
#menu-toggle {
  display: none;
}
main {
  padding: 32px 36px 20px;
  max-width: 1740px;
  margin: 0 auto;
  min-width: 0;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.page-header h1 {
  margin: 0;
}
.page-header p {
  margin: 8px 0 0;
  font-size: var(--text-body);
}
.header-right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
#updated-at {
  font-size: var(--text-caption);
}
.notice {
  padding: 11px 14px;
  border: 1px solid #e9e0c7;
  background: #fffcf5;
  border-radius: 7px;
  margin-bottom: 22px;
  line-height: 1.7;
  color: #806532;
  font-size: var(--text-caption);
}
.main-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: var(--text-caption);
  color: #606b78;
  gap: 15px;
}
.loading-bar {
  color: var(--accent);
  padding: 12px 0;
  font-size: var(--text-body);
  animation: pulse 1s infinite alternate;
}
.load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff2f0;
  border: 1px solid #f2d5d1;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 7px;
  color: var(--danger);
}
@keyframes pulse {
  to {
    opacity: 0.4;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card {
  padding: 20px 22px;
  position: relative;
}
.card-label {
  font-size: var(--text-body);
  color: #646d78;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-label .nav-icon {
  color: #8b98a8;
}
.card-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.card-note {
  font-size: var(--text-caption);
  margin-top: 12px;
  color: #606b78;
  line-height: 1.5;
}
.card:first-child {
  border-top: 2px solid #3864e8;
}
.card:nth-child(2) {
  border-top: 2px solid #8e46d4;
}
.card:nth-child(3) {
  border-top: 2px solid #00978a;
}
.card:nth-child(4) {
  border-top: 2px solid #5280b8;
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.section-head h2 {
  margin: 0;
}
.section-head .muted {
  font-size: var(--text-caption);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pipeline button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f8f9fb;
  border: 1px solid #edf0f4;
  padding: 18px 12px;
  gap: 10px;
  min-width: 0;
}
.pipeline button:hover {
  border-color: #bacbe5;
  background: #f1f5fb;
}
.pipeline small {
  font-size: var(--text-caption);
  color: #606b78;
  letter-spacing: 1px;
}
.pipeline strong {
  font-size: 25px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.pipeline span {
  font-size: var(--text-caption);
  color: #68737f;
}
.panel-footnote {
  font-size: var(--text-caption);
  color: #606b78;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 20px 0 0;
  line-height: 1.8;
}
.task-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  padding: 14px 0;
  font-size: var(--text-body);
  background: transparent;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.task-row b {
  background: #f0f3f7;
  padding: 3px 8px;
  border-radius: 5px;
  color: #53667e;
  font-weight: 500;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #edf0f3;
  gap: 15px;
}
.ledger-row:last-child {
  border: 0;
}
.ledger-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: var(--text-caption);
}
.ledger-row strong {
  font-size: 17px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-links button {
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 14px;
  gap: 12px;
  border-color: #edf0f3;
}
.quick-links .nav-icon {
  color: var(--accent);
}
.quick-links small {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 400;
}
.empty-compact {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
  font-size: var(--text-body);
}
.empty-compact .nav-icon {
  width: 30px;
  height: 30px;
  color: #a7b0bb;
  margin-bottom: 12px;
  display: block;
  margin-inline: auto;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.panel-heading h2 {
  margin: 0 0 7px;
}
.panel-heading p {
  margin: 0;
  font-size: var(--text-caption);
}
.list-panel {
  padding: 0;
  overflow: hidden;
}
.list-panel .panel-heading {
  padding: 22px 24px 0;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 20px;
}
.filter-bar label {
  margin: 0;
}
.search-field {
  max-width: 330px;
  flex: 1;
}
.status-field {
  width: 140px;
}
.filter-bar input,
.filter-bar select {
  padding: 9px 11px;
  font-size: var(--text-body);
}
.filter-bar > .muted {
  font-size: var(--text-caption);
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-body);
  white-space: nowrap;
}
th {
  text-align: left;
  color: #606b78;
  font-weight: 500;
  padding: 13px 16px;
  background: #f6f8fa;
  border-block: 1px solid var(--line);
  font-size: var(--text-caption);
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf0f3;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  color: #46505d;
}
tbody tr:hover td {
  background: #fafbfd;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-weight: 500;
  color: #202d40;
}
th.money-cell,
td.money-cell {
  text-align: right;
}
td.money-cell {
  font-weight: 550;
  color: #263345;
}
td button {
  font-size: var(--text-caption);
  padding: 4px 7px;
  margin-right: 5px;
  border-color: transparent;
  color: var(--accent);
  background: transparent;
}
td button:hover {
  background: var(--soft);
}
td.actions-cell {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -5px 0 9px -8px #46505d;
  max-width: none;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f0f2f5;
  color: #647080;
  font-size: var(--text-caption);
  font-weight: 500;
}
.status-pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.good {
  color: #2e745b;
  background: #edf6f0;
}
.status-pill.warn {
  color: #96671e;
  background: #fcf5e8;
}
.status-pill.bad {
  color: #b33b36;
  background: #fbeeed;
}
.status-pill.info {
  color: #3168ab;
  background: #edf3fc;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 65px 20px;
}
.empty .nav-icon {
  height: 34px;
  width: 34px;
  color: #abb5c1;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 14px;
  color: #526070;
  margin-bottom: 8px;
}
.empty p {
  font-size: var(--text-body);
  line-height: 1.8;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  font-size: var(--text-caption);
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pagination button {
  font-size: var(--text-caption);
  padding: 7px 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--text-body);
  color: #4b5563;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9dfe6;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
input::placeholder {
  color: #a0a7b0;
  font-size: var(--text-body);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #6333d81a;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.form-note {
  background: #f4f7fb;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  padding: 13px 16px;
  font-size: var(--text-body);
  line-height: 1.8;
  color: #606b78;
  margin-bottom: 24px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}
.field-help {
  font-size: var(--text-caption);
  color: #606b78;
  font-weight: 400;
  line-height: 1.6;
}
.error {
  color: var(--danger);
  margin-top: 14px;
  font-size: var(--text-body);
  line-height: 1.7;
}
.quote-panel {
  max-width: 850px;
}
.quote-panel > h2 {
  margin-bottom: 12px;
}
.confirm-title {
  font-size: 15px;
  margin: 20px 0 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.review-grid > div {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f3;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.review-grid small {
  display: block;
  color: var(--muted);
  font-size: var(--text-caption);
  margin-bottom: 4px;
}
.review-grid strong {
  font-size: var(--text-body);
  font-weight: 500;
}
.lookup-results {
  display: grid;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
  padding-top: 4px;
}
.lookup-results button {
  font-size: var(--text-caption);
  text-align: left;
  justify-content: flex-start;
  padding: 7px 9px;
  white-space: normal;
}
.lookup-results:empty {
  display: none;
}
.lookup-selected {
  font-size: var(--text-caption);
  color: #2f765b;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(780px, 94vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 100px #15223930;
}
dialog::backdrop {
  background: #17213065;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 26px 19px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.dialog-heading h2 {
  margin: 6px 0 0;
  font-size: 19px;
}
.dialog-heading .eyebrow {
  font-size: var(--text-caption);
}
.dialog-heading button {
  font-size: 23px;
  line-height: 1;
  border: 0;
  padding: 4px 8px;
  color: #737d8a;
}
.dialog-heading button:hover {
  background: #f2f4f6;
}
#dialog-content {
  padding: 24px 26px;
}
dialog.detail-dialog {
  width: min(1100px, 96vw);
}
.detail-block {
  margin-top: 24px;
}
.detail-block h3 {
  font-size: 14px;
}
.kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.kv p {
  margin: 0;
  padding: 14px;
  font-size: var(--text-body);
  overflow-wrap: anywhere;
  line-height: 1.8;
  border-bottom: 1px solid #f0f2f4;
}
.detail-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  overflow: auto;
}
.detail-tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  color: var(--muted);
  white-space: nowrap;
}
.detail-tabs button.active {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.detail-hero h3 {
  margin: 0;
  font-size: 20px;
}
.detail-hero p {
  font-size: var(--text-caption);
  margin: 8px 0 0;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--bg);
  padding: 18px;
  border-radius: 8px;
  font-size: var(--text-body);
  max-height: 380px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, 90vw);
  padding: 14px 22px;
  background: #292e35;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 30px #0002;
  z-index: 20;
  line-height: 1.7;
  font-size: var(--text-body);
}
.secret {
  font-family: monospace;
  overflow-wrap: anywhere;
  padding: 18px;
  background: var(--soft);
  border-radius: 8px;
}
@media (min-width: 1550px) {
  main {
    padding: 36px 48px;
  }
  .cards {
    gap: 20px;
  }
  .card {
    padding: 24px;
  }
  .pipeline button {
    padding: 22px 16px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px 16px;
  }
  .card-value {
    font-size: 25px;
  }
  .header-right #updated-at {
    display: none;
  }
  .filter-bar > .muted {
    display: none;
  }
  .workspace-label .edition {
    display: none;
  }
}
@media (max-width: 800px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    position: fixed;
    left: 0;
    top: 60px;
    width: 232px;
    height: calc(100dvh - 60px);
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 12px 0 40px #17213015;
  }
  aside.open {
    transform: translateX(0);
  }
  #menu-toggle {
    display: inline-flex;
    padding: 5px 8px;
    border: 0;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 0 16px;
  }
  .topbar-right > span:last-child,
  .topbar-divider {
    display: none;
  }
  .page-header {
    align-items: flex-start;
  }
  main {
    padding: 24px 16px;
  }
  .page-header h1 {
    font-size: 24px;
  }
  .page-header p {
    max-width: 300px;
  }
  .header-right button {
    font-size: var(--text-caption);
    padding: 8px;
  }
  .filter-bar {
    flex-wrap: wrap;
    padding: 0 16px 16px;
    gap: 8px;
  }
  .search-field {
    min-width: 160px;
  }
  .status-field {
    width: 110px;
  }
  .list-panel .panel-heading {
    padding: 18px 16px 0;
  }
  .panel-heading p {
    line-height: 1.7;
  }
  .pagination {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .panel {
    padding: 18px;
  }
  .list-panel {
    padding: 0;
  }
  .main-footer {
    flex-wrap: wrap;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-copy {
    display: none;
  }
  .login-area {
    min-height: 100vh;
    padding: 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .kv {
    grid-template-columns: 1fr 1fr;
  }
  .pipeline {
    gap: 6px;
  }
  .pipeline button {
    padding: 14px 9px;
  }
  .pipeline span {
    font-size: var(--text-caption);
  }
  .quick-links {
    grid-template-columns: 1fr 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .dialog-heading {
    padding: 20px;
  }
  #dialog-content {
    padding: 20px;
  }
  .card-value {
    font-size: 24px;
  }
  .card-note {
    font-size: var(--text-caption);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.detail-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f6f8fb;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  margin-bottom: 20px;
}
.detail-amounts > div {
  padding: 18px;
}
.detail-amounts small {
  display: block;
  color: var(--muted);
  font-size: var(--text-caption);
  margin-bottom: 9px;
}
.detail-amounts strong {
  font-size: 22px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.wide-field {
  grid-column: 1/-1;
}
@media (max-width: 700px) {
  .detail-amounts > div {
    padding: 12px;
  }
  .detail-amounts strong {
    font-size: 17px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}
.form-field > label {
  margin: 0;
}
.form-field > input[type="checkbox"] {
  align-self: flex-start;
}

.overview-grid > .panel {
  margin-bottom: 0;
}
/* Account login and the shared Phone Finance brand. */
.brand-logo {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}
.account-actions {
  display: flex;
  gap: 12px;
}
.account-actions button {
  font-size: var(--text-caption);
}
.login-shell {
  padding: 22px;
  gap: 0;
  background: #fff;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100dvh;
}
.login-visual {
  position: relative;
  min-height: calc(100dvh - 44px);
  border-radius: 20px;
  overflow: hidden;
  background: #dce2e8;
}
.login-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.login-visual .login-brand {
  position: absolute;
  top: 34px;
  left: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #172b43;
  text-decoration: none;
  margin: 0;
  font-size: 18px;
  z-index: 1;
}
.login-brand small {
  display: block;
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 6px;
  color: #536478;
}
.login-message {
  position: absolute;
  left: 40px;
  top: 145px;
  right: 35px;
  color: #172b43;
}
.login-message .eyebrow {
  color: #5c6e82;
  font-size: var(--text-caption);
  letter-spacing: 2.6px;
}
.login-message h1 {
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 22px 0 15px;
  font-weight: 550;
}
.login-message p {
  font-size: var(--text-body);
  color: #4e6177;
  line-height: 1.8;
  max-width: 280px;
}
.visual-footer {
  position: absolute;
  bottom: 28px;
  left: 38px;
  right: 38px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #40556c;
  font-size: var(--text-caption);
  letter-spacing: 1.6px;
}
.login-area {
  position: relative;
  padding: 70px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 44px);
}
.login-card {
  max-width: 348px;
  width: 100%;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.login-kicker {
  font-size: var(--text-caption);
  color: #58718e;
  font-weight: 500;
  letter-spacing: 1px;
}
.login-card h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 16px 0 13px;
}
.login-card > .muted {
  font-size: var(--text-body);
  color: #606b78;
  margin-bottom: 38px;
}
.login-card > label {
  margin: 22px 0 10px;
  font-size: var(--text-body);
  color: #344255;
}
.login-card > input,
.password-field input {
  height: 46px;
  padding: 12px 14px;
  background: #fff;
  border-color: #dce2e9;
  border-radius: 8px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 64px;
}
.password-field button {
  position: absolute;
  right: 7px;
  top: 7px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #606b78;
  font-size: var(--text-caption);
  padding: 5px 10px;
}
.password-field button:hover {
  background: #f4f6f8;
  color: #263d59;
}
.login-card .primary {
  margin-top: 23px;
  height: 46px;
  border-radius: 8px;
  background: var(--brand-gradient);
  border-color: #5b32cc;
  font-size: var(--text-body);
  padding: 12px 16px;
}
.login-card .primary:hover {
  background: #4925a6;
}
.login-card .error:empty {
  display: none;
}
.login-card .login-help {
  border: 0;
  padding: 0;
  margin: 23px 0 0;
  text-align: center;
  font-size: var(--text-caption);
  color: #606b78;
}
.login-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 50px;
  font-size: var(--text-caption);
  letter-spacing: 0.4px;
  color: #606b78;
}
.login-secure-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #81998c;
}
.login-bottom {
  position: absolute;
  bottom: 24px;
  font-size: var(--text-caption);
  color: #606b78;
  display: flex;
  gap: 14px;
}
.login-bottom span {
  border-left: 1px solid #e2e5ea;
  padding-left: 14px;
}
.mobile-login-brand {
  display: none;
}
@media (min-width: 1700px) {
  .login-message {
    top: 180px;
    left: 64px;
  }
  .login-message h1 {
    font-size: 56px;
  }
  .login-visual .login-brand {
    left: 64px;
    top: 48px;
  }
  .login-card {
    max-width: 390px;
  }
}
@media (max-width: 1000px) {
  .login-message h1 {
    font-size: 37px;
  }
  .login-message {
    left: 28px;
    top: 145px;
  }
  .login-visual .login-brand {
    left: 28px;
  }
  .login-area {
    padding: 60px 32px;
  }
  .login-visual {
    border-radius: 16px;
  }
  .visual-footer {
    left: 28px;
    right: 28px;
  }
  .login-message p {
    max-width: 235px;
  }
}
@media (max-width: 700px) {
  .login-shell {
    padding: 0;
    display: block;
  }
  .login-visual {
    display: none;
  }
  .login-area {
    min-height: 100dvh;
    padding: 90px 28px 80px;
    justify-content: center;
  }
  .mobile-login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 30px;
    left: 28px;
    font-size: 17px;
    font-weight: 600;
    color: #172b43;
  }
  .login-card {
    max-width: 390px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .login-bottom {
    bottom: 24px;
  }
  .login-caption {
    margin-top: 36px;
  }
  .login-card > .muted {
    margin-bottom: 30px;
  }
}

/* Country context and display language are independent settings. */
.regional-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.regional-controls select {
  width: auto;
  max-width: 160px;
  margin: 0;
  padding: 7px 26px 7px 9px;
  font-size: var(--text-caption);
  min-height: 34px;
  border-color: #dce2e9;
  background-color: #fff;
  color: #344255;
}
.login-regional-controls {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 1;
}
html:not([lang="zh-CN"]) .page-header h1 {
  font-size: 24px;
}
html:not([lang="zh-CN"]) .nav-group {
  letter-spacing: 0.5px;
}
html:not([lang="zh-CN"]) #nav button {
  white-space: normal;
  text-align: left;
}
html:not([lang="zh-CN"]) .card strong {
  font-size: 26px;
}
html:not([lang="zh-CN"]) .account-actions {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .topbar-right > span:last-child,
  .topbar-divider {
    display: none;
  }
  .topbar-right .badge {
    font-size: var(--text-caption);
  }
}
@media (max-width: 700px) {
  .login-regional-controls {
    top: 86px;
    right: 28px;
    left: 28px;
    justify-content: flex-end;
  }
  .topbar {
    gap: 6px;
    padding-left: 16px;
    padding-right: 16px;
  }
  #breadcrumb,
  .topbar-right .badge {
    display: none;
  }
  .regional-controls {
    gap: 5px;
  }
  .regional-controls select {
    max-width: 124px;
    padding-left: 7px;
    font-size: var(--text-caption);
  }
  .topbar-right {
    gap: 0;
  }
  html:not([lang="zh-CN"]) .card strong {
    font-size: 22px;
  }
  html:not([lang="zh-CN"]) .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html:not([lang="zh-CN"]) .page-header {
    flex-wrap: wrap;
  }
}

/* Brand system: readable productive typography, restrained chroma and clear focus. */
::selection {
  background: #ded4fb;
  color: #2d195e;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.3;
}
h1,
html:not([lang="zh-CN"]) .page-header h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
button {
  min-height: 40px;
  border-radius: 8px;
}
.primary {
  box-shadow: 0 2px 4px #4e27ae15;
  font-weight: 600;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
input,
select,
textarea {
  min-height: 42px;
  border-color: #c6c8d6;
}
input::placeholder {
  color: #74788b;
}
nav button {
  min-height: 44px;
  font-weight: 500;
  color: #565970;
}
nav button.active {
  box-shadow: inset 3px 0 var(--accent);
}
nav .nav-group {
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-top: 24px;
}
.nav-icon {
  width: 18px;
  height: 18px;
}
aside {
  background: #fff;
  padding: 26px 16px 0;
}
.brand {
  font-size: 18px;
  gap: 10px;
  padding: 0 6px 24px;
}
.brand-logo,
.login-brand img,
.mobile-login-brand img {
  width: 48px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
}
.brand small {
  letter-spacing: 0;
  line-height: 1.5;
}
.workspace-label {
  background: #faf9fe;
  border-color: #e9e4f6;
  flex-wrap: wrap;
}
.workspace-label .edition {
  letter-spacing: 0.4px;
}
.live-dot {
  background: #007f78;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}
.sidebar-foot {
  grid-template-columns: 36px minmax(0, 1fr);
}
.avatar {
  width: 36px;
  height: 36px;
  background: #f0ecfd;
  color: #6030bf;
  border-color: #e5ddf8;
}
#identity {
  overflow-wrap: anywhere;
}
.account-actions {
  flex-wrap: wrap;
  gap: 0 16px;
}
.account-actions button {
  min-height: 32px;
}
.topbar {
  min-height: 68px;
  height: auto;
  padding-block: 12px;
  background: #fff;
  border-top: 3px solid #6333d8;
}
.topbar-left {
  min-width: 0;
}
#breadcrumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right {
  gap: 12px;
  min-width: 0;
}
.topbar-right > span:last-child,
.topbar-divider {
  display: none;
}
.badge {
  border: 1px solid #ddd5f3;
  background: #f6f3fe;
  color: #5530a5;
  border-radius: 6px;
}
.regional-controls select {
  min-height: 38px;
  border-color: #cfd0dc;
}
.page-header {
  align-items: flex-start;
  margin-bottom: 28px;
}
.page-header p {
  max-width: 680px;
  line-height: 1.7;
}
.eyebrow {
  color: #65627b;
  letter-spacing: 1.1px;
}
.header-right {
  padding-top: 6px;
}
.notice {
  border-left: 3px solid #ae822c;
  background: #fffcf5;
  color: #785a20;
}
.card,
.panel {
  box-shadow: var(--shadow-card);
}
.card {
  padding: 22px;
}
.card-label {
  align-items: flex-start;
  gap: 10px;
  color: #56586e;
  font-weight: 500;
}
.card-label .nav-icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  margin-top: -4px;
  background: #f1edfd;
  color: #6433c7;
  border-radius: 8px;
}
.card:nth-child(3) .nav-icon {
  color: #007f78;
  background: #e6f7f2;
}
.card-value {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-top: 20px;
  color: #22213b;
}
.card-note {
  margin-top: 14px;
  line-height: 1.65;
}
.overview-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
}
.section-head {
  align-items: flex-start;
}
.section-head .muted {
  text-align: right;
  max-width: 45%;
  line-height: 1.6;
}
.pipeline {
  gap: 8px;
}
.pipeline button {
  background: #fafaff;
  border-color: #e8e5f2;
  min-width: 0;
}
.pipeline button:hover {
  border-color: #b4a0e3;
  background: #f4f0fc;
}
.pipeline span {
  color: #5c5871;
  line-height: 1.5;
  text-align: left;
}
.pipeline strong {
  color: #3b275f;
  font-weight: 600;
}
.pipeline .stage-share {
  color: #69617d;
  font-size: var(--text-caption);
  letter-spacing: 0;
}
.portfolio-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: var(--text-caption);
}
.portfolio-heading strong {
  display: inline-block;
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.portfolio-chart {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  margin-bottom: 22px;
  background: #edeef4;
}
.portfolio-chart .submitted {
  fill: #8650cc;
}
.portfolio-chart .approved {
  fill: #3673dc;
}
.portfolio-chart .active {
  fill: #00a38e;
}
.portfolio-chart .completed {
  fill: #546bc0;
}
.portfolio-chart .rejected {
  fill: #d47779;
}
.portfolio-chart .cancelled {
  fill: #a2a8bc;
}
.task-row {
  padding: 18px 0;
  gap: 12px;
}
.task-row span {
  text-align: left;
}
.task-row b {
  white-space: nowrap;
  background: #f1edfb;
  color: #643bb0;
  font-size: var(--text-caption);
}
.quick-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-links button {
  text-align: left;
  min-height: 120px;
  background: #fcfbfe;
  border-color: #e8e5f1;
}
.quick-links button:hover {
  border-color: #b9a9df;
  background: #f6f2ff;
}
.ledger-row strong {
  white-space: nowrap;
  color: #37324f;
}
.ledger-row small {
  font-size: var(--text-caption);
}
.panel-footnote {
  font-size: var(--text-caption);
}
.panel-heading h2 {
  font-size: 18px;
}
.filter-bar {
  background: #fafbfe;
  padding-top: 16px;
  padding-bottom: 16px;
  border-block: 1px solid var(--line);
}
.status-field {
  width: 170px;
}
.table-wrap {
  scrollbar-color: #bab3cf #f5f3fa;
}
table {
  font-size: var(--text-body);
}
th {
  font-size: var(--text-caption);
  font-weight: 600;
  background: #f4f3f9;
  color: #5b5870;
  padding-block: 14px;
}
td {
  padding-block: 14px;
  color: #44445c;
}
tbody tr:hover td {
  background: #f7f4ff;
}
td button {
  min-height: 32px;
  padding: 5px 9px;
  font-weight: 500;
}
.status-pill {
  border-radius: 20px;
  padding: 4px 10px;
  line-height: 1.5;
}
.status-pill.good {
  color: #17654e;
  background: #e7f5ef;
}
.status-pill.info {
  color: #3158a1;
  background: #edf1fc;
}
.status-pill.warn {
  color: #795313;
  background: #fff5dd;
}
.pagination {
  background: #fcfbfe;
  min-height: 68px;
}
.form-note {
  background: #f6f3fc;
  color: #625778;
  border-color: #e9e1f6;
}
.form-actions {
  position: sticky;
  bottom: -24px;
  background: #fff;
  padding-bottom: 16px;
  z-index: 1;
}
.detail-amounts {
  background: #f7f4fd;
  border-color: #e4dcf3;
}
.detail-amounts strong {
  font-weight: 600;
}
.dialog-heading {
  border-top: 3px solid #6333d8;
}
.dialog-heading h2 {
  font-size: 20px;
}
.login-shell {
  padding: 20px;
  background: #fbfbfe;
}
.login-visual {
  background: #eeeafa;
  min-height: calc(100dvh - 40px);
}
.login-visual::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    #f4f0ffb3 0%,
    #f8f7ff00 42%,
    #ffffff00 75%,
    #f8f7ffcc 100%
  );
}
.login-visual .login-brand {
  z-index: 2;
  color: #242036;
}
.login-brand img {
  width: 56px;
  height: 40px;
}
.login-brand small {
  letter-spacing: 0.6px;
  color: #59556e;
}
.login-message {
  z-index: 1;
  top: 150px;
}
.login-message h1 {
  font-weight: 600;
  color: #30214b;
  letter-spacing: -1.2px;
}
.login-message p {
  color: #554c69;
  font-size: var(--text-body);
  max-width: 320px;
}
.login-message .eyebrow {
  color: #645075;
  font-size: var(--text-caption);
  letter-spacing: 1.6px;
}
.visual-footer {
  z-index: 1;
  color: #4f4862;
  letter-spacing: 0.6px;
}
.login-area {
  min-height: calc(100dvh - 40px);
}
.login-card {
  max-width: 384px;
}
.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  color: #5b32b5;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.login-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.login-card h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}
.login-card > .muted {
  font-size: var(--text-body);
  line-height: 1.7;
}
.login-card > input,
.password-field input {
  height: 50px;
  border-color: #c7c7d6;
  font-size: var(--text-body-lg);
}
.password-field button {
  top: 5px;
  right: 5px;
  min-height: 40px;
}
.password-field input {
  padding-right: 78px;
}
.login-card .primary {
  height: 50px;
  font-size: var(--text-body);
}
.login-card .login-help,
.login-caption,
.login-bottom {
  font-size: var(--text-caption);
}
.login-caption {
  margin-top: 36px;
}
.login-secure-dot {
  width: 7px;
  height: 7px;
  background: #007f78;
}
.login-bottom {
  max-width: calc(100% - 40px);
  text-align: center;
}
@media (max-width: 1250px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .topbar .badge {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .login-message {
    left: 28px;
    right: 24px;
  }
  .login-message h1 {
    font-size: 38px;
  }
  .login-message p {
    max-width: 240px;
  }
  .login-area {
    padding-inline: 28px;
  }
}
@media (max-width: 800px) {
  aside {
    top: 68px;
    height: calc(100dvh - 68px);
    width: 264px;
  }
  .page-header {
    flex-wrap: wrap;
  }
  .card {
    padding: 18px;
  }
  .topbar {
    padding-inline: 12px;
  }
  .topbar-left,
  .topbar-right {
    gap: 6px;
  }
  .topbar .regional-controls select {
    max-width: 120px;
    padding-right: 17px;
    font-size: var(--text-caption);
  }
  #menu-toggle {
    min-width: 36px;
    padding: 4px;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .section-head .muted {
    text-align: left;
    max-width: none;
  }
  .form-actions {
    bottom: -20px;
  }
  .card-value {
    font-size: 28px;
  }
  .card-label .nav-icon {
    display: none;
  }
}
@media (max-width: 700px) {
  .login-shell {
    padding: 0;
  }
  .login-area {
    min-height: 100dvh;
    padding: 160px 24px 90px;
  }
  .mobile-login-brand {
    left: 24px;
  }
  .login-regional-controls {
    left: 24px;
    right: 24px;
    justify-content: flex-start;
  }
  .login-card h2 {
    font-size: 30px;
  }
  h1,
  html:not([lang="zh-CN"]) .page-header h1 {
    font-size: 28px;
  }
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline span {
    font-size: var(--text-caption);
  }
  .ledger-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-amounts {
    grid-template-columns: 1fr;
  }
  .detail-amounts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.pipeline button[data-status="submitted"] {
  border-top: 2px solid #8650cc;
}
.pipeline button[data-status="approved"] {
  border-top: 2px solid #3673dc;
}
.pipeline button[data-status="active"] {
  border-top: 2px solid #00a38e;
}
.pipeline button[data-status="completed"] {
  border-top: 2px solid #546bc0;
}

/* Keep financial KPIs aligned when translated labels wrap. */
.card-label {
  min-height: 42px;
}
.pipeline .stage-share {
  text-align: left;
}
.workspace-label .edition {
  display: none;
}
.quick-links button {
  justify-content: flex-start;
  gap: 8px;
  min-height: 104px;
}
@media (max-width: 700px) {
  .card-label {
    min-height: 63px;
  }
}
