:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172b45;
  background: #f3f6fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: #102b4e;
  color: white;
  padding: 12px 17px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button.secondary {
  background: white;
  color: #233e5d;
  border: 1px solid #dce3ed;
}
.sidebar {
  width: 260px;
  background: #0a1d35;
  color: #b8c8dc;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  color: white;
  font-size: 19px;
  font-weight: 750;
  padding: 0 8px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 34px;
  border-radius: 9px;
  background: #102b4e;
  margin-right: 8px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin: 10px 0 0 44px;
  color: #8fa9cb;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 42px 13px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  line-height: 1.4;
}
nav a.active {
  background: #254469;
  color: white;
}
nav a:hover {
  background: #183557;
}
.nav-icon {
  font-size: 17px;
  width: 24px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 12px 0;
  font-size: 12px;
  line-height: 1.8;
}
.sidebar-bottom small {
  color: #8fa9cb;
}
.sidebar-bottom a {
  display: block;
  margin-top: 20px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #55c9a6;
  border-radius: 50%;
  margin-right: 6px;
}
.shell {
  margin-left: 260px;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid #e3e9f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 13px;
}
.avatar {
  background: #e9effb;
  color: #102b4e;
  padding: 12px;
  border-radius: 50%;
  font-weight: 700;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 38px 40px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  color: #5378ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  margin: 12px 0;
}
p {
  line-height: 1.7;
}
.muted {
  color: #748398;
  font-size: 13px;
}
.notice {
  font-size: 12px;
  background: #fff8e7;
  color: #84611d;
  border: 1px solid #f0e1b8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 25px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat,
.card,
.panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.stat small {
  color: #738197;
  font-size: 12px;
}
.stat strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.7px;
  margin-top: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #18395b0d;
}
.module-icon {
  background: #eef3ff;
  color: #102b4e;
  border-radius: 10px;
  padding: 12px;
  font-size: 20px;
}
.card p {
  color: #758297;
  font-size: 12px;
  margin: 0 0 22px;
}
.card .open {
  margin-top: auto;
  font-size: 12px;
  color: #102b4e;
  font-weight: 700;
}
.badge {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 9px;
  background: #eef4ff;
  color: #3262a5;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.2fr);
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #4d6079;
}
.field.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  padding: 11px 12px;
  color: #19314c;
  background: white;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #365e88;
}
form button {
  margin-top: 20px;
}
.hint {
  font-size: 12px;
  color: #758297;
  line-height: 1.7;
}
.result {
  border-radius: 10px;
  background: #f1f6ff;
  padding: 20px;
  margin-top: 20px;
}
.result strong {
  color: #102b4e;
  font-size: 24px;
}
.result p {
  font-size: 13px;
  margin: 8px 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar input {
  max-width: 230px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #78879a;
  background: #f6f8fc;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f7;
  white-space: nowrap;
}
td button {
  font-size: 10px;
  padding: 6px 9px;
  background: #f0f4fa;
  color: #3b587c;
}
.empty {
  padding: 40px 10px;
  text-align: center;
  color: #8a98ab;
  font-size: 13px;
}
.stack {
  display: grid;
  gap: 20px;
}
.action-link {
  display: inline-block;
  font-size: 13px;
  color: #102b4e;
  margin: 10px 0;
}
.feedback {
  padding: 12px;
  background: #eaf7ef;
  color: #216443;
  border-radius: 7px;
  margin-bottom: 16px;
}
.error {
  background: #fff0ee;
  color: #a22c25;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #8795a6;
  padding: 30px;
}
.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.line-items {
  display: grid;
  gap: 12px;
}
.line-item {
  padding: 12px;
  background: #f7f9fc;
  border-radius: 8px;
}
.line-item .form-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.print-only {
  display: none;
}
@media (min-width: 1500px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 220px;
  }
  .shell {
    margin-left: 220px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px;
  }
  .brand small,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
  }
  nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
  }
  .cards,
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px;
    min-height: 240px;
  }
  .card h3 {
    font-size: 14px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .line-item .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 18px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 21px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading,
  .notice,
  footer,
  form,
  .toolbar,
  button {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .workspace-grid {
    display: block;
  }
  .panel {
    border: 0;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block;
  }
}
.panel,
.stack,
.field,
.line-item {
  min-width: 0;
}
input,
select,
textarea {
  min-width: 0;
}
@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, #dae8ff, transparent 65%), #f3f6fa;
}
.auth-panel {
  width: min(100% - 32px, 490px);
  margin: 40px auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 20px 80px #14375f10;
}
.auth-brand {
  font-weight: 750;
  font-size: 21px;
  display: block;
  margin-bottom: 32px;
}
.auth-panel .field {
  margin-top: 18px;
}
.auth-panel form > button {
  width: 100%;
}
.text-button {
  padding: 0;
  background: none;
  color: #102b4e;
  border: 0;
  font-size: inherit;
}
.account-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}
.account-bar button {
  padding: 8px 12px;
  font-size: 12px;
}
.account-bar small {
  display: block;
  color: #748398;
}
.account-label {
  font-size: 12px;
  max-width: 200px;
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.invite-link {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.share-field {
  margin-top: 15px;
  margin-bottom: 15px;
}
.access-notice {
  background: #eaf2ff;
  color: #315c94;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
}
.topbar {
  height: auto;
  min-height: 76px;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.workspace-grid:has(> .client-records) {
  grid-template-columns: 1fr;
}
.hidden {
  display: none !important;
}
@media (max-width: 650px) {
  .topbar > span {
    display: none;
  }
  .account-bar {
    width: 100%;
    justify-content: space-between;
  }
  .auth-panel {
    padding: 26px;
  }
  .account-label {
    max-width: 190px;
  }
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
}
.consent input {
  width: auto;
  margin-top: 4px;
}
hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 25px 0;
}
@media (min-width: 651px) and (max-height: 850px) {
  .sidebar {
    padding: 20px 14px;
  }
  .sidebar .nav-label {
    margin: 24px 12px 10px;
  }
  .sidebar nav {
    gap: 2px;
  }
  .sidebar nav a {
    padding: 8px;
    font-size: 11px;
  }
  .sidebar-bottom {
    padding-top: 22px;
    font-size: 11px;
  }
}
.portal-cards {
  margin-bottom: 24px;
}
.portal-cards .module-icon {
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 650px) {
  .portal-cards {
    grid-template-columns: 1fr;
  }
  .portal-cards .card {
    min-height: 190px;
  }
}
/* Taxation Portal Pro — aligned with the live website footer (#0a1d35). */
:root {
  --tp-deep: #0a1d35;
  --tp-navy: #102b4e;
  --tp-line: #dce5ee;
  --tp-muted: #687d92;
  --tp-radius: 14px;
  --tp-blue: #edf4fc;
  --tp-mint: #eaf5ef;
  --tp-sand: #fff5e8;
  --tp-lilac: #f1effb;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
}
button,
a.card,
nav a,
input,
select,
textarea {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button {
  box-shadow: 0 3px 8px #102b4e12;
}
button:hover {
  box-shadow: 0 6px 15px #102b4e20;
  transform: translateY(-1px);
}
button.secondary:hover {
  background: #f0f5fa;
  border-color: #b9cbdc;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #87adcf;
  outline-offset: 3px;
}
button:disabled {
  transform: none;
  box-shadow: none;
}
.brand,
.auth-brand,
.story-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.2;
}
.brand img {
  width: 49px;
  height: 45px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}
.brand > span {
  font-size: 16px;
  white-space: nowrap;
  letter-spacing: -0.4px;
}
.brand small {
  margin: 8px 0 0;
  font-size: 8px;
  letter-spacing: 2px;
}
.brand {
  padding: 0 7px;
}
.sidebar {
  padding: 27px 16px;
  background: var(--tp-deep);
  border-right: 1px solid #ffffff0d;
}
.nav-label {
  margin: 32px 12px 15px;
  color: #7894b0;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.sidebar nav a {
  border: 1px solid transparent;
  font-size: 11.5px;
  padding: 10px;
  gap: 10px;
  min-height: 42px;
}
.sidebar nav a.active {
  background: #ffffff10;
  border-color: #ffffff16;
  color: white;
  box-shadow: inset 3px 0 #85b6df;
}
.sidebar nav a:hover {
  background: #ffffff0b;
  transform: translateX(2px);
}
.nav-icon {
  width: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  border-top: 1px solid #ffffff14;
  margin-top: 25px;
  padding-top: 18px;
  color: #b6cadc;
}
.sidebar-bottom small {
  font-size: 10px;
}
.topbar {
  background: #fff;
  min-height: 76px;
  border-bottom: 1px solid var(--tp-line);
}
.workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.workspace-breadcrumb a {
  font-weight: 650;
  color: var(--tp-navy);
}
.workspace-breadcrumb > span:last-child {
  color: var(--tp-muted);
}
.account-bar {
  gap: 20px;
}
.account-label {
  font-weight: 650;
}
.account-label small {
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.shell > main {
  max-width: 1600px;
  padding: 34px 36px 42px;
}
.page-heading {
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 30px;
  font-weight: 750;
  color: var(--tp-deep);
  margin: 6px 0 8px;
}
.page-heading .muted {
  font-size: 13px;
  margin: 0;
}
.eyebrow {
  color: #57728c;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 750;
}
.workspace-actions {
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace-actions button {
  font-size: 11px;
  padding: 10px 13px;
  box-shadow: none;
}
.notice {
  background: #fff9ef;
  border-color: #eee1c8;
  color: #80643b;
  padding: 12px 16px;
  line-height: 1.6;
  font-size: 11px;
  border-radius: 9px;
}
.stats {
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: 21px 23px;
  position: relative;
  overflow: hidden;
}
.stat:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #91b4d0;
}
.stat-outstanding:before {
  background: #d4a25b;
}
.stat-tasks:before {
  background: #7baa8e;
}
.stat-leads:before {
  background: #a39bc4;
}
.stat small {
  font-weight: 500;
  font-size: 11px;
}
.stat strong {
  font-size: 27px;
  color: var(--tp-deep);
  margin-top: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
}
.section-title {
  margin-bottom: 16px;
}
.cards {
  gap: 17px;
}
.card {
  border-radius: var(--tp-radius);
  border-color: #d9e4ef;
  padding: 24px;
  background: var(--tp-blue);
  min-height: 232px;
}
.card:nth-child(4n + 2) {
  background: var(--tp-mint);
  border-color: #d7e6dc;
}
.card:nth-child(4n + 3) {
  background: var(--tp-sand);
  border-color: #e9decd;
}
.card:nth-child(4n + 4) {
  background: var(--tp-lilac);
  border-color: #dfdbec;
}
.card:hover {
  box-shadow: 0 12px 28px #0a1d350d;
  border-color: #aabed1;
  transform: translateY(-4px);
}
.module-icon {
  background: #ffffffd9;
  color: var(--tp-navy);
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 10px;
}
.module-icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 15px;
  color: var(--tp-deep);
  line-height: 1.5;
  margin-top: 16px;
}
.card p {
  font-size: 11.5px;
  color: #60758b;
  line-height: 1.8;
  margin-bottom: 22px;
}
.card .open {
  width: 100%;
  font-size: 11px;
  color: var(--tp-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .open > span {
  font-size: 17px;
}
.panel {
  border-radius: var(--tp-radius);
  padding: 25px;
  border-color: var(--tp-line);
  box-shadow: 0 3px 15px #0a1d3503;
}
.panel h2 {
  color: var(--tp-deep);
  font-size: 16px;
  margin-bottom: 14px;
}
.panel h3 {
  color: var(--tp-navy);
}
.panel > form {
  margin-top: 20px;
}
.field {
  font-weight: 550;
  font-size: 11px;
  color: #536b83;
  gap: 7px;
}
.field input,
.field select,
.field textarea {
  font-weight: 400;
}
input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  font-size: 12px;
  color: #243e58;
  background: #fff;
  box-shadow: 0 1px 2px #0a1d3503;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #789cbf;
  box-shadow: 0 0 0 3px #102b4e0b;
}
.form-grid {
  gap: 16px;
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  color: #718397;
}
.action-link {
  font-weight: 600;
  font-size: 12px;
}
.result {
  background: #eef4f9;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  padding: 18px;
}
.result strong {
  color: var(--tp-navy);
  font-size: 25px;
}
.result p {
  font-size: 12px;
}
.toolbar h2 {
  margin: 0;
}
.toolbar button {
  font-size: 11px;
  padding: 8px 12px;
  box-shadow: none;
}
.panel > #record-search {
  margin: 0 0 16px;
  background: #f8fafc;
  max-width: 100%;
}
.table-wrap {
  border: 1px solid #e2e8ef;
  border-radius: 9px;
  margin-top: 14px;
}
table {
  font-size: 11px;
}
thead {
  background: #f5f8fb;
}
th {
  padding: 12px 13px;
  background: #f4f7fa;
  color: #73859a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.65px;
}
td {
  padding: 13px;
  color: #3d566f;
  border-color: #eef2f6;
}
tbody tr:hover {
  background: #f9fbfd;
}
td button {
  font-size: 10px;
  box-shadow: none;
  padding: 6px 9px;
  border: 1px solid #e2e9f0;
  background: white;
}
td button[data-delete] {
  color: #925e54;
}
td button[data-paid],
td button[data-complete] {
  color: #376550;
}
td select {
  font-size: 10px;
  padding: 8px;
  max-width: 185px;
}
.empty {
  border: 1px dashed #dae4ed;
  margin-top: 16px;
  padding: 36px 18px;
  background: #f9fbfd;
  border-radius: 9px;
  font-size: 12px;
  color: #7b8ea0;
}
.line-item {
  padding: 15px;
  border: 1px solid #e3ebf1;
  background: #f8fafc;
}
.line-item button {
  padding: 6px 8px;
  font-size: 10px;
  margin-top: 12px;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 650;
  background: #eaf1f7;
  color: #537493;
}
.feedback {
  font-size: 12px;
  line-height: 1.7;
}
.workspace-footer {
  background: var(--tp-deep);
  color: white;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  text-align: left;
}
.workspace-footer strong {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.workspace-footer strong span {
  font-size: 10px;
  border: 1px solid #ffffff40;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.workspace-footer p {
  font-size: 11px;
  color: #91a9c0;
  margin: 6px 0;
}
.workspace-footer > div:nth-child(2) {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  color: #b8ccdf;
}
.workspace-footer small {
  grid-column: 1/-1;
  font-size: 10px;
  color: #849eb8;
  border-top: 1px solid #ffffff13;
  padding-top: 14px;
}
.auth-body {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(470px, 1fr);
  min-height: 100dvh;
  align-items: center;
  background: #f6f8fb;
}
.auth-story {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  padding: 50px clamp(32px, 5vw, 80px);
  background:
    radial-gradient(ellipse at 5% 10%, #1a4168 0, transparent 65%),
    var(--tp-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -270px;
  top: 20%;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  box-shadow:
    0 0 0 50px #ffffff03,
    0 0 0 100px #ffffff02;
  pointer-events: none;
}
.story-brand {
  font-size: 22px;
  font-weight: 750;
  position: relative;
  z-index: 1;
}
.story-brand img {
  width: 66px;
  height: 60px;
  object-fit: contain;
  background: white;
  padding: 5px;
  border-radius: 12px;
}
.story-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #9bb6d1;
  margin-top: 8px;
  font-weight: 500;
}
.story-copy {
  margin: 75px 0;
  position: relative;
  z-index: 1;
  max-width: 470px;
}
.story-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.3px;
  color: #97b6d2;
}
.story-copy h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.15;
  font-weight: 680;
  letter-spacing: -2px;
  margin: 23px 0;
}
.story-copy h2 span {
  color: #87b6d9;
}
.story-copy > p {
  max-width: 390px;
  line-height: 1.9;
  color: #b0c2d5;
  font-size: 13px;
}
.story-modules {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.story-modules span {
  border: 1px solid #ffffff1b;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 10px;
  background: #ffffff05;
  color: #c5d6e5;
}
.story-bottom {
  border-top: 1px solid #ffffff1a;
  padding-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #90abc3;
  font-size: 10px;
}
.story-bottom a {
  color: #d9e8f4;
  flex-basis: 100%;
  margin-top: 8px;
}
.auth-panel {
  width: min(calc(100% - 80px), 470px);
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 34px 0;
  margin: 45px auto;
  max-width: none;
}
.auth-brand {
  margin-bottom: 36px;
  color: var(--tp-navy);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.auth-brand img {
  width: 64px;
  height: 57px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 3px;
}
.auth-brand small {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #7a8da1;
}
.auth-panel h1 {
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 10px 0;
}
.auth-panel #auth-description {
  font-size: 12px;
  margin-bottom: 26px;
}
.auth-panel .field {
  font-size: 11px;
  margin-top: 18px;
}
.auth-panel input {
  font-size: 13px;
  padding: 13px 14px;
  background: white;
  border-radius: 9px;
}
.auth-panel form > button {
  padding: 14px;
  margin-top: 25px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 13px;
  background: var(--tp-navy);
}
.auth-panel .hint {
  font-size: 11px;
  color: #718599;
}
.auth-panel #auth-switch {
  border-top: 1px solid #dce5ee;
  padding-top: 20px;
  margin-top: 24px;
}
.auth-security {
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #dce5ee;
  margin-top: 26px;
  padding-top: 19px;
  font-size: 10px;
  color: #7d90a4;
}
.text-button {
  font-size: inherit;
  box-shadow: none;
  font-weight: 650;
}
.text-button:hover {
  box-shadow: none;
  transform: none;
}
.auth-panel > .action-link {
  font-size: 11px;
}
#manual-dialog {
  border: 1px solid #d4e0eb;
  border-radius: 17px;
  padding: 28px;
  width: min(620px, calc(100% - 28px));
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 24px 100px #0a1d3530;
  color: #263f58;
}
#manual-dialog::backdrop {
  background: #0a1d3575;
  backdrop-filter: blur(3px);
}
.manual-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.manual-heading h2 {
  font-size: 19px;
  margin: 5px 0 20px;
}
.manual-heading button {
  padding: 7px 11px;
}
.manual-heading .eyebrow {
  margin: 0;
}
#manual-content ol {
  padding-left: 23px;
  line-height: 1.9;
  font-size: 13px;
}
#manual-content li {
  padding: 9px 0 9px 5px;
}
#manual-dialog .field {
  margin-bottom: 17px;
}
.portal-cards .module-icon {
  width: auto;
  min-width: 48px;
}
@media (min-width: 651px) and (max-height: 850px) {
  .sidebar {
    padding: 21px 14px;
  }
  .sidebar .nav-label {
    margin: 22px 10px 11px;
  }
  .sidebar nav a {
    padding: 7px 9px;
    min-height: 34px;
    font-size: 10.5px;
  }
  .sidebar nav {
    gap: 2px;
  }
  .brand > span {
    font-size: 14px;
  }
  .brand img {
    width: 43px;
    height: 40px;
  }
  .sidebar-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }
  .sidebar-bottom a {
    margin-top: 10px;
  }
}
@media (max-width: 1100px) {
  .shell > main {
    padding: 28px 24px;
  }
  .workspace-actions {
    justify-content: flex-start;
  }
  .auth-story {
    padding: 40px 30px;
  }
  .story-copy h2 {
    font-size: 45px;
  }
  .auth-panel {
    width: calc(100% - 60px);
  }
  .workspace-footer {
    padding: 26px 24px;
    grid-template-columns: 1fr;
  }
  .workspace-footer > div:nth-child(2) {
    flex-wrap: wrap;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .auth-body {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    width: min(calc(100% - 48px), 450px);
    padding: 30px 0;
    margin: 20px auto;
  }
  .auth-brand {
    margin-bottom: 30px;
  }
  .auth-body {
    background:
      radial-gradient(ellipse at top, #e8eff6, transparent 65%), #f6f8fb;
  }
  .auth-panel {
    background: #fff;
    padding: 28px;
    border: 1px solid #e1e8ef;
    border-radius: 16px;
    width: min(calc(100% - 28px), 470px);
    box-shadow: 0 12px 35px #0a1d3507;
  }
  .auth-panel h1 {
    font-size: 28px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 16px;
  }
  .brand > span {
    font-size: 18px;
  }
  .brand img {
    width: 47px;
    height: 42px;
  }
  .brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 1.5px;
    margin: 6px 0 0;
  }
  .sidebar nav {
    margin-top: 18px;
    gap: 6px;
  }
  .sidebar nav a {
    font-size: 11px;
    min-height: 37px;
    padding: 8px 10px;
  }
  .nav-icon svg {
    width: 16px;
    height: 16px;
  }
  .sidebar nav a.active {
    box-shadow: none;
  }
  .sidebar nav a:hover {
    transform: none;
  }
  .topbar {
    padding: 13px 17px;
    min-height: 67px;
  }
  .workspace-breadcrumb {
    display: none;
  }
  .shell > main {
    padding: 24px 16px 30px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading {
    gap: 19px;
  }
  .workspace-actions {
    gap: 7px;
    width: 100%;
  }
  .workspace-actions button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 18px 16px;
    min-height: 235px;
  }
  .card h3 {
    font-size: 13px;
    margin: 13px 0 8px;
  }
  .card p {
    font-size: 10.5px;
    line-height: 1.75;
  }
  .card .open {
    font-size: 10px;
  }
  .module-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 8px;
  }
  .module-icon svg {
    width: 23px;
    height: 23px;
  }
  .stats {
    gap: 11px;
  }
  .stat {
    padding: 17px 16px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel {
    padding: 20px 17px;
  }
  .panel h2 {
    font-size: 15px;
  }
  .notice {
    font-size: 10px;
    padding: 11px 13px;
  }
  .workspace-footer {
    padding: 24px 18px;
  }
  .workspace-footer > div:nth-child(2) {
    gap: 15px;
    font-size: 10px;
  }
  .account-label {
    font-size: 11px;
  }
  .account-label small {
    font-size: 9px;
  }
  .portal-cards {
    grid-template-columns: 1fr;
  }
  .portal-cards .card {
    min-height: 185px;
  }
  .line-item .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-title .muted {
    font-size: 10px;
  }
  .auth-panel .auth-brand {
    font-size: 21px;
  }
  .auth-brand img {
    width: 54px;
    height: 49px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover,
  button:hover,
  .sidebar nav a:hover {
    transform: none;
  }
}
@media print {
  .auth-story,
  .manual-heading button {
    display: none !important;
  }
  .workspace-footer {
    display: none !important;
  }
  .brand img {
    background: white;
  }
  .shell > main {
    padding: 0;
  }
  .panel {
    box-shadow: none;
  }
  .result {
    break-inside: avoid;
  }
}
.software-public {
  background: #f4f7fb;
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px max(28px, calc((100vw - 1250px) / 2));
  background: white;
  border-bottom: 1px solid var(--tp-line);
}
.public-header .auth-brand {
  font-size: 20px;
  margin: 0;
}
.public-portal {
  color: #de294a;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  color: #536b83;
}
.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--tp-navy);
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.public-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #102b4e20;
}
.public-header .public-button {
  padding: 11px 17px;
}
.software-public main {
  max-width: none;
  margin: 0;
  padding: 0;
}
.public-hero {
  background:
    radial-gradient(ellipse at top right, #1c4267 0, transparent 62%),
    var(--tp-deep);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 75px;
  align-items: center;
  padding: 85px max(30px, calc((100vw - 1200px) / 2));
}
.public-hero .eyebrow {
  color: #8eabc6;
  letter-spacing: 2.5px;
}
.public-hero h1 {
  font-size: clamp(37px, 4.4vw, 61px);
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 22px 0;
}
.public-hero h1 > span {
  color: #8eb9d9;
}
.public-hero p {
  font-size: 13px;
  line-height: 1.9;
  color: #b4c8db;
  max-width: 450px;
}
.public-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin: 29px 0 20px;
}
.public-actions .public-button {
  background: white;
  color: var(--tp-navy);
}
.public-actions .outline {
  background: transparent;
  border: 1px solid #ffffff36;
  color: white;
}
.public-note {
  font-size: 10px !important;
  color: #83a1bc !important;
}
.public-preview {
  border: 1px solid #ffffff24;
  border-radius: 17px;
  padding: 26px;
  background: #ffffff08;
  box-shadow: 0 20px 60px #00000010;
}
.preview-top {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #9bb9d3;
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-top > span:last-child {
  margin-left: auto;
  border: 1px solid #ffffff28;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 8px;
}
.public-preview h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 30px 0 24px;
}
.preview-row {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #ffffff13;
  background: #ffffff04;
  border-radius: 9px;
  padding: 17px 13px;
  margin-bottom: 11px;
}
.preview-icon {
  border: 1px solid #ffffff20;
  padding: 7px;
  font-size: 10px;
  border-radius: 7px;
  color: #b4cce1;
}
.preview-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.preview-row small {
  display: block;
  font-size: 9px;
  color: #8facbf;
  margin-top: 4px;
}
.preview-label {
  margin-left: auto;
  background: #ffffff0b;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 8px;
  color: #a6bfd2;
  white-space: nowrap;
}
.preview-footer {
  margin-top: 21px;
  text-align: center;
  color: #7194b1;
  font-size: 9px;
}
.public-modules {
  padding: 50px max(28px, calc((100vw - 1200px) / 2)) 65px;
}
.public-modules .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.public-modules .card {
  min-height: 265px;
}
.public-modules .section-title {
  margin: 0 0 24px;
}
.public-modules .section-title h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
}
.public-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 45px max(28px, calc((100vw - 1200px) / 2));
  background: #e9f0f7;
  border-top: 1px solid #dde6ef;
}
.public-more h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  line-height: 1.35;
}
.public-more p {
  font-size: 12px;
  line-height: 1.9;
  color: #6d8296;
  max-width: 500px;
}
.public-more-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.public-more-links a {
  background: #ffffffa0;
  border: 1px solid #d3e0ea;
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  color: var(--tp-navy);
  font-weight: 600;
}
.public-more-links a:hover {
  background: white;
}
.public-scope {
  padding: 50px max(28px, calc((100vw - 1200px) / 2));
  background: white;
  text-align: center;
}
.public-scope h2 {
  font-size: 23px;
  color: var(--tp-navy);
}
.public-scope p {
  font-size: 12px;
  color: #6b8196;
  max-width: 760px;
  margin: 0 auto 23px;
  line-height: 1.9;
}
.software-public > .workspace-footer {
  padding: 30px max(28px, calc((100vw - 1200px) / 2));
}
@media (max-width: 1100px) {
  .public-modules .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-hero {
    gap: 35px;
  }
  .public-header nav {
    gap: 15px;
  }
  .public-header .auth-brand {
    font-size: 17px;
  }
  .public-header .auth-brand img {
    width: 48px;
    height: 44px;
  }
  .public-hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .public-more {
    gap: 40px;
  }
}
@media (max-width: 750px) {
  .public-header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .public-header nav {
    gap: 15px;
    font-size: 11px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .public-header .auth-brand {
    font-size: 20px;
  }
  .public-header .auth-brand img {
    width: 54px;
    height: 49px;
  }
  .public-header .public-button {
    padding: 8px 12px;
  }
  .public-hero {
    grid-template-columns: 1fr;
    padding: 45px 20px;
    gap: 35px;
  }
  .public-hero h1 {
    font-size: 40px;
  }
  .public-preview {
    padding: 22px;
  }
  .public-modules {
    padding: 35px 16px;
  }
  .public-modules .section-title {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .public-modules .cards {
    gap: 12px;
  }
  .public-modules .card {
    min-height: 260px;
  }
  .public-modules .section-title h2 {
    font-size: 24px;
  }
  .public-more {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 20px;
  }
  .public-more h2 {
    font-size: 25px;
  }
  .public-scope {
    padding: 35px 20px;
  }
  .public-scope h2 {
    font-size: 21px;
  }
  .software-public > .workspace-footer {
    padding: 27px 20px;
  }
  .preview-label {
    font-size: 7px;
  }
  .preview-row small {
    font-size: 8px;
  }
  .preview-row {
    gap: 10px;
  }
}
.auth-body {
  place-items: stretch;
}
.auth-story {
  width: 100%;
  justify-self: stretch;
}
.auth-panel {
  align-self: center;
  justify-self: center;
}
.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.finance-filters {
  margin-bottom: 22px;
}
.finance-filters form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.finance-filters .form-grid {
  flex: 1;
  min-width: 240px;
}
.finance-filters form button {
  margin: 0;
}
.finance-filters .hint {
  margin: 14px 0 0;
}
.journal-line {
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  padding: 13px 0;
  border-bottom: 1px solid #e0e7ef;
}
.journal-line button {
  font-size: 10px;
  padding: 9px;
  margin: 0;
}
@media (max-width: 650px) {
  .journal-line {
    grid-template-columns: 1fr 1fr;
  }
  .journal-line > .field:first-child {
    grid-column: 1/-1;
  }
}
