:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #201d2d;
  background: #f8f8fb;
  font-synthesis: none;
  --ink: #201d2d;
  --muted: #605c71;
  --line: #e6e4ee;
  --brand: #583ec7;
  --brand-dark: #442ba7;
  --lavender: #eeeaff;
  --white: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8d77e6;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.num {
  font-variant-numeric: tabular-nums;
}
.boot {
  min-height: 90vh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
}
.brand img {
  height: 40px;
  width: 40px;
}
.brand span span {
  color: var(--brand);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 650;
  border: 1px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
  color: var(--ink);
  background: #fff;
  line-height: 1.3;
}
.button.primary {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}
.button.primary:hover {
  background: var(--brand-dark);
}
.button.secondary {
  border-color: var(--line);
}
.button.secondary:hover {
  background: #f7f5fe;
}
.button.subtle {
  color: var(--brand);
  background: #f6f3ff;
}
.button.subtle:hover {
  background: #eae4ff;
}
.button.danger {
  color: #a93543;
  background: #fff2f3;
}
.button.icon-button {
  padding: 8px;
  min-width: 40px;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: 66px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  grid-row: span 2;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 15px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  margin: 0 8px 10px;
}
.navigation {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #555064;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 550;
}
.nav-item:hover {
  background: #f7f5fe;
  color: var(--brand);
}
.nav-item[aria-current="page"] {
  background: #eeeaff;
  color: #4a31b6;
  font-weight: 730;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 15px 4px 0;
}
.workspace strong,
.workspace small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace strong {
  font-size: 0.9rem;
}
.workspace small {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--lavender);
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 750;
  flex: none;
}
.topbar {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(18px, 3.2vw, 46px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.89rem;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  font-weight: 650;
}
.crumb svg {
  width: 16px;
  height: 16px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-brand {
  display: none;
}
.content {
  grid-column: 2;
  width: 100%;
  max-width: 1530px;
  margin-inline: auto;
  padding: 30px clamp(18px, 3.2vw, 46px) 48px;
}
.headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.13rem;
  letter-spacing: -0.025em;
}
.headline p,
.section-head p {
  margin-top: 7px;
  line-height: 1.5;
}
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 186px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #ebe6ff;
  border: 1px solid #e6dffd;
  padding: 25px clamp(20px, 3vw, 32px);
  isolation: isolate;
}
.hero-copy {
  max-width: 490px;
  position: relative;
  z-index: 1;
}
.hero h2 {
  font-size: clamp(1.42rem, 2.3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.hero p {
  margin: 8px 0 17px;
  color: #514869;
  line-height: 1.45;
}
.hero-art {
  position: absolute;
  right: 7%;
  top: 54%;
  width: 230px;
  height: 170px;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: -49px -30px -40px -5px;
  border-radius: 50%;
  border: 1px solid #d7cafb;
  transform: rotate(-22deg);
}
.hero-art::after {
  inset: -72px -60px -65px -27px;
}
.art-card {
  position: absolute;
  inset: 25px 36px 21px 24px;
  border-radius: 18px;
  transform: rotate(-10deg);
  background: #fff;
  border: 1px solid #ddd3fb;
  box-shadow: 0 12px 25px #6248b220;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 9px;
}
.art-card .icon {
  color: var(--brand);
  width: 22px;
  height: 22px;
}
.art-card i {
  display: block;
  height: 5px;
  width: 86px;
  background: #dcd3fd;
  border-radius: 10px;
}
.art-card i:last-child {
  width: 55px;
  background: #eeeaff;
}
.art-icon {
  position: absolute;
  display: grid;
  place-items: center;
  right: 13px;
  bottom: 16px;
  width: 59px;
  height: 59px;
  border-radius: 15px;
  background: #c6f4de;
  color: #24664f;
  border: 4px solid #eee8ff;
  transform: rotate(8deg);
  box-shadow: 0 8px 18px #6248b21d;
}
.art-icon .icon {
  width: 25px;
  height: 25px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.metric {
  min-width: 0;
  min-height: 132px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}
.metric-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  background: #eeeaff;
  color: var(--brand);
}
.metric-icon .icon {
  width: 18px;
  height: 18px;
}
.metric.green .metric-icon {
  background: #e1f7ed;
  color: #21745a;
}
.metric.amber .metric-icon {
  background: #fff2dc;
  color: #925b15;
}
.metric.rose .metric-icon {
  background: #fae9ef;
  color: #a62f55;
}
.metric dt {
  font-size: 0.88rem;
  color: #565163;
  font-weight: 600;
}
.metric dd {
  margin: 5px 0 0;
  font-size: clamp(1.12rem, 2.05vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.section-head {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-head p {
  font-size: 0.875rem;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #faf9fc;
  color: #5d576d;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 11px 17px;
}
td {
  border-bottom: 1px solid #eeecf3;
  padding: 12px 17px;
  font-size: 0.9rem;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td:last-child,
th:last-child {
  padding-right: 20px;
}
td.action {
  text-align: right;
}
td strong {
  font-weight: 650;
}
.client-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.client-cell .avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.72rem;
}
.client-cell .avatar:nth-child(1) {
  background: #f0ebfe;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f0edf6;
  color: #59516b;
}
.tag.paid {
  background: #e3f6ec;
  color: #20664f;
}
.tag.pending {
  background: #fff2d9;
  color: #7d4c0e;
}
.tag.late {
  background: #fbe9ee;
  color: #97294b;
}
.empty {
  text-align: center;
  padding: 36px 18px;
  color: var(--muted);
  line-height: 1.5;
}
.empty .icon {
  display: block;
  margin: 0 auto 8px;
  color: var(--brand);
}
.empty strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
}
.search input {
  min-width: 0;
  width: 225px;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0;
}
.pager {
  padding: 14px 19px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.demo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #514681;
  background: #efebfc;
  border: 1px solid #e7defb;
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 20px;
}
.demo-bar button {
  padding: 3px 0;
  background: none;
  border: 0;
  color: var(--brand);
  font-weight: 720;
  white-space: nowrap;
}
.dialog-title {
  font-size: 1.28rem;
}
dialog {
  width: min(94vw, 550px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  color: var(--ink);
  max-height: 92dvh;
  box-shadow: 0 22px 100px #1b14394a;
}
dialog::backdrop {
  background: #25203670;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.form {
  display: grid;
  gap: 15px;
}
.form label:not(.checkbox) {
  display: grid;
  gap: 6px;
  color: #474154;
  font-size: 0.9rem;
  font-weight: 650;
}
.form .checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #474154;
}
.form .checkbox input {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  flex: none;
}
.form input:not([type="checkbox"]),
select,
.form textarea,
.month {
  width: 100%;
  border: 1px solid #dcd8e8;
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 10px;
  background: white;
  color: var(--ink);
  font-weight: 400;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23605c71' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}
.form textarea {
  resize: vertical;
  min-height: 126px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.form-actions,
.detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.form-error {
  font-size: 0.9rem;
  color: #932b41;
  background: #fcebf0;
  padding: 9px;
  border-radius: 8px;
}
.detail-top {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-money {
  padding: 12px 0;
  border-block: 1px solid var(--line);
  width: 100%;
  margin-bottom: 15px;
}
.detail-money p {
  margin: 4px 0;
}
.detail-money strong {
  font-size: 1.2rem;
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.payment-row > div {
  display: grid;
  gap: 3px;
}
.inline-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.link-button {
  background: none;
  color: var(--brand);
  border: 0;
  padding: 2px 0;
  font-size: 0.875rem;
  font-weight: 680;
}
.link-button:hover {
  text-decoration: underline;
}
.settings-card {
  padding: 21px;
  max-width: 620px;
}
.month {
  width: auto;
  min-width: 152px;
  font-size: 0.88rem;
}
.notice:empty {
  display: none;
}
.notice {
  position: fixed;
  z-index: 5;
  right: 22px;
  bottom: 24px;
  max-width: calc(100vw - 44px);
  padding: 12px 15px;
  background: #2d2154;
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 8px 28px #22173b40;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  min-height: 100dvh;
  background: white;
}
.login-area {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 17px;
  padding: clamp(25px, 7vw, 106px);
}
.login-area .brand {
  margin-bottom: 24px;
}
.login-area h1 {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  max-width: 680px;
  line-height: 1.02;
}
.login-area p {
  max-width: 430px;
  line-height: 1.55;
}
.login-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.login-side {
  overflow: hidden;
  margin: 18px;
  border-radius: 22px;
  background: #ebe6ff;
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-preview {
  width: min(380px, 100%);
  padding: 23px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ddcff7;
  box-shadow: 0 18px 55px #6349ad2c;
  transform: rotate(-4deg);
}
.login-preview h2 {
  margin-bottom: 14px;
}
.login-preview .payment-row:last-child {
  border: 0;
}
.login-preview strong {
  font-size: 1.1rem;
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 12px;
  }
  .hero-art {
    right: 5%;
  }
  .sidebar {
    padding-inline: 10px;
  }
}
@media (max-width: 900px) {
  .hero-art {
    right: 0;
    opacity: 0.75;
    scale: 0.83;
  }
  .hero-copy {
    max-width: 65%;
  }
  .login-side {
    margin: 10px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .shell {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .sidebar .brand {
    margin-inline: 0;
    font-size: 1.08rem;
  }
  .sidebar .brand img {
    height: 33px;
    width: 33px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: auto;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar-bottom,
  .crumb {
    display: none;
  }
  .navigation {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
  .nav-item {
    font-size: 0.66rem;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    padding: 5px 2px;
    min-height: 48px;
    text-align: center;
  }
  .nav-item .icon {
    width: 17px;
    height: 17px;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand img {
    height: 33px;
    width: 33px;
  }
  .topbar {
    height: 59px;
  }
  .content {
    padding: 20px 15px calc(85px + env(safe-area-inset-bottom));
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric dd {
    font-size: 1.32rem;
  }
  .metric {
    min-height: 104px;
  }
  .hero {
    min-height: 167px;
    padding: 18px;
  }
  .hero-copy {
    max-width: 70%;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-art {
    right: -34px;
    scale: 0.57;
  }
  .headline {
    align-items: center;
    margin-bottom: 16px;
  }
  .headline p {
    font-size: 0.9rem;
  }
  .headline .button {
    white-space: normal;
  }
  .notice {
    bottom: 75px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-area {
    padding: 35px 21px;
  }
  .login-area .brand {
    margin-bottom: 8px;
  }
  .login-side {
    margin: 0 15px 15px;
  }
  .section-head {
    padding: 15px;
  }
  .section-head h2 {
    font-size: 1rem;
  }
  .search input {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .minor {
    display: none;
  }
  .hero-copy {
    max-width: 85%;
  }
  .hero-art {
    opacity: 0.36;
    right: -47px;
  }
  .button {
    font-size: 0.84rem;
  }
  .headline {
    flex-wrap: wrap;
  }
  .top-actions .button {
    padding-inline: 8px;
  }
  .top-actions .icon {
    width: 16px;
    height: 16px;
  }
  .form {
    gap: 12px;
  }
  .fields {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.active-filter {
  padding: 0 20px 15px;
}
@media (max-width: 620px) {
  .job-table {
    overflow: visible;
  }
  .job-table table,
  .job-table tbody {
    display: block;
  }
  .job-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .job-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 10px;
    padding: 12px 15px;
    border-top: 1px solid var(--line);
  }
  .job-table tr td {
    border: 0;
    padding: 0;
    white-space: normal;
    min-width: 0;
  }
  .job-table tr td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .job-table tr td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    color: var(--muted);
    font-size: 0.83rem;
  }
  .job-table tr td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    white-space: nowrap;
  }
  .job-table tr td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .job-table tr td:nth-child(5) {
    display: none;
  }
  .job-table tr td:nth-child(6) {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .job-table .client-cell .avatar {
    display: none;
  }
}

.policy {
  max-width: 720px;
  display: grid;
  gap: 14px;
  line-height: 1.55;
}

.policy h2 {
  margin-top: 10px;
}

.policy a[href^="mailto"] {
  overflow-wrap: anywhere;
}
