/* Accounts Studio. The chart is the navigation; decoration never masks the figures. */
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, "Segoe UI", sans-serif;
  --ink: #27332e;
  --muted: #64716b;
  --soft: #f1f3ee;
  --line: #e0e5de;
  background: #f5f6f2;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9b6d20;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
}
.container {
  max-width: 1600px;
}
.apphead {
  background: #192e26;
}
.testbar {
  font-size: 10px;
  letter-spacing: 0.035em;
  background: #f1dfb9;
  color: #503d23;
}
.topline {
  background: #f5f6f2;
  border-bottom-color: #e1e6df;
}
.topline > span:last-child {
  gap: 20px;
}
.topline-search {
  min-height: 32px;
  font-size: 11px;
  gap: 8px;
  border-color: #dce2d8;
  background: #fafbf8;
  padding: 5px 10px;
}
.topline-search .icon {
  width: 14px;
  height: 14px;
}
kbd {
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid #dce1d8;
  border-radius: 4px;
  padding: 2px 5px;
  color: #737b72;
}
.studio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 32px;
}
.studio-heading h1 {
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 550;
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 14px 0 15px;
}
.studio-heading h1 em {
  font-style: normal;
  color: #758475;
  font-weight: 450;
}
.studio-heading p {
  font-size: 12px;
  color: #69776d;
  margin: 0;
}
.studio-heading-actions {
  display: flex;
  gap: 9px;
  padding-bottom: 3px;
}
.studio-heading-actions button {
  font-size: 12px;
  min-height: 46px;
  padding-inline: 16px;
}
.studio-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 22px;
}
.cash-horizon {
  position: relative;
  background: #203c30;
  color: #f9f8ef;
  border-radius: 18px;
  overflow: hidden;
  padding: 28px 30px 0;
  isolation: isolate;
}
.cash-horizon:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -95px;
  top: -160px;
  border: 1px solid #dfedc014;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #ffffff03,
    0 0 0 65px #ffffff02;
  z-index: -1;
}
.horizon-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #c3d6be;
  display: flex;
  gap: 9px;
  align-items: center;
}
.live-point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8b760;
  box-shadow: 0 0 0 4px #e8b76013;
}
.horizon-total {
  font-size: clamp(32px, 3.1vw, 50px);
  font-weight: 550;
  letter-spacing: -2px;
  line-height: 1.2;
  margin: 13px 0 7px;
  font-variant-numeric: tabular-nums;
}
.horizon-top p {
  font-size: 10px;
  color: #b1c5b8;
  margin: 0;
}
.horizon-mark {
  font-size: 56px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -4px;
  color: #e6b971;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
}
.horizon-mark > span {
  font-size: 8px;
  letter-spacing: 2px;
  padding-left: 3px;
  margin-top: 6px;
}
.horizon-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 32px 0 19px;
}
.horizon-caption strong {
  font-size: 12px;
  font-weight: 550;
}
.horizon-caption > span {
  font-size: 9px;
  color: #afc5b7;
}
.horizon-caption .icon {
  width: 13px;
  height: 13px;
  margin-left: 5px;
}
.horizon-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.horizon-amount-short,
.horizon-rounding {
  display: none;
}
.horizon-bucket {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  padding: 10px 2px 12px;
  transition: background 0.18s;
}
.horizon-bucket:hover {
  background: #ffffff0d;
  border: 0;
  transform: translateY(-2px);
}
.horizon-bucket:focus-visible {
  outline-color: #f4cb86;
  outline-offset: 0;
}
.horizon-bucket > strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.horizon-bucket > svg {
  display: block;
  width: 100%;
  height: 106px;
  margin: 5px 0 12px;
  overflow: visible;
}
.horizon-bar {
  fill: #b4cba0;
  transform-origin: center 114px;
  animation: bar-rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.horizon-point {
  fill: #e7f2d9;
}
.horizon-bucket.late .horizon-bar {
  fill: #e8b96f;
}
.horizon-bucket.late .horizon-point {
  fill: #ffe5ba;
}
.horizon-bucket > span {
  font-size: 10px;
  white-space: nowrap;
}
.horizon-bucket > small {
  font-size: 9px;
  color: #a3baa9;
  margin-top: 5px;
}
.horizon-foot {
  border-top: 1px solid #ffffff17;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
}
.horizon-foot > span {
  font-size: 8px;
  color: #9db5a4;
}
.horizon-foot button.link {
  color: #e9dfc8;
  font-size: 10px;
  white-space: nowrap;
  padding-inline: 0;
}
.horizon-foot button.link:hover {
  background: transparent;
}
.horizon-foot .icon {
  width: 13px;
}
.studio-focus,
.studio-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.studio-focus {
  display: flex;
  flex-direction: column;
  padding: 25px;
}
.section-heading {
  gap: 15px;
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.65px;
  line-height: 1.3;
}
.section-heading .kicker {
  font-size: 9px;
  margin-bottom: 10px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.6;
}
.count-pill {
  font-size: 10px;
  padding: 5px 8px;
  min-width: 26px;
  text-align: center;
  border-radius: 7px;
  background: #f0f3ec;
  color: #657159;
}
.focus-tasks {
  display: grid;
  margin-top: 21px;
}
.studio-task {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #edf0ea;
  min-height: 73px;
  text-align: left;
  padding: 12px 0;
}
.studio-task:hover {
  background: #f7f9f4;
  border-color: #e4e9df;
}
.task-symbol {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3ec;
  width: 33px;
  height: 37px;
  border-radius: 8px;
  color: #738365;
}
.task-symbol.urgent {
  background: #fcf0dc;
  color: #a27032;
}
.task-symbol .icon {
  width: 17px;
  height: 17px;
}
.studio-task > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.studio-task strong {
  display: block;
  font-size: 10px;
  font-weight: 650;
}
.studio-task small {
  display: block;
  font-size: 9px;
  color: #7b8379;
  margin-top: 5px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-tail {
  flex: none;
  font-size: 8px;
  font-weight: 500;
  color: #8b7351;
  display: flex;
  align-items: center;
  gap: 7px;
}
.task-tail .icon {
  width: 12px;
  height: 12px;
}
.focus-all {
  margin-top: auto;
  padding: 18px 0 0;
  justify-content: space-between;
  min-height: 45px;
  border: 0;
  background: none;
  border-radius: 0;
  font-size: 10px;
  color: #56674c;
}
.focus-all:hover {
  background: none;
}
.focus-all .icon {
  width: 15px;
  height: 15px;
}
.studio-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}
.studio-metric {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 143px;
}
.studio-metric > span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #6d7a6e;
}
.studio-metric > strong {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1.15px;
  margin: 11px 0 5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.studio-metric > small {
  font-size: 9px;
  color: #71806e;
}
.studio-metric.mint {
  background: #edf2e9;
  border-color: #e0e7da;
}
.studio-metric.peach {
  background: #faf2e5;
  border-color: #ede4d2;
}
.metric-link {
  position: absolute;
  right: 16px;
  top: 34px;
  font-size: 9px !important;
  max-width: 105px;
  color: #5f7457;
}
.metric-link .icon {
  width: 12px;
  height: 12px;
}
.studio-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.studio-panel > .section-heading {
  padding: 24px;
  margin: 0;
}
.studio-panel > .section-heading .link {
  font-size: 10px;
  white-space: nowrap;
}
.studio-panel > .section-heading .link .icon {
  width: 14px;
  height: 14px;
}
.studio-panel .tablewrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.studio-panel .invoices-table th {
  font-size: 8px;
  background: #f8f9f5;
  color: #7b8778;
  padding-top: 13px;
  padding-bottom: 13px;
}
.studio-panel .invoices-table td {
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 10px;
}
.studio-panel .invoices-table td:first-child {
  padding-left: 24px;
}
.studio-panel .invoices-table .invoice-link {
  font-size: 11px;
  font-weight: 700;
}
.studio-panel .invoices-table td:nth-child(2) button {
  font-size: 10px;
}
.studio-panel .invoice-service {
  font-size: 8px;
  margin-top: 5px;
  line-height: 1.7;
}
.studio-panel .badge {
  font-size: 8px;
  padding: 4px 7px;
}
.studio-lower .invoices-table .hide-tablet {
  display: none;
}
.studio-lower .invoices-table col:nth-child(1) {
  width: 32%;
}
.studio-lower .invoices-table col:nth-child(2) {
  width: 26%;
}
.studio-lower .invoices-table col:nth-child(4) {
  width: 23%;
}
.studio-lower .invoices-table col:nth-child(5) {
  width: 19%;
}
.receipt-chart-panel > .section-heading {
  align-items: flex-start;
}
.receipt-chart-panel .section-heading > div > h2 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
}
.receipt-chart-panel .section-heading > .icon {
  padding: 7px;
  box-sizing: content-box;
  border: 1px solid #d9e4d6;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  color: #7c9274;
}
.receipt-weeks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 0 24px;
}
.receipt-week {
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.receipt-week > strong {
  font-size: 8px;
  color: #6a7c60;
  font-weight: 550;
  white-space: nowrap;
}
.receipt-week > svg {
  width: 100%;
  height: 84px;
  border-bottom: 1px solid #e2e8dd;
  margin: 6px 0 9px;
}
.receipt-week rect {
  fill: #b5c7a5;
}
.receipt-week:last-child rect {
  fill: #426a4f;
}
.receipt-week > span {
  font-size: 8px;
  color: #7a8573;
}
.chart-note {
  font-size: 8px;
  color: #84907d;
  margin: 19px 24px 24px;
}
.studio-empty {
  padding: 35px 24px;
  text-align: center;
  max-width: 420px;
  margin: auto;
}
.studio-empty h3 {
  font-size: 15px;
  margin: 15px 0 7px;
}
.studio-empty p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 15px;
}
.studio-empty button {
  font-size: 11px;
}
.studio-focus .studio-empty {
  padding: 24px 10px;
}
.ledger-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 26px;
  font-size: 11px;
  color: #6f7e6f;
  flex-wrap: wrap;
}
.ledger-summary > strong {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.7px;
  color: #283b2c;
}
.ledger-summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #799364;
}
.ledger-divider {
  height: 22px;
  width: 1px;
  background: #dce4d7;
  margin: 0 3px;
}
.ledger-summary-end {
  margin-left: auto;
  font-size: 10px;
}
.ledger-controls {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px 17px;
}
.ledger-controls .search-wrap {
  flex: 1;
  max-width: 510px;
  width: auto;
  position: relative;
}
.ledger-controls input {
  width: 100%;
  min-height: 45px;
  font-size: 12px;
  padding: 12px 38px 12px 42px;
  background: #f9faf7;
}
.ledger-controls .search-wrap > .icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 17px;
  height: 17px;
  color: #7c8d76;
}
.ledger-controls kbd {
  position: absolute;
  right: 13px;
  top: 13px;
}
.sort-control {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #74816d;
}
.sort-control select {
  min-height: 42px;
  font-size: 11px;
  padding: 8px 25px 8px 12px;
}
.ledger-filter-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px 15px;
  border-bottom: 1px solid var(--line);
}
.ledger-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ledger-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  background: none;
  font-size: 10px;
  color: #75846f;
}
.ledger-tabs button[aria-pressed="true"] {
  background: #eaf0e4;
  color: #3c5934;
  font-weight: 700;
}
.ledger-date-filter {
  position: relative;
}
.ledger-date-filter summary {
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: #7a836f;
  white-space: nowrap;
}
.ledger-date-filter summary .icon {
  width: 15px;
  height: 15px;
}
.ledger-date-filter > div {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid #dce5d5;
  box-shadow: 0 8px 35px #203c3018;
  border-radius: 12px;
  padding: 18px;
  width: 320px;
}
.ledger-date-filter label {
  font-size: 10px;
  color: #73816a;
}
.ledger-date-filter input {
  display: block;
  width: 100%;
  font-size: 11px;
  margin-top: 5px;
}
.ledger-date-filter button {
  font-size: 11px;
}
.ledger-footer,
.studio-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #6b7a63;
  padding: 15px 24px;
}
.studio-pagination {
  border-top: 1px solid #e7ece2;
}
.studio-pagination > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.studio-pagination button {
  min-height: 34px;
  font-size: 10px;
  padding: 6px 12px;
}
.ledger-footer {
  background: #f8faf5;
  border-top: 1px solid #e4eade;
}
.ledger-footer a {
  font-size: 10px;
  background: transparent;
  border: 0;
  min-height: 30px;
  padding: 0;
  color: #49673b;
  text-decoration: none;
}
.ledger-footer .icon {
  width: 15px;
  height: 15px;
}
.filter-chip {
  margin: 15px 24px 0;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0 12px;
  background: #f7edd8;
  border-radius: 6px;
  font-size: 10px;
  color: #785b23;
}
.filter-chip button {
  min-height: 30px;
  padding: 2px;
  color: inherit;
}
.studio-skeleton {
  padding: 20px 24px;
  display: grid;
  gap: 15px;
}
.studio-skeleton span {
  display: block;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f4ee, #f8f9f6, #f2f4ee);
  background-size: 200% 100%;
  animation: skeleton-glow 1.8s ease-in-out infinite;
}
.client-profile-top {
  margin-bottom: 28px;
}
.client-profile-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.profile-avatar {
  width: 70px;
  height: 76px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dce6d2;
  color: #537344;
  border: 1px solid #cedac3;
  border-radius: 16px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -1px;
}
.client-profile-identity h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.client-profile-identity p {
  font-size: 11px;
  color: #718267;
  margin: 0;
  overflow-wrap: anywhere;
}
.client-profile-identity .actions {
  margin-left: auto;
}
.client-profile-identity .actions button {
  font-size: 11px;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  align-items: start;
}
.profile-contact {
  padding: 25px;
}
.profile-contact h3 {
  font-size: 16px;
  margin: 18px 0 15px;
}
.profile-contact > a {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #526c44;
  text-decoration: none;
  font-size: 11px;
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.profile-contact > a .icon {
  width: 16px;
  height: 16px;
}
.profile-contact hr {
  border: 0;
  border-top: 1px solid #e3e9df;
  margin: 23px 0;
}
.profile-contact h4 {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7e8d73;
  margin: 24px 0 11px;
}
.profile-contact address {
  font-size: 11px;
  font-style: normal;
  line-height: 1.9;
  color: #5a6a51;
  overflow-wrap: anywhere;
}
.profile-contact > strong {
  font-size: 12px;
}
.repeat-card {
  margin-top: 27px;
  border-radius: 10px;
  padding: 17px;
  background: #f2f5eb;
  display: flex;
  flex-direction: column;
}
.repeat-card .kicker {
  font-size: 8px;
  letter-spacing: 1px;
}
.repeat-card > strong {
  font-size: 24px;
  font-weight: 550;
  margin: 12px 0 4px;
  letter-spacing: -0.8px;
}
.repeat-card > small {
  font-size: 9px;
  color: #7a886f;
}
.repeat-card button {
  margin-top: 15px;
  font-size: 10px;
  min-height: 38px;
  background: white;
  gap: 7px;
}
.repeat-card .icon {
  width: 13px;
  height: 13px;
}
.command-dialog {
  width: min(660px, calc(100vw - 28px));
  max-width: 660px;
  padding: 0;
  align-self: start;
  margin: 14vh auto 0;
  max-height: 74vh;
  border-radius: 17px;
  box-shadow: 0 35px 120px #13271845;
}
.command-dialog::backdrop {
  background: #192e2647;
  backdrop-filter: blur(4px);
}
.command-input {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5ebdf;
}
.command-input > .icon {
  color: #718865;
  width: 21px;
  height: 21px;
}
.command-input input {
  border: 0;
  background: none;
  padding: 0;
  min-height: 35px;
  flex: 1;
  font-size: 14px;
  min-width: 0;
  box-shadow: none;
}
.command-input input:focus {
  outline: 0;
}
.command-close {
  min-height: 27px;
  padding: 3px 7px;
  font-size: 9px;
  color: #7c8873;
}
.command-results {
  max-height: 53vh;
  overflow: auto;
  padding: 12px;
}
.command-section-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #89947f;
  padding: 13px 11px 8px;
}
.command-result {
  display: flex;
  width: 100%;
  border: 0;
  background: none;
  padding: 12px;
  gap: 14px;
  text-align: left;
  min-height: 56px;
  font-size: 12px;
}
.command-result:hover,
.command-result:focus-visible {
  background: #eff4e9;
  outline-offset: -3px;
  outline-color: #a9be91;
}
.command-result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.command-result > span > strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.command-result > span > small {
  display: block;
  max-width: 410px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: #7c8b71;
  margin-top: 4px;
}
.command-result > .icon {
  width: 19px;
  height: 19px;
  color: #718c5e;
  flex: none;
}
.command-avatar {
  width: 32px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e2ead8;
  color: #6a8157;
  font-size: 10px;
  flex: none;
}
.command-money {
  font-size: 11px !important;
  margin-left: auto;
  color: #5b7449;
  white-space: nowrap;
}
.command-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f5f8f0;
  border-top: 1px solid #e1e9d9;
  color: #819373;
  padding: 12px 23px;
  font-size: 9px;
}
.editor .lineitem {
  border: 1px solid #dfe6d6;
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 3px #213b2403;
}
.line-sequence {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #8b997e;
}
.line-sequence > span:first-child {
  font-size: 13px;
  letter-spacing: -0.5px;
  color: #718762;
}
.context-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-radius: 8px;
  background: #edf3e6;
  padding: 12px 14px;
  margin: -8px 0 6px;
}
.context-strip > span {
  font-size: 10px;
  color: #758b63;
  display: flex;
  align-items: center;
  gap: 5px;
}
.context-strip strong {
  font-weight: 650;
  color: #5d774a;
}
.context-strip .icon {
  width: 13px;
  height: 13px;
}
.context-strip > button {
  margin-left: auto;
  font-size: 9px;
  min-height: 27px;
  padding: 0;
  color: #527041;
}
.editor-client-context:empty {
  display: none;
}
.editor-ready {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #ffffff1c;
  padding-top: 20px;
  margin-top: 24px;
  color: #f5f7ef;
}
.ready-orbit {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9fb18b60;
  border-radius: 50%;
  flex: none;
  color: #a0b58f;
}
.ready-orbit.complete {
  background: #d3e4bc;
  color: #315134;
  border-color: #d3e4bc;
}
.ready-orbit .icon {
  width: 16px;
  height: 16px;
}
.editor-ready strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
}
.editor-ready small {
  font-size: 9px;
  display: block;
  line-height: 1.5;
  color: #b1c3a5;
  margin-top: 5px;
}
.invoice-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 25px;
  background: #fff;
  border: 1px solid #dfe6d6;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 25px;
}
.invoice-lifecycle > div {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #939e88;
}
.invoice-lifecycle > div:after {
  content: "";
  height: 1px;
  background: #e2e9da;
  position: absolute;
  width: calc(100% - 135px);
  right: 0;
  top: 50%;
}
.invoice-lifecycle > div:last-child:after {
  display: none;
}
.invoice-lifecycle i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f2f5ed;
  border-radius: 50%;
  border: 1px solid #e1e9d9;
  color: #819473;
  flex: none;
}
.invoice-lifecycle .complete {
  color: #435e35;
}
.invoice-lifecycle .complete i {
  background: #e7efdd;
  border-color: #cddfc0;
  color: #64884b;
}
.invoice-lifecycle .current i {
  border-color: #d9bb7b;
  background: #fcf1da;
  color: #ac883c;
}
.invoice-lifecycle .icon {
  width: 15px;
  height: 15px;
}
.invoice-lifecycle span {
  font-size: 11px;
}
.invoice-lifecycle small {
  display: block;
  font-size: 9px;
  color: #8a987e;
  margin-top: 4px;
}
.invoice-share-card {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 15px;
  background: #eef3e8;
  padding: 20px;
  border: 1px solid #dce6d1;
  border-radius: 12px;
  margin: 20px 0;
}
.invoice-share-card .kicker {
  font-size: 7px;
  letter-spacing: 1px;
  color: #799366;
}
.invoice-share-card h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 9px 0;
}
.invoice-share-card p {
  font-size: 9px;
  line-height: 1.8;
  color: #75856b;
  margin: 0;
}
.invoice-share-card img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid #dce6d0;
  align-self: center;
}
.invoice-share-card button {
  grid-column: 1/-1;
  font-size: 11px;
}
@keyframes bar-rise {
  from {
    transform: scaleY(0.04);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes skeleton-glow {
  to {
    background-position: -200% 0;
  }
}
@keyframes studio-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.studio-overview,
.studio-metrics,
.studio-lower,
.ledger-panel,
.profile-layout {
  animation: studio-enter 0.4s ease-out both;
}
.studio-metrics {
  animation-delay: 0.06s;
}
.studio-lower {
  animation-delay: 0.12s;
}
@media (min-width: 1600px) {
  .container {
    padding-left: 55px;
    padding-right: 55px;
  }
  .studio-task strong {
    font-size: 12px;
  }
  .studio-task small {
    font-size: 10px;
  }
  .task-tail {
    font-size: 9px;
  }
  .horizon-bucket > strong {
    font-size: 14px;
  }
  .studio-metric > strong {
    font-size: 35px;
  }
}
@media (max-width: 1200px) {
  .studio-overview,
  .studio-lower {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr);
    gap: 16px;
  }
  .cash-horizon {
    padding: 24px 20px 0;
  }
  .studio-focus {
    padding: 22px 18px;
  }
  .horizon-caption > span {
    display: none;
  }
  .horizon-foot {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 0;
  }
  .horizon-foot > span {
    width: 100%;
  }
  .horizon-foot button.link {
    min-height: 28px;
  }
  .studio-metrics {
    gap: 16px;
  }
  .studio-metric {
    padding: 20px;
  }
  .studio-heading-actions .studio-command-button {
    display: none;
  }
  .topline time {
    display: none;
  }
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .client-profile-identity {
    flex-wrap: wrap;
  }
  .client-profile-identity .actions {
    margin-left: 90px;
  }
  .receipt-weeks {
    gap: 3px;
    padding: 0 15px;
  }
  .studio-lower .invoices-table col:nth-child(2) {
    width: 29%;
  }
  .studio-lower .invoices-table col:nth-child(4) {
    width: 20%;
  }
  .studio-lower .invoices-table col:nth-child(5) {
    width: 21%;
  }
  .studio-metric > strong {
    font-size: 28px;
  }
}
@media (max-width: 1000px) {
  .studio-overview,
  .studio-lower {
    grid-template-columns: 1fr;
  }
  .studio-focus {
    padding: 23px;
  }
  .focus-tasks {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-top: 10px;
  }
  .studio-task small {
    max-width: 150px;
  }
  .focus-all {
    margin-top: 10px;
  }
  .horizon-total {
    font-size: 44px;
  }
  .horizon-bucket > strong {
    font-size: 15px;
  }
  .horizon-caption > span {
    display: block;
  }
  .horizon-foot {
    flex-wrap: nowrap;
    padding: 0;
  }
  .horizon-foot > span {
    width: auto;
  }
  .horizon-foot button.link {
    min-height: 44px;
  }
  .receipt-chart-panel {
    max-width: none;
  }
  .receipt-week > strong {
    font-size: 11px;
  }
  .receipt-week > svg {
    height: 100px;
  }
  .receipt-week > span {
    font-size: 10px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-contact {
    display: block;
  }
  .client-profile-identity .actions {
    margin-left: auto;
  }
  .studio-metrics {
    gap: 12px;
  }
  .studio-metric {
    padding: 19px 16px;
  }
  .studio-metric > strong {
    font-size: 27px;
  }
  .metric-link {
    position: static;
    margin-top: 8px;
    max-width: none;
    padding: 0;
    justify-content: flex-start;
    min-height: 20px;
  }
  .studio-lower .invoices-table col:nth-child(1) {
    width: 32%;
  }
  .studio-lower .invoices-table col:nth-child(2) {
    width: 29%;
  }
  .studio-lower .invoices-table col:nth-child(4) {
    width: 20%;
  }
  .studio-lower .invoices-table col:nth-child(5) {
    width: 19%;
  }
  .profile-contact .repeat-card {
    max-width: 370px;
  }
  .ledger-controls {
    gap: 12px;
  }
  .ledger-controls input {
    font-size: 11px;
  }
  .sort-control > span {
    display: none;
  }
}
@media (max-width: 720px) {
  .studio-heading {
    margin: 5px 0 24px;
    align-items: flex-start;
  }
  .studio-heading h1 {
    font-size: 37px;
    letter-spacing: -1.7px;
  }
  .studio-heading p {
    font-size: 11px;
    max-width: 230px;
    line-height: 1.7;
  }
  .studio-heading-actions {
    align-self: flex-end;
  }
  .studio-heading-actions button {
    font-size: 11px;
    padding-inline: 12px;
  }
  .studio-heading-actions button .icon {
    width: 15px;
  }
  .topline-search {
    min-height: 35px;
  }
  .topline-search kbd {
    display: none;
  }
  .topline > span:last-child {
    gap: 8px;
  }
  .studio-metrics {
    gap: 9px;
  }
  .studio-metric {
    min-height: 132px;
    padding: 18px 13px;
  }
  .studio-metric > span {
    font-size: 7px;
    letter-spacing: 0.7px;
    line-height: 1.5;
  }
  .studio-metric > strong {
    font-size: 23px;
    letter-spacing: -0.8px;
  }
  .studio-metric > small {
    font-size: 8px;
    line-height: 1.7;
  }
  .client-profile-identity {
    gap: 15px;
  }
  .client-profile-identity h1 {
    font-size: 27px;
  }
  .client-profile-identity .actions {
    margin-left: 0;
    width: 100%;
  }
  .profile-avatar {
    width: 60px;
    height: 68px;
  }
  .studio-panel > .section-heading {
    padding: 21px;
  }
  .studio-panel .invoices-table td:first-child {
    padding-left: 20px;
  }
  .ledger-controls {
    padding: 18px;
    flex-wrap: wrap;
  }
  .ledger-controls .search-wrap {
    max-width: none;
    flex-basis: 100%;
  }
  .sort-control {
    margin-left: auto;
  }
  .sort-control > span {
    display: block;
  }
  .ledger-filter-row {
    padding-inline: 18px;
    gap: 8px;
  }
  .ledger-tabs {
    gap: 2px;
  }
  .ledger-tabs button {
    padding: 5px 9px;
    font-size: 10px;
    min-height: 37px;
  }
  .ledger-date-filter summary {
    font-size: 0;
  }
  .ledger-date-filter summary .icon {
    width: 20px;
    height: 20px;
  }
  .ledger-date-filter > div {
    width: 290px;
  }
  .ledger-summary-end {
    display: none;
  }
  .ledger-summary {
    margin-bottom: 21px;
    font-size: 10px;
  }
  .ledger-footer,
  .studio-pagination {
    padding: 14px 18px;
    font-size: 9px;
  }
  .ledger-footer {
    flex-wrap: wrap;
  }
  .studio-pagination > div {
    gap: 8px;
  }
  .studio-pagination button {
    font-size: 9px;
    padding: 6px 9px;
  }
  .invoice-lifecycle {
    padding: 18px 14px;
    gap: 10px;
  }
  .invoice-lifecycle > div {
    gap: 8px;
  }
  .invoice-lifecycle > div:after {
    display: none;
  }
  .invoice-lifecycle i {
    width: 26px;
    height: 26px;
  }
  .invoice-lifecycle span {
    font-size: 10px;
  }
  .invoice-lifecycle small {
    font-size: 8px;
  }
  .context-strip {
    gap: 8px 15px;
  }
  .context-strip > button {
    margin-left: 0;
  }
  .command-dialog {
    margin-top: 9vh;
  }
  .command-input {
    gap: 10px;
    padding: 14px;
  }
  .command-input input {
    font-size: 12px;
  }
  .command-result {
    gap: 10px;
    padding: 10px;
  }
  .command-result > span > strong {
    font-size: 11px;
  }
  .command-result > span > small {
    max-width: 240px;
    font-size: 9px;
  }
  .command-foot {
    font-size: 8px;
    padding-inline: 15px;
  }
}
@media (max-width: 480px) {
  .studio-heading {
    display: block;
    position: relative;
  }
  .studio-heading h1 {
    font-size: 35px;
  }
  .studio-heading-actions {
    margin-top: 19px;
  }
  .studio-heading-actions button {
    min-height: 44px;
  }
  .studio-heading-actions .studio-command-button {
    display: flex;
    background: transparent;
    font-size: 10px;
  }
  .studio-heading-actions {
    justify-content: space-between;
  }
  .cash-horizon {
    padding: 22px 16px 0;
    border-radius: 14px;
  }
  .horizon-total {
    font-size: 37px;
  }
  .horizon-mark {
    font-size: 44px;
  }
  .horizon-caption {
    margin-top: 26px;
  }
  .horizon-caption > span {
    font-size: 0;
  }
  .horizon-caption > span .icon {
    width: 16px;
    height: 16px;
  }
  .horizon-bucket > strong {
    font-size: 11px;
    letter-spacing: -0.2px;
  }
  .horizon-bucket > svg {
    height: 90px;
  }
  .horizon-bucket > span {
    font-size: 8px;
  }
  .horizon-bucket > small {
    font-size: 8px;
  }
  .horizon-track {
    gap: 0;
  }
  .horizon-foot {
    gap: 7px;
    min-height: 57px;
  }
  .horizon-foot > span {
    font-size: 7px;
    max-width: 140px;
    line-height: 1.7;
  }
  .horizon-foot button.link {
    font-size: 8px;
  }
  .horizon-foot .icon {
    width: 11px;
  }
  .focus-tasks {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .studio-focus {
    padding: 22px;
  }
  .studio-task {
    min-height: 72px;
  }
  .studio-task strong {
    font-size: 11px;
  }
  .studio-task small {
    font-size: 10px;
    max-width: 205px;
  }
  .task-tail {
    font-size: 8px;
    gap: 5px;
  }
  .studio-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .studio-metric {
    padding: 19px 17px;
    min-height: 132px;
  }
  .studio-metric > span {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .studio-metric > strong {
    font-size: 27px;
  }
  .studio-metric > small {
    font-size: 9px;
  }
  .studio-metrics > .studio-metric:last-child {
    grid-column: 1/-1;
    min-height: 110px;
  }
  .studio-metrics > .studio-metric:last-child .metric-link {
    position: absolute;
    right: 20px;
    top: 42px;
  }
  .studio-metrics > .studio-metric:last-child > small {
    max-width: 230px;
  }
  .studio-metrics.client-metrics > .studio-metric:last-child {
    min-height: 130px;
  }
  .studio-panel > .section-heading {
    padding: 20px 18px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .studio-panel .invoices-table td:first-child {
    padding-left: 16px;
  }
  .studio-panel .invoices-table td:last-child {
    padding-right: 16px;
  }
  .studio-panel .invoices-table td {
    font-size: 10px;
  }
  .studio-lower .invoices-table col:nth-child(1) {
    width: 47%;
  }
  .studio-lower .invoices-table col:nth-child(2) {
    width: 28%;
  }
  .studio-lower .invoices-table col:nth-child(5) {
    width: 25%;
  }
  .studio-lower .invoice-service {
    max-width: 130px;
  }
  .studio-panel .invoices-table td:nth-child(2) button {
    font-size: 9px;
    line-height: 1.6;
  }
  .studio-panel .invoices-table .badge {
    font-size: 7px;
  }
  .receipt-weeks {
    padding: 0 18px;
    gap: 3px;
  }
  .receipt-week > strong {
    font-size: 8px;
  }
  .receipt-week > svg {
    height: 85px;
  }
  .receipt-week > span {
    font-size: 8px;
  }
  .ledger-controls input {
    font-size: 11px;
    padding-left: 38px;
  }
  .ledger-filter-row {
    padding-inline: 14px;
  }
  .ledger-tabs button {
    padding-inline: 8px;
    font-size: 9px;
  }
  .studio-pagination {
    gap: 8px;
  }
  .studio-pagination > span {
    font-size: 8px;
  }
  .studio-pagination > div {
    gap: 7px;
  }
  .studio-pagination button {
    min-height: 38px;
  }
  .client-profile-identity {
    gap: 12px;
  }
  .client-profile-identity > div:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
  .client-profile-identity h1 {
    font-size: 24px;
  }
  .client-profile-identity p {
    font-size: 10px;
  }
  .client-profile-identity .actions {
    margin-top: 8px;
  }
  .profile-avatar {
    width: 54px;
    height: 61px;
    border-radius: 12px;
    font-size: 20px;
  }
  .invoice-lifecycle {
    padding: 16px 12px;
  }
  .invoice-lifecycle > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .invoice-lifecycle small {
    font-size: 8px;
  }
  .command-foot > span:last-child {
    display: none;
  }
  .command-money {
    font-size: 9px !important;
  }
  .command-result > span > small {
    max-width: 205px;
  }
  .command-results {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .horizon-bucket:hover {
    transform: none;
  }
}
/* Readability wins over density: secondary labels stay legible on real devices. */
.email-preview-dialog {
  width: min(780px, calc(100vw - 28px));
  max-width: 780px;
  padding: 28px 32px;
}
.email-preview-dialog > .modalhead {
  margin-bottom: 10px;
}
.email-preview-dialog > h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 550;
}
.email-envelope {
  display: grid;
  gap: 12px;
  border: 1px solid #dce5d1;
  border-radius: 10px;
  padding: 17px 19px;
  margin: 20px 0;
  background: #f5f8ef;
}
.email-envelope > div {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 11px;
}
.email-envelope span {
  min-width: 60px;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #5f7251;
  line-height: 1.7;
}
.email-envelope strong {
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.email-visual-preview {
  display: block;
  width: 100%;
  height: 450px;
  border: 1px solid #dfe7d4;
  border-radius: 12px;
  pointer-events: none;
  background: #f1f4ec;
}
.email-text-preview {
  font-size: 11px;
  margin: 16px 0;
  color: #6c805d;
}
.email-text-preview summary {
  cursor: pointer;
  min-height: 35px;
  padding: 8px 0;
}
.email-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #526c3f;
  margin: 18px 0;
}
.email-attachment .icon {
  width: 17px;
  height: 17px;
}
.email-attachment span {
  margin-left: auto;
  font-size: 10px;
  color: #7d906d;
}
@media (max-width: 600px) {
  .email-preview-dialog {
    padding: 22px 18px;
  }
  .email-preview-dialog > h2 {
    font-size: 25px;
  }
  .email-envelope {
    padding: 15px;
    gap: 11px;
  }
  .email-envelope > div {
    gap: 10px;
    font-size: 12px;
  }
  .email-envelope span {
    min-width: 48px;
    font-size: 10px;
  }
  .email-visual-preview {
    height: 350px;
  }
  .email-attachment {
    font-size: 11px;
  }
  .email-preview-dialog .modalactions {
    flex-wrap: wrap;
  }
  .email-preview-dialog .modalactions button {
    flex: 1;
    white-space: nowrap;
    font-size: 11px;
  }
}
.security-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}
.security-hero {
  padding: 30px 33px;
  border-radius: 16px;
  background: #203c2b;
  color: #edf4e6;
}
.security-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 59px;
  border: 1px solid #658555;
  border-radius: 50%;
  color: #c4dda8;
  margin-bottom: 27px;
  box-shadow: 0 0 0 7px #a6c2850a;
}
.security-orbit .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.3;
}
.security-hero > .kicker {
  color: #9eb68a;
  font-size: 9px;
}
.security-hero h2 {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 15px 0;
}
.security-hero > p {
  font-size: 12px;
  line-height: 1.9;
  color: #b2c6a3;
}
.security-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #d9c298;
  border-top: 1px solid #d3e8bd1a;
  padding-top: 22px;
  margin-top: 25px;
}
.security-pill.enabled {
  color: #bbd7a1;
}
.security-pill .icon {
  width: 15px;
  height: 15px;
}
.security-controls {
  padding: 8px 27px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.security-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid #e6ecde;
}
.security-control:last-child {
  border: 0;
}
.security-control h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.security-control p {
  font-size: 12px;
  color: #6e7e60;
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
}
.security-control button {
  font-size: 11px;
  white-space: nowrap;
  padding: 9px 13px;
  min-height: 42px;
}
.security-sessions {
  margin-top: 25px;
}
.security-session {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
  padding: 21px 25px;
  border-top: 1px solid #e5eadf;
  color: #728164;
  font-size: 11px;
}
.security-session > span:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #4c653b;
}
.security-session strong {
  font-weight: 550;
}
.security-session > span:nth-child(2) {
  margin-left: auto;
  line-height: 1.8;
}
.security-session small {
  font-size: 10px;
  display: block;
  color: #8b9a7c;
}
.security-current {
  padding: 5px 8px;
  background: #edf3e5;
  color: #729159;
  border-radius: 5px;
  font-size: 9px;
}
.security-setting {
  background: #edf2e7;
}
.security-setting button .icon {
  width: 17px;
  height: 17px;
}
.mfa-signin {
  max-width: 480px;
  margin: 35px auto;
  padding: 36px;
  border: 1px solid #dee6d3;
  border-radius: 15px;
  background: #fff;
}
.mfa-signin .security-orbit {
  background: #eff5e7;
  color: #6b8952;
  border-color: #cbdcbb;
  margin-bottom: 26px;
}
.mfa-signin .kicker {
  font-size: 9px;
}
.mfa-signin h1 {
  font-size: 34px;
  margin: 13px 0;
}
.mfa-signin > .link {
  margin-top: 19px;
  font-size: 12px;
  color: #697e58;
}
.mfa-setup {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  padding: 12px 0 25px;
}
.mfa-setup img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e7d7;
  border-radius: 12px;
}
.mfa-setup details {
  font-size: 11px;
  text-align: center;
  max-width: 100%;
}
.mfa-setup summary {
  cursor: pointer;
  color: #6d835b;
  min-height: 32px;
}
.mfa-setup code {
  display: block;
  overflow-wrap: anywhere;
  background: #f0f4eb;
  padding: 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  font-size: 12px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0 25px;
}
.recovery-codes code {
  background: #f0f5e9;
  padding: 12px 10px;
  border: 1px solid #e0e8d6;
  border-radius: 7px;
  font-size: 12px;
  text-align: center;
  color: #4f7039;
}
@media (max-width: 1000px) {
  .security-overview {
    grid-template-columns: 1fr;
  }
  .security-hero {
    padding: 28px 30px;
  }
  .security-hero h2 {
    font-size: 29px;
  }
  .security-orbit {
    float: right;
    margin: 0 0 20px 20px;
  }
  .security-hero > p {
    max-width: 550px;
  }
  .mfa-signin .security-orbit {
    float: none;
  }
}
@media (max-width: 600px) {
  .security-hero {
    padding: 25px;
  }
  .security-hero h2 {
    font-size: 28px;
  }
  .security-controls {
    padding: 3px 22px;
  }
  .security-control {
    gap: 16px;
    flex-wrap: wrap;
  }
  .security-control > div {
    flex: 1;
    min-width: 150px;
  }
  .security-control h3 {
    font-size: 14px;
  }
  .security-control p {
    font-size: 11px;
  }
  .security-session {
    padding: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .security-session > span:nth-child(2) {
    margin-left: 0;
    flex-basis: 100%;
    order: 3;
  }
  .security-session .security-current {
    margin-left: auto;
  }
  .mfa-signin {
    padding: 25px;
    margin: 15px 0;
  }
  .recovery-codes {
    grid-template-columns: 1fr;
  }
  .recovery-codes code {
    font-size: 13px;
  }
  .security-orbit {
    width: 43px;
    height: 43px;
  }
  .security-orbit .icon {
    width: 22px;
    height: 22px;
  }
}
.customer {
  background: #f3f5ee;
}
.customer .apphead {
  background: #f3f5ee;
  border-bottom: 1px solid #dfe5d6;
}
.customer .container {
  max-width: 1170px;
  padding: 48px 45px 32px;
  margin-inline: auto;
}
.portal-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 4px 0 34px;
}
.portal-intro h1 {
  font-size: 46px;
  letter-spacing: -1.9px;
  line-height: 1.12;
  font-weight: 550;
  margin: 15px 0 18px;
}
.portal-intro h1 em {
  font-style: normal;
  font-weight: 450;
  color: #7a8c70;
}
.portal-intro p {
  font-size: 13px;
  color: #7a876f;
  line-height: 1.8;
  margin: 0;
}
.portal-seal {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid #ccd8bf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  flex: none;
  color: #91a47c;
  outline: 1px solid #dde5d4;
  outline-offset: -8px;
  transform: rotate(9deg);
}
.portal-seal > .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.1;
}
.portal-seal > span {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.8;
}
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}
.portal-invoice {
  position: relative;
  background: white;
  border: 1px solid #dfe5d7;
  border-radius: 15px;
  box-shadow: 0 8px 22px #364e2505;
  overflow: hidden;
}
.portal-invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid #e7ebdf;
}
.portal-invoice-top > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.portal-invoice-top > div > span,
.portal-amount-block > div:first-child > span,
.portal-client > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #8c9882;
}
.portal-invoice-top strong {
  font-size: 14px;
  font-weight: 600;
  color: #3d5131;
}
.portal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 10px;
  background: #fff3d9;
  color: #9b772c;
  border-radius: 6px;
  white-space: nowrap;
}
.portal-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.portal-status.paid {
  background: #eaf2e2;
  color: #5e7c44;
}
.portal-status.cancelled {
  background: #eef0ea;
  color: #7d8774;
}
.portal-amount-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 29px 30px 26px;
}
.portal-amount-block > div:first-child {
  display: flex;
  flex-direction: column;
}
.portal-amount-block > div:first-child > strong {
  font-size: 43px;
  line-height: 1.3;
  letter-spacing: -1.8px;
  font-weight: 550;
  margin: 6px 0 3px;
  color: #2b4225;
  font-variant-numeric: tabular-nums;
}
.portal-amount-block small {
  font-size: 11px;
  color: #8a967c;
  line-height: 1.6;
}
.portal-date {
  border-left: 1px solid #e4eadc;
  padding-left: 21px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portal-date > span {
  font-size: 10px;
  color: #89957c;
}
.portal-date > strong {
  font-size: 12px;
  font-weight: 550;
  color: #536942;
  white-space: nowrap;
}
.portal-client {
  padding: 0 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.portal-client > strong {
  font-size: 14px;
  font-weight: 550;
  color: #4c623a;
}
.portal-client > small {
  font-size: 11px;
  color: #849475;
}
.portal-services {
  border-block: 1px solid #e8eddf;
}
.portal-services > summary {
  list-style: none;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  background: #fafbf7;
  font-size: 12px;
  color: #596f45;
}
.portal-services > summary::-webkit-details-marker {
  display: none;
}
.portal-services > summary > span:last-child {
  font-size: 10px;
  color: #8c9b7b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-services summary .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.portal-services[open] summary .icon {
  transform: rotate(45deg);
}
.portal-services ol {
  list-style: none;
  margin: 0;
  padding: 0 30px;
}
.portal-services li {
  display: flex;
  gap: 12px;
  padding: 23px 0;
  border-bottom: 1px solid #edf0e7;
  align-items: flex-start;
  font-size: 12px;
}
.portal-services li:last-child {
  border-bottom: 0;
}
.portal-line-number {
  font-size: 10px;
  color: #acb79f;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}
.portal-services li > div {
  flex: 1;
  min-width: 0;
}
.portal-services strong {
  white-space: pre-line;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: #526a3e;
  overflow-wrap: anywhere;
}
.portal-services small {
  display: block;
  font-size: 10px;
  color: #98a58a;
  margin-top: 6px;
  line-height: 1.7;
}
.portal-services li > span:last-child {
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  color: #586e44;
  padding-top: 4px;
}
.portal-breakdown {
  padding: 24px 30px 0;
}
.portal-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
  color: #829274;
  font-size: 12px;
}
.portal-breakdown .portal-total {
  border-top: 1px solid #e7ecdf;
  padding-top: 17px;
  margin-top: 19px;
  color: #435f30;
  font-size: 15px;
}
.portal-total strong {
  font-weight: 600;
}
.portal-message {
  padding: 22px 30px 28px;
  color: #8a9b79;
}
.portal-message > span {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.portal-message p {
  font-size: 11px;
  line-height: 1.9;
  margin: 10px 0 0;
  color: #778c65;
  overflow-wrap: anywhere;
}
.portal-paper-foot {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed #d9e2ce;
  background: #f9fbf5;
  padding: 17px 22px;
  color: #91a480;
  font-size: 9px;
}
.portal-paper-foot > .icon {
  width: 14px;
  height: 14px;
}
.portal-pay-card {
  position: relative;
  background: #223d2d;
  color: #f2f5e9;
  border: 1px solid #223d2d;
  padding: 28px 29px 22px;
  border-radius: 15px;
  overflow: hidden;
}
.portal-pay-card > .kicker {
  font-size: 9px;
  color: #b4c6a6;
  letter-spacing: 1.5px;
}
.portal-card-art {
  margin: 18px 0 23px;
  max-width: 290px;
}
.portal-card-art > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 135px;
}
.portal-pay-card h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.22;
  margin: 0 0 15px;
}
.portal-pay-card > p {
  font-size: 12px;
  line-height: 1.9;
  color: #b3c5a5;
  margin-bottom: 23px;
}
.portal-pay-card .portal-pay-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 55px;
  background: #eebd69;
  border-color: #eebd69;
  color: #35422a;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 15px 19px;
}
.portal-pay-card .portal-pay-button:hover {
  background: #f7cb83;
  border-color: #f7cb83;
}
.portal-secure {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #adc09c;
  margin: 14px 0 21px;
}
.portal-secure .icon {
  width: 13px;
  height: 13px;
}
.portal-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #dce8c517;
  padding-top: 18px;
  font-size: 10px;
  color: #d4dfc6;
  flex-wrap: wrap;
}
.portal-methods > span:last-child {
  font-size: 9px;
  color: #9fb18e;
}
.portal-test-card {
  border: 1px solid #dfe6d5;
  border-radius: 9px;
  padding: 13px 16px;
  margin-top: 14px;
  background: #eef2e7;
  color: #7c8e6a;
}
.portal-test-card summary {
  font-size: 11px;
  cursor: pointer;
}
.portal-test-card p {
  font-size: 11px;
  line-height: 1.8;
  margin: 13px 0 5px;
}
.portal-unavailable {
  background: #ffffff08;
  border: 1px solid #dce8c527;
  padding: 15px;
  border-radius: 7px;
}
.portal-side > .portal-download {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  min-height: 52px;
  font-size: 12px;
  background: #fff;
  border-color: #dce5d1;
  color: #596f44;
  text-decoration: none;
  padding: 13px 18px;
}
.portal-download > .icon {
  width: 16px;
  height: 16px;
}
.portal-download > span {
  margin-left: auto;
  font-size: 9px;
  border: 1px solid #dce5d1;
  border-radius: 4px;
  padding: 2px 5px;
  color: #8d9d7d;
}
.portal-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 3px;
  text-decoration: none;
  color: #758f5f;
  gap: 15px;
}
.portal-help > span {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 5px 9px;
}
.portal-help > span > .icon {
  grid-row: span 2;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.portal-help strong {
  font-size: 11px;
  font-weight: 600;
}
.portal-help small {
  font-size: 10px;
  color: #92a37e;
}
.portal-help > .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid #dce5d0;
  padding: 25px 0 12px;
  margin-top: 40px;
  color: #91a17f;
  font-size: 10px;
  line-height: 1.9;
}
.portal-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-footer strong {
  font-size: 12px;
  font-weight: 550;
  color: #637e4d;
}
.portal-footer > a {
  color: #718b5b;
  text-decoration: none;
  white-space: nowrap;
}
.portal-confirm-card {
  padding: 31px;
  background: #233d2e;
  color: #edf3e2;
  border-radius: 15px;
}
.portal-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 67px;
  height: 67px;
  border: 1px solid #77926c;
  border-radius: 50%;
  background: #36543b;
  color: #d2e6b6;
  margin-bottom: 33px;
  animation: studio-enter 0.45s ease-out;
}
.portal-confirm-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}
.portal-confirm-card .kicker {
  color: #a1ba8c;
  font-size: 9px;
}
.portal-confirm-card h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.22;
  font-weight: 500;
  margin: 15px 0 22px;
}
.portal-confirm-card p {
  font-size: 12px;
  color: #b5caa2;
  line-height: 1.9;
}
.portal-confirm-card > span {
  display: block;
  font-size: 10px;
  color: #849e70;
  border-top: 1px solid #d7e7c21a;
  padding-top: 20px;
  margin-top: 26px;
}
.portal-return {
  padding: 15px 17px;
  border-radius: 8px;
  background: #fcf1d9;
  font-size: 12px;
  line-height: 1.7;
  color: #987b3c;
  margin-top: 15px;
}
@media (max-width: 1000px) {
  .customer .container {
    padding: 35px 30px;
  }
  .portal-grid {
    gap: 20px;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr);
  }
  .portal-invoice-top,
  .portal-amount-block {
    padding-inline: 23px;
  }
  .portal-date {
    padding-left: 14px;
  }
  .portal-amount-block > div:first-child > strong {
    font-size: 36px;
  }
  .portal-invoice-top strong {
    font-size: 13px;
  }
  .portal-services > summary,
  .portal-client,
  .portal-breakdown,
  .portal-message {
    padding-inline: 23px;
  }
  .portal-services ol {
    padding-inline: 23px;
  }
  .portal-pay-card {
    padding: 25px 23px;
  }
  .portal-pay-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .customer .container {
    padding: 28px 23px 35px;
    max-width: 610px;
  }
  .portal-intro {
    margin-bottom: 25px;
  }
  .portal-intro h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
  }
  .portal-intro p {
    font-size: 12px;
  }
  .portal-seal {
    width: 93px;
    height: 93px;
    outline-offset: -6px;
    gap: 6px;
  }
  .portal-seal > .icon {
    width: 23px;
    height: 23px;
  }
  .portal-seal > span {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .portal-side {
    display: grid;
    grid-template-columns: 1fr;
  }
  .portal-pay-card {
    padding: 25px;
  }
  .portal-card-art {
    position: absolute;
    width: 150px;
    right: -7px;
    top: 38px;
    opacity: 0.45;
  }
  .portal-pay-card h2 {
    margin-top: 24px;
    font-size: 29px;
    position: relative;
  }
  .portal-pay-card > p {
    position: relative;
    max-width: 300px;
  }
  .portal-methods {
    gap: 20px;
  }
  .portal-footer {
    margin-top: 25px;
    flex-direction: column;
    gap: 15px;
    font-size: 9px;
  }
  .portal-footer > a {
    font-size: 12px;
  }
  .portal-mobile-pay {
    border-top: 1px solid #d3dfc6;
    background: #f8faf5ed;
    backdrop-filter: blur(14px);
  }
  .portal-mobile-pay .primary {
    font-size: 12px;
  }
  .portal-mobile-pay .icon {
    width: 16px;
    height: 16px;
  }
  .portal-confirm-card h2 {
    font-size: 31px;
  }
  .portal-confirm-card {
    padding: 29px;
  }
}
@media (max-width: 480px) {
  .customer .container {
    padding: 25px 17px 30px;
  }
  .portal-intro h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
    max-width: 270px;
  }
  .portal-intro > .portal-seal {
    display: none;
  }
  .portal-intro p {
    font-size: 12px;
  }
  .portal-invoice-top {
    padding: 20px;
  }
  .portal-status {
    font-size: 9px;
  }
  .portal-amount-block {
    padding: 26px 20px 23px;
  }
  .portal-amount-block > div:first-child > strong {
    font-size: 38px;
  }
  .portal-date {
    padding-left: 15px;
  }
  .portal-date > strong {
    font-size: 11px;
  }
  .portal-date > span {
    font-size: 10px;
    max-width: 70px;
    line-height: 1.7;
  }
  .portal-invoice-top > div > span,
  .portal-amount-block > div:first-child > span,
  .portal-client > span {
    font-size: 9px;
  }
  .portal-client,
  .portal-services > summary,
  .portal-breakdown,
  .portal-message {
    padding-inline: 20px;
  }
  .portal-services ol {
    padding-inline: 20px;
  }
  .portal-services li {
    gap: 10px;
    flex-wrap: wrap;
  }
  .portal-services li > div {
    flex-basis: calc(100% - 25px);
  }
  .portal-services li > span:last-child {
    margin-left: 25px;
  }
  .portal-services strong {
    font-size: 12px;
  }
  .portal-services small {
    font-size: 11px;
  }
  .portal-services > summary > span:last-child {
    font-size: 10px;
  }
  .portal-message p {
    font-size: 12px;
  }
  .portal-paper-foot {
    font-size: 8px;
    padding-inline: 13px;
  }
  .portal-pay-card {
    padding: 24px;
  }
  .portal-side .portal-download {
    font-size: 13px;
  }
  .portal-help strong {
    font-size: 12px;
  }
  .portal-help small {
    font-size: 11px;
  }
  .portal-test-card summary {
    font-size: 12px;
  }
  .portal-seal {
    display: none;
  }
}
.eyebrow,
.section-heading .kicker,
.studio-metric > span,
.kicker {
  font-size: 10px;
}
.horizon-top p,
.horizon-caption > span,
.horizon-bucket > small,
.horizon-foot > span {
  font-size: 11px;
}
.horizon-caption strong,
.horizon-bucket > span,
.horizon-foot button.link {
  font-size: 12px;
}
.horizon-bucket > strong {
  font-size: 14px;
}
.studio-task strong {
  font-size: 12px;
}
.studio-task small {
  font-size: 11px;
  max-width: 220px;
}
.task-tail,
.count-pill {
  font-size: 10px;
}
.focus-all {
  font-size: 12px;
}
.studio-metric > small,
.section-heading p {
  font-size: 11px;
}
.studio-panel .invoices-table td,
.studio-panel .invoices-table td:nth-child(2) button {
  font-size: 12px;
}
.studio-panel .invoices-table .invoice-link {
  font-size: 12px;
}
.studio-panel .invoices-table th {
  font-size: 10px;
}
.studio-panel .invoice-service,
.studio-panel .badge {
  font-size: 10px;
}
.studio-panel > .section-heading .link,
.receipt-week > strong,
.receipt-week > span,
.chart-note {
  font-size: 11px;
}
.ledger-tabs button,
.ledger-controls input,
.sort-control select {
  font-size: 12px;
}
.ledger-footer,
.studio-pagination,
.studio-pagination button,
.ledger-footer a,
.sort-control,
.ledger-date-filter summary {
  font-size: 11px;
}
.context-strip > span,
.context-strip > button,
.editor-ready strong {
  font-size: 12px;
}
.editor-ready small,
.invoice-lifecycle small,
.invoice-share-card p,
.line-sequence,
.command-result > span > small,
.command-foot {
  font-size: 11px;
}
.invoice-lifecycle span {
  font-size: 12px;
}
.profile-contact address,
.profile-contact > a,
.client-profile-identity p {
  font-size: 12px;
}
@media (max-width: 1200px) {
  .studio-task {
    flex-wrap: wrap;
  }
  .task-tail {
    margin-left: 43px;
    margin-top: -3px;
  }
  .studio-task > span:nth-child(2) {
    flex-basis: calc(100% - 43px);
  }
  .focus-tasks {
    margin-top: 10px;
  }
  .studio-focus {
    padding-bottom: 18px;
  }
  .horizon-caption > span {
    display: none;
  }
  .horizon-foot > span {
    font-size: 10px;
  }
  .horizon-foot button.link {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .studio-task {
    min-height: 95px;
  }
  .horizon-caption > span {
    display: block;
  }
  .horizon-foot > span {
    font-size: 11px;
  }
  .horizon-foot button.link {
    font-size: 12px;
  }
  .studio-task small {
    max-width: 190px;
  }
}
@media (max-width: 720px) {
  .studio-panel .invoices-table td,
  .studio-panel .invoices-table td:nth-child(2) button {
    font-size: 11px;
  }
  .studio-panel .invoice-service,
  .studio-panel .badge {
    font-size: 9px;
  }
  .horizon-bucket > strong {
    font-size: 13px;
  }
  .horizon-bucket > span,
  .horizon-bucket > small {
    font-size: 10px;
  }
  .horizon-foot > span {
    font-size: 10px;
  }
  .studio-metric > span {
    font-size: 9px;
  }
  .studio-metric > small {
    font-size: 11px;
  }
  .ledger-date-filter summary {
    font-size: 0;
  }
  .receipt-week > strong,
  .receipt-week > span {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .horizon-bucket > strong {
    font-size: 11px;
  }
  .horizon-bucket > span,
  .horizon-bucket > small {
    font-size: 10px;
  }
  .horizon-caption > span {
    font-size: 0;
  }
  .horizon-foot > span {
    font-size: 10px;
    max-width: 170px;
  }
  .horizon-foot button.link {
    font-size: 10px;
  }
  .studio-task {
    flex-wrap: nowrap;
    min-height: 78px;
  }
  .studio-task > span:nth-child(2) {
    flex-basis: auto;
  }
  .studio-task strong {
    font-size: 12px;
  }
  .studio-task small {
    font-size: 11px;
    max-width: 170px;
  }
  .task-tail {
    margin: 0;
    font-size: 9px;
    max-width: 54px;
    flex-wrap: wrap;
  }
  .task-tail .icon {
    display: none;
  }
  .studio-metrics > .studio-metric:last-child > small {
    max-width: 200px;
  }
  .metric-link {
    font-size: 11px !important;
    max-width: 100px;
  }
  .studio-panel .invoices-table td:nth-child(2) button {
    font-size: 10px;
  }
  .studio-panel .invoice-service {
    font-size: 9px;
  }
  .ledger-tabs button {
    font-size: 11px;
  }
  .ledger-date-filter > div {
    right: -3px;
  }
  .studio-pagination > span {
    font-size: 10px;
  }
  .studio-pagination > div {
    gap: 6px;
  }
  .studio-pagination button {
    font-size: 10px;
    padding-inline: 6px;
  }
  .receipt-week > strong,
  .receipt-week > span {
    font-size: 9px;
  }
  .invoice-lifecycle span {
    font-size: 11px;
  }
  .invoice-lifecycle small {
    font-size: 10px;
  }
  .command-foot {
    font-size: 10px;
  }
  .invoice-share-card .kicker {
    font-size: 9px;
  }
}
/* Text contrast is deliberately stronger than the decorative lines and chart marks. */
.studio-heading p,
.studio-metric > small,
.studio-metric > span,
.section-heading p,
.studio-task small,
.chart-note,
.receipt-week > span,
.receipt-week > strong,
.ledger-summary,
.studio-panel .invoices-table th,
.studio-panel .invoice-service,
.studio-pagination,
.ledger-footer,
.sort-control,
.ledger-tabs button,
.ledger-date-filter summary,
.client-profile-identity p,
.profile-contact h4,
.repeat-card > small,
.command-foot,
.command-section-label,
.command-result > span > small,
.line-sequence,
.invoice-lifecycle small,
.invoice-share-card p,
.invoice-share-card .kicker {
  color: #647157;
}
.portal-intro p,
.portal-invoice-top > div > span,
.portal-amount-block > div:first-child > span,
.portal-client > span,
.portal-amount-block small,
.portal-date > span,
.portal-client > small,
.portal-services > summary > span:last-child,
.portal-line-number,
.portal-services small,
.portal-breakdown > div,
.portal-message,
.portal-message p,
.portal-paper-foot,
.portal-test-card,
.portal-help,
.portal-help small,
.portal-footer,
.portal-footer > a,
.portal-download > span {
  color: #637557;
}
.security-session,
.security-session small,
.security-control p {
  color: #637557;
}
.security-hero > .kicker,
.security-hero > p,
.security-pill,
.portal-confirm-card .kicker,
.portal-confirm-card p,
.portal-confirm-card > span,
.portal-pay-card > p,
.portal-pay-card > .kicker,
.portal-secure,
.portal-methods > span:last-child {
  color: #c0d0b3;
}
.horizon-foot > span,
.horizon-bucket > small,
.horizon-caption > span {
  color: #bed0b8;
}
@media (max-width: 600px) {
  .horizon-amount-full,
  .horizon-forecast {
    display: none;
  }
  .horizon-amount-short,
  .horizon-rounding {
    display: inline;
  }
  .horizon-bucket > strong {
    font-size: 14px;
  }
  .horizon-foot > span {
    font-size: 10px;
  }
  .horizon-bucket > span {
    font-size: 10px;
  }
}

.doc-meta > div > span {
  display: block;
}

/* Small screens use readable account rows rather than shrinking a desktop table. */
.studio-heading .kicker,
.section-heading .kicker,
.heading .kicker {
  color: #5d6e60;
}
.task-tail {
  color: #79613d;
}
.badge {
  color: #755720;
  font-size: 11px;
}
.badge.draft,
.badge.void {
  color: #50605a;
  background: #edf0eb;
}
.badge.paid {
  color: #315e40;
}
.badge.overdue {
  color: #8a482d;
}
.mobile-invoice-due {
  display: none;
}
.document-mobile-tools {
  display: none;
}
.editor > .fields,
.editor .lineitems,
.editor .lineitem {
  min-width: 0;
}
@media (max-width: 380px) {
  .editor .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor .linefields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .editor .linefields .quantity {
    grid-column: auto;
  }
  .editor .linefields .remove {
    justify-self: end;
    align-self: end;
  }
  .editor-bottom {
    padding: 10px 0;
    gap: 6px;
  }
  .editor-bottom > button {
    font-size: 11px;
    padding-inline: 9px;
    min-width: 0;
  }
  .editor .presets {
    gap: 5px;
  }
  .context-strip {
    flex-wrap: wrap;
  }
}
.portal-pending-orbit {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid #8b9d765c;
  background: #ffffff08;
  margin: 28px 0;
  color: #edbf70;
  box-shadow: 0 0 0 9px #ffffff03;
}
.portal-pending-orbit .icon {
  width: 29px;
  height: 29px;
}
.portal-pending-note {
  font-size: 12px !important;
  border-top: 1px solid #ffffff18;
  padding-top: 19px;
  margin-top: 23px !important;
}
@media (max-width: 600px) {
  .testbar {
    padding-top: calc(8px + env(safe-area-inset-top));
    height: auto;
  }
  body:not(.customer):not(.signed-out) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .document-mobile-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    background: var(--paper, #f5f6ef);
    margin-bottom: 15px;
  }
  .document-mobile-tools button,
  .document-mobile-tools .button {
    min-height: 46px;
    font-size: 13px;
  }
  .ledger-controls .ledger-date-filter {
    margin-right: auto;
  }
  .ledger-date-filter summary {
    font-size: 12px;
    min-height: 44px;
    gap: 7px;
  }
  .ledger-date-filter > div {
    left: 0;
    right: auto;
    max-width: calc(100vw - 82px);
  }
  .ledger-tabs {
    width: 100%;
    justify-content: space-between;
    gap: 1px;
  }
  .ledger-tabs button {
    font-size: 11px;
    padding-inline: 6px;
  }
  .heading .sub,
  .studio-heading p,
  .setupgrid .sub,
  .setupgrid .note,
  .security-control p,
  .security-intro,
  .profile-contact p {
    font-size: 14px;
    line-height: 1.65;
  }
  .setupgrid .settings-list li {
    font-size: 12px;
    gap: 12px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .ledger-controls input,
  .command-search input {
    font-size: 16px;
  }
  .field {
    font-size: 13px;
  }
  .topline-search,
  .ledger-tabs button,
  .studio-pagination button {
    min-height: 44px;
  }
  .studio-task strong {
    font-size: 13px;
  }
  .studio-task small {
    font-size: 12px;
  }
  .task-tail {
    font-size: 10px;
  }
  .studio-panel .tablewrap {
    overflow: visible;
  }
  .studio-panel .invoices-table,
  .studio-panel .invoices-table tbody {
    display: block;
    width: 100%;
  }
  .studio-panel .invoices-table colgroup,
  .studio-panel .invoices-table thead {
    display: none;
  }
  .studio-panel .invoices-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 18px;
    border-top: 1px solid #e6e9e0;
    gap: 3px 12px;
  }
  .studio-panel .invoices-table td {
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .studio-panel .invoices-table td:first-child {
    grid-row: 2;
    grid-column: 1;
    padding: 0;
  }
  .studio-panel .invoices-table td:nth-child(2) {
    display: block;
    grid-row: 1;
    grid-column: 1/-1;
  }
  .studio-panel .invoices-table td:nth-child(2) button {
    font-size: 14px;
    line-height: 1.5;
    min-height: 44px;
    max-width: 100%;
    padding: 0;
    color: #263d2e;
    font-weight: 600;
  }
  .studio-panel .invoices-table td:nth-child(3),
  .studio-panel .invoices-table td:nth-child(4) {
    display: none;
  }
  .studio-panel .invoices-table td:last-child {
    grid-row: 2;
    grid-column: 2;
    padding: 7px 0 0;
    font-size: 15px;
  }
  .studio-panel .invoices-table .invoice-link {
    font-size: 13px;
    min-height: 44px;
  }
  .studio-panel .invoices-table .invoice-service {
    font-size: 12px;
    max-width: none;
    line-height: 1.6;
  }
  .studio-panel .invoices-table .badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .studio-panel .mobile-invoice-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
  }
  .mobile-invoice-due {
    display: block;
    font-size: 11px;
    color: #5e6f61;
  }
  .studio-panel .invoices-table td:last-child .small {
    font-size: 11px;
  }
  .context-strip > button {
    min-height: 44px;
    font-size: 12px;
  }
}
