:root {
  --paper: #f7f6f2;
  --ink: #252733;
  --muted: #74767f;
  --accent: #6b52df;
  --accent-light: #eee9ff;
  --line: #e7e6e1;
  --white: #fff;
  --green: #287c58;
  --red: #ad4338;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b8a9ff;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c4b5fd;
  outline-offset: 1px;
  border-color: var(--accent);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 38px 24px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.wordmark {
  font-size: 38px;
  letter-spacing: -3px;
  font-weight: 850;
  display: inline-block;
  line-height: 1;
}
.wordmark span {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 650;
  margin-top: 9px;
  color: var(--muted);
}
.sidebar-line {
  height: 1px;
  background: var(--line);
  margin: 30px 0 27px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #96979e;
  margin: 0 0 16px 12px;
  font-weight: 650;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 11px;
  color: #757780;
  font-weight: 550;
}
nav a span {
  font-size: 21px;
  width: 24px;
  text-align: center;
}
nav a:hover {
  background: #f7f6fb;
}
nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}
.sidebar-note {
  margin-top: auto;
  margin-bottom: 30px;
  padding: 22px 14px;
  background: #f8f7fd;
  border: 1px solid #eeebfa;
  border-radius: 13px;
}
.sidebar-note > span {
  font-size: 25px;
  color: var(--accent);
}
.sidebar-note p {
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 0;
  color: #85808f;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #e9e3fc;
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}
.profile strong {
  font-size: 13px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.profile form {
  margin-left: auto;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 22px;
  color: #85818d;
  padding: 8px;
}
.workspace {
  margin-left: 238px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #83838c;
  background: rgba(255, 255, 255, 0.4);
}
.slash {
  color: #c0bfc5;
  margin: 0 12px;
}
.topbar-note {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74b89a;
}
.main {
  padding: 42px 44px 35px;
  max-width: 1470px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--accent);
  margin: 0 0 14px;
}
.page-heading h1,
h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 0 0 12px;
  font-weight: 720;
}
.title-dot {
  color: var(--accent);
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 13px 19px;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px #6b52df14;
}
.primary:hover {
  background: #5b43c9;
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: #5f5e6a;
}
.secondary:hover {
  background: #f9f8fc;
}
.danger {
  background: #fff4f2;
  color: var(--red);
  border-color: #f5d8d3;
}
.full {
  width: 100%;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.search-label {
  flex: 1;
  max-width: 380px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.check-label input {
  width: auto;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #95949d;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 17px 24px;
  background: #fcfcfa;
  white-space: nowrap;
}
td {
  padding: 22px 24px;
  border-top: 1px solid #efeeea;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
tbody tr:hover {
  background: #fdfcfe;
}
.client-name {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 180px;
}
.mini-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #8d79d1;
  background: #f0ecf8;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}
.row-actions {
  white-space: nowrap;
}
.row-actions a + a {
  margin-left: 15px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
}
.text-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border-radius: 6px;
  padding: 6px 9px;
  font-weight: 600;
  white-space: nowrap;
}
.neutral {
  background: #f3f2f7;
  color: #7c798a;
}
.paid {
  background: #eaf6ee;
  color: #348563;
}
.unpaid {
  background: #fff5e5;
  color: #ab822d;
}
.late {
  background: #fff0ec;
  color: #ba6355;
}
.credit {
  background: #eeeafa;
  color: #8065bf;
}
.empty-state {
  text-align: center;
  padding: 58px 24px 64px;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #f3efff;
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 17px;
  transform: rotate(-5deg);
}
.empty-state h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 10px 0;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.form-card {
  padding: 28px 30px;
  max-width: 960px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #575863;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px 13px;
  border: 1px solid #dedee5;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  min-height: 45px;
  font-size: 14px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #b0adb8;
}
input[readonly] {
  background: #f7f6fa;
  color: #8b8697;
}
.required {
  color: var(--accent);
}
.optional {
  font-weight: 400;
  font-size: 10px;
  color: #aaa4b2;
  margin-left: 5px;
}
label small {
  display: block;
  line-height: 1.6;
  color: #96909f;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  color: #87818f;
  font-size: 12px;
  margin-bottom: 25px;
}
.archive-form {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 26px 5px;
}
.archive-form small {
  color: var(--muted);
  font-size: 11px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 26px;
}
.section-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.alert {
  padding: 15px 20px;
  background: #fff1ed;
  border: 1px solid #f3d6ce;
  color: #a25745;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 960px;
}
.alert.success {
  background: #eef8f2;
  color: #408766;
  border-color: #d3eade;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 44px;
  font-size: 10px;
  color: #aaa5b1;
  border-top: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 25% 10%, #e8e1fa 0, transparent 45%),
    radial-gradient(ellipse at 90% 90%, #eee7dc 0, transparent 45%),
    var(--paper);
}
.login-card {
  background: #fff;
  padding: 38px 44px;
  border: 1px solid #e7e0ef;
  border-radius: 24px;
  max-width: 430px;
  width: 100%;
  box-shadow: 0 20px 80px #5e4b7a0b;
}
.login-card .wordmark {
  font-size: 32px;
}
.login-art {
  height: 105px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lens {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 10px solid #faf7ff;
  box-shadow:
    0 0 0 1px #e9e3fb,
    0 0 0 13px #fdfbff;
  position: relative;
}
.lens:after {
  content: "";
  position: absolute;
  inset: 9px;
  background: #aa96e8;
  border-radius: 50%;
}
.spark {
  position: absolute;
  color: #bea8e8;
  right: 74px;
  top: 10px;
  font-size: 24px;
}
.login-card h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.login-card form {
  margin-top: 25px;
}
.login-card label + label {
  margin-top: 18px;
}
.login-card button {
  margin-top: 24px;
}
.login-foot {
  font-size: 10px;
  color: #b0aab9;
  text-align: center;
  margin: 24px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stat {
  padding: 23px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  position: relative;
}
.stat p {
  font-size: 11px;
  color: #8b8594;
  margin: 0 0 14px;
}
.stat strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
}
.stat small {
  display: block;
  font-size: 10px;
  color: #b0a9b7;
  margin-top: 9px;
}
.stat-symbol {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f0ebfb;
  color: #a18dcd;
}
.stat:last-child {
  background: #eee9fc;
  border-color: #e6ddfa;
}
.stat:last-child strong {
  color: var(--accent);
}
.invoice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 24px;
  align-items: start;
}
.summary-card {
  position: sticky;
  top: 20px;
  padding: 26px;
}
.summary-card h2 {
  font-size: 16px;
  margin: 0 0 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #8b8695;
  margin: 18px 0;
}
.summary-row strong {
  color: #524b64;
  font-weight: 550;
}
.summary-total {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.summary-total span {
  display: block;
  font-size: 11px;
  color: #90879e;
}
.summary-total strong {
  display: block;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--accent);
  margin-top: 12px;
}
.summary-note {
  font-size: 11px;
  color: #a19aab;
  line-height: 1.7;
  margin-top: 20px;
}
.summary-card .button {
  margin-top: 10px;
}
.date-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.date-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.date-row input {
  margin: 0;
  flex: 1;
}
.date-row button {
  font-size: 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 43px;
  color: #9d93ac;
}
.date-list + .text-link {
  margin-top: 13px;
}
.info-panel {
  padding: 22px 25px;
  background: #faf9fd;
  border-radius: 12px;
  border: 1px solid #eeeaf5;
  font-size: 12px;
  line-height: 1.7;
  color: #8b819b;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.detail-grid h3 {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #a098ae;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.detail-grid p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}
.detail-grid strong {
  font-size: 15px;
}
.detail-dates {
  font-size: 12px;
  color: #8f879d;
  line-height: 1.7;
  margin: 16px 0 0;
}
.detail-total {
  margin-left: auto;
  max-width: 300px;
}
.payment-box {
  padding: 25px;
}
.payment-box h2 {
  font-size: 16px;
  margin: 0 0 18px;
}
.payment-box label {
  margin-top: 20px;
}
.payment-box button {
  margin-top: 16px;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #9991a4;
  white-space: nowrap;
}
.tabs a.selected {
  background: #f0eafd;
  color: var(--accent);
  font-weight: 600;
}
.invoice-description {
  white-space: pre-line;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-title {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-title h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
.table-title span {
  font-size: 11px;
  color: #aaa1b7;
}
@media (min-width: 1500px) {
  .main {
    padding-top: 55px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  .workspace {
    margin-left: 200px;
  }
  .main {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .footer {
    padding: 22px 25px;
  }
  .invoice-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .summary-card .button {
    width: auto;
  }
  .stat strong {
    font-size: 23px;
  }
  .form-card {
    padding: 25px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .wordmark {
    font-size: 28px;
  }
  .wordmark span {
    font-size: 7px;
    margin-top: 5px;
  }
  .sidebar-line,
  .nav-label,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
    margin: 18px -4px 0;
  }
  nav a {
    flex: 1;
    justify-content: center;
    padding: 12px 6px;
    font-size: 12px;
    border-radius: 9px 9px 0 0;
    gap: 6px;
  }
  nav a span {
    font-size: 17px;
    width: auto;
  }
  .profile {
    position: absolute;
    right: 19px;
    top: 12px;
    border: 0;
    padding: 0;
    gap: 6px;
  }
  .profile .avatar {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }
  .profile small {
    display: none;
  }
  .profile strong {
    font-size: 12px;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    display: none;
  }
  .main {
    padding: 30px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .muted {
    font-size: 13px;
  }
  .page-heading > .button {
    width: 100%;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 17px 13px;
    border-radius: 12px;
  }
  .stat strong {
    font-size: 20px;
  }
  .stat p {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat-symbol {
    display: none;
  }
  .filter-bar {
    flex-wrap: wrap;
    padding: 16px;
  }
  .search-label {
    max-width: none;
    min-width: 180px;
  }
  .check-label {
    margin-left: 0;
    width: 100%;
  }
  .check-label input {
    margin: 0;
  }
  td {
    padding: 18px 16px;
  }
  th {
    padding: 15px 16px;
  }
  .form-card {
    padding: 23px 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex: 1;
  }
  .footer {
    padding: 20px;
    font-size: 9px;
  }
  .footer span:last-child {
    display: none;
  }
  .empty-state {
    padding: 40px 20px;
  }
  .login-body {
    padding: 20px;
  }
  .login-card {
    padding: 32px 27px;
  }
  .summary-card {
    padding: 25px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    padding: 15px;
  }
  .table-title {
    padding: 20px;
  }
  .archive-form {
    flex-direction: column;
    align-items: flex-start;
  }
  .actions-row .button {
    flex: 1;
  }
  .summary-card .button {
    width: 100%;
  }
}
.new-client-link {
  display: inline-block;
  margin-top: 14px;
}
.dates-label,
.order-label {
  margin-top: 24px;
}
.emit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.emit-panel h2,
.credit-panel h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.emit-panel .muted {
  font-size: 12px;
}
.credit-panel {
  margin-top: 24px;
}
.credit-panel label {
  margin-top: 20px;
}
.credit-panel button {
  margin-top: 20px;
}
@media (max-width: 720px) {
  .emit-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .emit-panel button {
    width: 100%;
  }
}
.logo-preview {
  max-width: 180px;
  max-height: 70px;
  display: block;
  margin: 15px 0;
}
td a strong {
  overflow-wrap: anywhere;
}
.new-client-link {
  margin-bottom: 5px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.upload-modal {
  border: 1px solid var(--line);
  border-radius: 28px;
  width: min(680px, calc(100vw - 32px));
  padding: 32px;
  color: var(--ink);
  box-shadow: 0 24px 100px #23202e33;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.upload-modal::backdrop {
  background: #28243366;
  backdrop-filter: blur(6px);
}
.upload-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.upload-heading h2 {
  margin: 0;
  font-size: 28px;
}
.upload-heading .icon-button {
  font-size: 30px;
  min-width: 44px;
  min-height: 44px;
}
.upload-drop {
  border: 2px dashed #d5d1df;
  border-radius: 18px;
  background: #f7f6fa;
  padding: 32px 16px;
  text-align: center;
  margin: 24px 0;
}
.upload-drop.dragging {
  background: #eee9fa;
  border-color: #7761a2;
}
.upload-cloud {
  font-size: 42px;
  color: #7761a2;
}
.upload-drop .text-link {
  font-size: 16px;
  text-decoration: underline;
  min-height: 44px;
}
.upload-drop p {
  margin: 12px 0;
}
.upload-selection {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #faf9f6;
  border-radius: 14px;
}
.upload-selection[hidden] {
  display: none;
}
.upload-selection img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
}
.upload-selection strong {
  overflow-wrap: anywhere;
}
.upload-selection p {
  margin: 6px 0;
}
.client-documents {
  margin-top: 24px;
}
.document-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ece9ef;
  color: inherit;
  text-decoration: none;
}
.document-link span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.document-link small {
  display: block;
  color: #817a8c;
  margin-top: 5px;
}
.client-documents form {
  margin-top: 20px;
}
.sending-note {
  border-top: 1px solid #ece9ef;
  margin-top: 24px;
  padding-top: 16px;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .upload-modal {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .upload-heading h2 {
    font-size: 24px;
  }
  .upload-drop {
    padding: 24px 12px;
  }
  .upload-modal .form-actions {
    display: flex;
    flex-direction: column-reverse;
  }
  .upload-modal .form-actions button {
    width: 100%;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .workspace {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .main {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

.wordmark .brand-logo {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 12px;
}
.login-card .brand-logo {
  width: 92px;
  height: 92px;
}

.auth-card h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
}
.auth-link {
  color: var(--accent, #6750a4);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
}
.auth-secondary {
  text-align: center;
  margin: 14px 0;
}
.auth-notice {
  background: #edf5ed;
  color: #285536;
  padding: 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.verification-code {
  text-align: center;
  font-size: 1.8rem !important;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}
.remember-choice {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
}
.remember-choice input {
  width: 20px !important;
  height: 20px;
  flex: 0 0 20px;
  margin: 3px 0;
  accent-color: var(--accent, #6750a4);
}
.remember-choice small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 5px;
}
.auth-card .muted {
  overflow-wrap: anywhere;
}
