@layer reset,base,components,responsive;
@layer reset {
  * {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button,
  a {
    touch-action: manipulation;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  img {
    max-width: 100%;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    --bg: #f7f8fa;
    --white: #fff;
    --ink: #202a32;
    --muted: #7a848d;
    --line: #e9ecee;
    --green: #205c4a;
    --deep: #163f34;
    --pale: #ecf3ef;
    --radius: 12px;
  }
  body {
    font-family:
      Inter,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  h1 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 620;
    letter-spacing: -1.05px;
  }
  h2 {
    font-size: 16px;
    font-weight: 620;
    letter-spacing: -0.25px;
  }
  h3 {
    font-weight: 600;
  }
  p {
    color: var(--muted);
  }
  button {
    border: 0;
  }
  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid #dfe4e6;
    background: #fff;
    border-radius: 7px;
    padding: 11px 12px;
    color: var(--ink);
    outline: none;
    min-height: 44px;
  }
  input:focus,
  select:focus,
  textarea:focus {
    border-color: #659c87;
    box-shadow: 0 0 0 3px #205c4a12;
  }
  textarea {
    resize: vertical;
  }
  label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
  }
  label small {
    font-weight: 400;
    color: var(--muted);
  }
  :focus-visible {
    outline: 3px solid #83b4a0;
    outline-offset: 3px;
  }
  strong {
    font-weight: 600;
  }
  .muted {
    color: var(--muted);
  }
  .block {
    display: block;
  }
  .preserve {
    white-space: pre-line;
  }
  .number {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
  }
  .amount {
    font-weight: 600;
    color: #253a32;
  }
  .sr-only,
  .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .skip:focus {
    position: fixed;
    z-index: 20;
    background: white;
    padding: 12px;
  }
  .eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.5px;
    color: #7c8982;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 17px;
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 550;
    min-height: 42px;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .button:hover {
    background: var(--deep);
  }
  .button.secondary {
    background: #fff;
    border-color: #dfe5e1;
    color: #46564e;
  }
  .button.secondary:hover {
    background: #f5f8f6;
  }
  .button.danger {
    background: #fff;
    color: #a45151;
    border-color: #e7d9d9;
  }
  .button.full {
    width: 100%;
    justify-content: space-between;
  }
  .button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .text-link {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    background: transparent;
    padding: 4px 0;
  }
  .text-link:hover {
    text-decoration: underline;
  }
  .quiet {
    background: transparent;
    color: #778179;
    font-size: 11px;
    padding: 8px;
  }
  .back-link {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 12px;
  }
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #173f34;
    color: white;
    border-radius: 10px;
    padding: 16px 24px;
    box-shadow: 0 8px 40px #0002;
    z-index: 30;
    max-width: min(450px, 90vw);
  }
  .notice {
    background: #f3f5ee;
    border: 1px solid #e3e8d7;
    border-radius: 9px;
    padding: 15px 18px;
    margin: 0 0 24px;
    color: #617244;
    font-size: 13px;
  }
  .notice.success {
    background: #eaf5ee;
    color: #2f7251;
  }
  .form-error {
    background: #fff0ee;
    color: #a03931;
    padding: 13px;
    border-radius: 7px;
    font-size: 13px;
    margin: 16px 0;
  }
  .section-title {
    margin: 30px 0 16px;
  }
}
@layer components {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: white;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 30px 19px;
    z-index: 10;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 24px;
    font-weight: 660;
    letter-spacing: -1px;
    padding: 0 10px;
  }
  .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    font-size: 25px;
    letter-spacing: -3px;
    padding-right: 3px;
  }
  .brand-mark span {
    color: #a8d7b8;
  }
  .brand-dot {
    font-size: 9px;
    align-self: flex-start;
    margin-top: 7px;
    letter-spacing: 0;
  }
  .workspace {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 9px;
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .workspace > span:last-child {
    margin-left: auto;
    color: #909890;
  }
  .workspace-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eef0e9;
    display: grid;
    place-items: center;
    color: #73806b;
  }
  .workspace strong {
    font-size: 11px;
    display: block;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .workspace small {
    font-size: 10px;
    color: var(--muted);
    display: block;
  }
  .nav-label {
    font-size: 9px;
    letter-spacing: 1.4px;
    color: #99a19c;
    margin: 0 13px 12px;
  }
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .sidebar nav a {
    display: flex;
    align-items: center;
    padding: 11px 13px;
    gap: 12px;
    color: #737d79;
    border-radius: 6px;
    font-size: 12px;
  }
  .sidebar nav a.active {
    background: #eaf2ed;
    color: var(--green);
    font-weight: 650;
  }
  .sidebar nav a:hover {
    background: #f1f5f2;
  }
  .nav-icon {
    font-size: 19px;
    width: 19px;
    line-height: 1;
  }
  .active-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    margin-left: auto;
  }
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
  }
  .private-note {
    padding: 17px 12px;
    margin-bottom: 20px;
    background: #f8faf8;
    border: 1px solid #edf1ed;
    border-radius: 8px;
  }
  .private-note strong {
    display: block;
    font-size: 10px;
    margin: 9px 0 4px;
  }
  .private-note p {
    font-size: 10px;
  }
  .lock-icon {
    color: #86978d;
    font-size: 22px;
  }
  .profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 7px 0;
    border-top: 1px solid var(--line);
  }
  .profile strong {
    font-size: 11px;
    display: block;
    max-width: 130px;
    overflow: hidden;
  }
  .profile small {
    font-size: 10px;
    color: var(--muted);
    display: block;
  }
  .profile > span:last-child {
    margin-left: auto;
    color: var(--muted);
  }
  .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee4d6;
    display: grid;
    place-items: center;
    color: #877858;
    font-size: 12px;
  }
  .main-shell {
    margin-left: 238px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    height: 74px;
    border-bottom: 1px solid var(--line);
    background: #ffffffc9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
  }
  .breadcrumbs {
    font-size: 11px;
    color: #8f979d;
  }
  .breadcrumbs span {
    margin: 0 12px;
    color: #c5cbd0;
  }
  .breadcrumbs strong {
    color: #58636b;
    font-weight: 500;
  }
  .top-actions {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .private-badge {
    font-size: 10px;
    color: #68796e;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .private-badge > span {
    width: 5px;
    height: 5px;
    background: #709b7a;
    border-radius: 50%;
  }
  .menu-button {
    display: none;
  }
  main#main {
    padding: 36px 38px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
  }
  .page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 31px;
  }
  .page-heading .eyebrow {
    display: block;
    margin-bottom: 10px;
  }
  .page-heading p {
    margin-top: 9px;
    font-size: 12px;
  }
  .greeting-dot {
    color: #93ae99;
  }
  .overview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .overview-label h2 {
    font-size: 13px;
  }
  .date-chip {
    font-size: 10px;
    color: #74817a;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 5px;
  }
  .date-chip span {
    margin: 0 5px;
    color: #bac3bd;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
  }
  .stats-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 21px 20px;
    position: relative;
    overflow: hidden;
  }
  .stat-label {
    font-size: 11px;
    color: #7b8780;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .stat-label > span {
    font-size: 15px;
  }
  .stat-card > strong {
    display: block;
    font-size: 30px;
    letter-spacing: -1px;
    font-weight: 600;
    margin: 14px 0 9px;
    position: relative;
    z-index: 1;
  }
  .stat-card strong small {
    font-size: 11px;
    margin-left: 7px;
    color: #9aa39c;
    letter-spacing: 0;
    font-weight: 400;
  }
  .stat-caption {
    font-size: 9px;
    color: #939c97;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .stat-card.featured {
    background: #20513f;
    border-color: #20513f;
    color: white;
  }
  .featured .stat-label {
    color: #d0e0d5;
  }
  .featured .stat-caption {
    color: #a5c0ae;
  }
  .stat-art {
    position: absolute;
    bottom: -46px;
    right: -20px;
    font-size: 145px;
    color: #ffffff0d;
    line-height: 1;
  }
  .mini-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
  }
  .green {
    background: #8fbba1;
  }
  .amber {
    background: #d1b67c;
  }
  .rose {
    background: #c89085;
  }
  .summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 19px 7px;
    margin-bottom: 28px;
  }
  .summary-strip > div {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 0 19px;
    border-right: 1px solid var(--line);
  }
  .summary-strip > div:last-child {
    border: 0;
  }
  .summary-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #f4f7f4;
    border: 1px solid #ebf0ec;
    color: #7c9885;
    border-radius: 6px;
  }
  .summary-strip > div > span:last-child {
    font-size: 10px;
    color: #8b958f;
  }
  .summary-strip strong {
    display: block;
    color: #3f4a43;
    font-size: 16px;
    margin-top: 2px;
  }
  .summary-strip strong small {
    font-size: 9px;
    font-weight: 400;
    color: #9aa39c;
    margin-left: 4px;
  }
  .panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
  }
  .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    gap: 15px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 10px;
    margin-top: 4px;
  }
  .table-wrap {
    overflow: auto;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    text-align: left;
  }
  thead {
    background: #fafbfa;
  }
  th {
    padding: 12px 24px;
    font-size: 9px;
    letter-spacing: 0.2px;
    color: #8b9590;
    font-weight: 500;
    border-top: 1px solid #f0f2f0;
    border-bottom: 1px solid #f0f2f0;
  }
  td {
    padding: 17px 24px;
    font-size: 11px;
    border-bottom: 1px solid #f1f3f2;
    color: #75817a;
  }
  tr:last-child td {
    border-bottom: 0;
  }
  .invoice-number {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 550;
    color: #46554b;
  }
  .document-icon {
    color: #a0afa5;
    font-size: 16px;
  }
  .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    font-weight: 600;
    border-radius: 5px;
    letter-spacing: 0.2px;
    padding: 4px 7px;
    background: #f0f2f3;
    color: #87919a;
    white-space: nowrap;
  }
  .status:before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }
  .status.paid,
  .status.succeeded {
    background: #edf6ee;
    color: #598866;
  }
  .status.sent {
    background: #edf2fb;
    color: #6b85ad;
  }
  .status.pending_payment,
  .status.processing,
  .status.creating {
    background: #fbf5e8;
    color: #ad9257;
  }
  .status.overdue,
  .status.failed,
  .status.returned {
    background: #fcf0ed;
    color: #b77767;
  }
  .status.void,
  .status.refunded {
    background: #f2edf4;
    color: #9983a3;
  }
  .row-arrow {
    font-size: 15px;
    color: #9aa89e;
  }
  .empty {
    text-align: center;
    padding: 47px 25px;
  }
  .empty > span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #f1f5f1;
    border: 1px solid #e8ede8;
    color: #879d8d;
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 13px;
  }
  .empty h3 {
    font-size: 14px;
    margin: 0 0 6px;
  }
  .empty p {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .empty.compact {
    padding: 28px 22px;
  }
  .bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
  }
  .bottom-grid .panel {
    margin: 0;
  }
  .calm-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #edf1e8;
    padding: 25px 28px;
  }
  .calm-card .eyebrow {
    font-size: 8px;
    color: #8b9880;
  }
  .calm-card h2 {
    font-size: 23px;
    line-height: 1.3;
    margin: 12px 0;
    color: #4c6452;
    letter-spacing: -0.6px;
  }
  .calm-card p {
    font-size: 10px;
    max-width: 255px;
    margin-bottom: 20px;
    color: #8a9683;
  }
  .calm-card .text-link {
    font-size: 10px;
  }
  .calm-art {
    position: absolute;
    bottom: 0;
    right: 5px;
    color: #dce5d4;
    font-size: 160px;
    line-height: 1;
    pointer-events: none;
  }
  .payment-list {
    padding: 0 24px 10px;
  }
  .payment-list > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .payment-list > a:last-child {
    border: 0;
  }
  .payment-list strong {
    font-size: 11px;
    display: block;
  }
  .payment-list small {
    font-size: 9px;
    display: block;
    color: var(--muted);
  }
  .payment-list > a > div:last-child {
    margin-left: auto;
    text-align: right;
  }
  .payment-circle {
    background: #f1f5f1;
    color: #92ab97;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
  }
  footer {
    margin-top: auto;
    padding: 20px 38px;
    font-size: 9px;
    color: #9da7a0;
    display: flex;
    gap: 14px;
  }
  footer > span:last-child {
    margin-left: auto;
  }
  .filters {
    display: flex;
    gap: 12px;
    padding: 18px 24px;
  }
  .filters select {
    width: 180px;
    font-size: 11px;
  }
  .search {
    flex-direction: row;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 400px;
  }
  .search span {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: #8d9990;
  }
  .search input {
    padding-left: 38px;
    font-size: 11px;
  }
  .pagination {
    padding: 17px 24px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: #929b96;
  }
  .pagination > div {
    display: flex;
    gap: 18px;
  }
  .form-panel {
    padding: 30px;
    max-width: 1000px;
  }
  .form-panel h2 {
    margin-bottom: 22px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
  }
  .span-2 {
    grid-column: span 2;
  }
  .form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .form-panel .notice {
    margin-top: 24px;
  }
  .line-labels,
  .line-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 135px 30px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .line-labels {
    font-size: 10px;
    color: var(--muted);
  }
  .remove-line {
    color: #b1847e;
    background: transparent;
    font-size: 20px;
  }
  .add-line {
    margin-bottom: 25px;
  }
  .invoice-preview-total {
    text-align: right;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
  }
  .invoice-preview-total strong {
    font-size: 24px;
    display: block;
    color: var(--green);
  }
  .invoice-preview-total small {
    font-size: 10px;
  }
  .invoice-paper {
    padding: 42px;
    max-width: 1000px;
  }
  .invoice-paper-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  .invoice-paper-top h2 {
    font-size: 24px;
    margin-top: 8px;
  }
  .invoice-paper-top > div:last-child {
    text-align: right;
    font-size: 12px;
  }
  .invoice-paper-top p {
    font-size: 11px;
    margin-top: 8px;
  }
  .billing-details {
    margin-bottom: 32px;
  }
  .billing-details h3 {
    font-size: 14px;
    margin-top: 8px;
  }
  .billing-details p {
    font-size: 12px;
  }
  .invoice-paper th,
  .invoice-paper td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .invoice-paper td:first-child {
    white-space: normal;
    min-width: 150px;
  }
  .totals {
    max-width: 290px;
    margin: 24px 0 24px auto;
  }
  .totals > div {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 12px;
    color: var(--muted);
  }
  .totals .grand-total {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 15px;
    color: var(--green);
    font-size: 17px;
  }
  .invoice-notes {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .invoice-notes p {
    font-size: 12px;
    margin-top: 8px;
  }
  .timeline-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    font-size: 12px;
  }
  .timeline-row p {
    flex-basis: 100%;
    font-size: 11px;
  }
  .integration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .integration {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .integration > span:first-child {
    font-size: 22px;
    color: #8ca794;
  }
  .integration strong {
    font-size: 11px;
    display: block;
  }
  .integration small {
    font-size: 9px;
    color: var(--muted);
    display: block;
  }
  .integration .status {
    margin-left: auto;
  }
  .guest main#main {
    max-width: none;
    padding: 0;
  }
  .auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
  }
  .auth-story {
    background: #1c4939;
    color: #fff;
    padding: 42px 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  .auth-story .brand {
    padding: 0;
  }
  .auth-story .brand-mark {
    background: #ffffff14;
  }
  .auth-story .eyebrow {
    color: #99b4a3;
  }
  .auth-story h1 {
    font-size: 56px;
    letter-spacing: -2px;
    margin: 18px 0;
    line-height: 1.1;
  }
  .auth-story p {
    color: #afc1b5;
    font-size: 14px;
  }
  .auth-story > small {
    font-size: 10px;
    color: #92ad9c;
  }
  .abstract {
    padding: 40px 0 30px;
  }
  .abstract-card {
    max-width: 360px;
    border: 1px solid #ffffff23;
    border-radius: 14px;
    background: #ffffff08;
    padding: 25px;
    transform: rotate(-3deg);
  }
  .abstract-card > span {
    font-size: 8px;
    color: #a6c3ae;
    letter-spacing: 1.5px;
  }
  .abstract-card > strong {
    display: block;
    font-size: 20px;
    font-weight: 400;
    margin: 8px 0;
  }
  .abstract-bars {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 15px;
  }
  .abstract-bars i {
    flex: 1;
    background: #96b99c66;
    height: 40%;
    border-radius: 4px 4px 0 0;
  }
  .abstract-bars i:nth-child(2) {
    height: 55%;
  }
  .abstract-bars i:nth-child(3) {
    height: 45%;
  }
  .abstract-bars i:nth-child(4) {
    height: 80%;
  }
  .abstract-bars i:nth-child(5) {
    height: 100%;
    background: #b9d6ae;
  }
  .auth-panel {
    display: grid;
    place-items: center;
    background: #fff;
    padding: 45px;
  }
  .auth-form {
    width: 100%;
    max-width: 360px;
  }
  .auth-form h2 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 12px 0 7px;
  }
  .auth-form > p {
    font-size: 12px;
    margin-bottom: 30px;
  }
  .auth-form label {
    margin-bottom: 20px;
  }
  .auth-form .button {
    margin-top: 8px;
  }
  .auth-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #7c8c81;
    margin-top: 20px;
  }
  .invite-note {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 25px;
    font-size: 11px;
    color: #617767;
  }
  .invite-note span {
    font-size: 10px;
    color: #a0aaa3;
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    main#main {
      padding: 45px 55px;
    }
    .topbar {
      padding: 0 55px;
    }
    .stat-card {
      padding: 26px;
    }
  }
  @media (max-width: 1200px) {
    .sidebar {
      width: 210px;
      padding: 25px 14px;
    }
    .main-shell {
      margin-left: 210px;
    }
    main#main {
      padding: 28px 24px;
    }
    .topbar {
      padding: 0 24px;
    }
    .stats-grid {
      gap: 11px;
    }
    .stat-card {
      padding: 18px 14px;
    }
    .stat-card > strong {
      font-size: 25px;
    }
    .summary-strip > div {
      padding: 0 10px;
    }
    .summary-icon {
      display: none;
    }
    th,
    td {
      padding-left: 18px;
      padding-right: 18px;
    }
    .integration-grid {
      grid-template-columns: 1fr;
    }
    .integration {
      margin-bottom: 0;
    }
    .integration-grid {
      margin-bottom: 24px;
    }
    .auth-story {
      padding: 35px;
    }
    .auth-story h1 {
      font-size: 47px;
    }
  }
  @media (max-width: 950px) {
    .stats-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bottom-grid {
      grid-template-columns: 1fr;
    }
    .summary-strip {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .summary-strip > div:nth-child(2) {
      border: 0;
    }
    .page-heading h1 {
      font-size: 26px;
    }
    .page-heading {
      align-items: flex-start;
    }
    .top-actions {
      gap: 8px;
    }
    .breadcrumbs {
      font-size: 10px;
    }
    .private-badge {
      display: none;
    }
    .auth-story {
      padding: 30px;
    }
    .auth-story h1 {
      font-size: 40px;
    }
    .auth-panel {
      padding: 28px;
    }
  }
  @media (max-width: 700px) {
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.2s;
      width: 238px;
      box-shadow: 12px 0 40px #0001;
    }
    .menu-open .sidebar {
      transform: translateX(0);
    }
    .main-shell {
      margin-left: 0;
    }
    .topbar {
      height: 62px;
      padding: 0 20px;
      gap: 12px;
    }
    .menu-button {
      display: block;
      background: transparent;
      color: var(--green);
      font-size: 18px;
      padding: 5px;
    }
    .breadcrumbs {
      margin-right: auto;
    }
    .menu-open .menu-button {
      position: fixed;
      left: 246px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 5px;
      z-index: 20;
    }
    main#main {
      padding: 25px 18px;
    }
    .page-heading {
      flex-direction: column;
      gap: 20px;
      margin-bottom: 26px;
    }
    .page-heading h1 {
      font-size: 26px;
    }
    .page-heading .eyebrow {
      font-size: 8px;
    }
    .stats-grid {
      gap: 10px;
    }
    .stat-label {
      font-size: 10px;
    }
    .stat-card > strong {
      font-size: 26px;
      margin: 12px 0;
    }
    .stat-caption {
      font-size: 8px;
    }
    .stat-card strong small {
      font-size: 9px;
    }
    .stat-card {
      padding: 16px 14px;
    }
    .summary-strip {
      padding: 16px 8px;
    }
    .summary-strip > div > span:last-child {
      font-size: 9px;
    }
    .panel-heading {
      padding: 18px;
      align-items: flex-start;
    }
    .panel-heading .text-link {
      font-size: 10px;
      white-space: nowrap;
    }
    .panel-heading p {
      max-width: 230px;
    }
    .panel-heading h2 {
      font-size: 13px;
    }
    .bottom-grid {
      gap: 18px;
    }
    .empty {
      padding: 35px 18px;
    }
    .filters {
      padding: 16px;
      flex-wrap: wrap;
      gap: 8px;
    }
    .filters .search {
      flex-basis: 100%;
      max-width: none;
    }
    .filters select {
      flex: 1;
    }
    .form-panel {
      padding: 22px 18px;
    }
    .form-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .span-2 {
      grid-column: span 1;
    }
    .line-labels,
    .line-item {
      grid-template-columns: minmax(0, 1fr) 62px 82px 22px;
      gap: 5px;
    }
    .line-item input {
      padding: 9px 6px;
      font-size: 11px;
    }
    .line-labels {
      font-size: 9px;
    }
    .form-footer {
      flex-wrap: wrap;
    }
    .invoice-paper {
      padding: 24px 18px;
    }
    .invoice-paper-top {
      gap: 20px;
    }
    .invoice-paper-top h2 {
      font-size: 20px;
    }
    .invoice-paper-top > div:last-child {
      font-size: 10px;
    }
    .invoice-paper th,
    .invoice-paper td {
      font-size: 10px;
    }
    .invoice-paper-top p {
      font-size: 9px;
    }
    .button-group {
      gap: 8px;
    }
    .button-group .button {
      font-size: 11px;
      padding: 9px 12px;
    }
    footer {
      padding: 15px 18px;
      flex-wrap: wrap;
      font-size: 8px;
    }
    footer > span:last-child {
      margin-left: 0;
      flex-basis: 100%;
    }
    .auth-shell {
      grid-template-columns: 1fr;
    }
    .auth-story {
      padding: 24px;
      min-height: auto;
    }
    .auth-story > div:not(.brand),
    .auth-story > small {
      display: none;
    }
    .auth-panel {
      padding: 42px 25px;
      align-items: start;
    }
    .auth-form {
      max-width: 400px;
    }
    .auth-form h2 {
      font-size: 28px;
    }
    .auth-shell {
      display: block;
    }
    .auth-story .brand {
      font-size: 23px;
    }
    .guest {
      background: white;
    }
    .integration strong {
      font-size: 12px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
  @media print {
    .sidebar,
    .topbar,
    footer,
    .page-heading,
    .button-group,
    .toast {
      display: none !important;
    }
    .main-shell {
      margin: 0;
    }
    .invoice-paper {
      border: 0;
    }
    .portal {
      background: white;
    }
  }
}
@layer components {
  .table-wrap {
    position: relative;
  }
  th {
    position: relative;
  }
}
