:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203248;
  background: #e5edf3;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #20334d;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.muted,
small {
  color: #50657a;
}
.muted {
  font-size: 13px;
  margin-top: 4px;
}
.window,
.login {
  background:
    linear-gradient(#e5edf340, #e5edf340),
    url("/ice-lake-glass.jpg") center/cover fixed;
  min-height: 100dvh;
}
.window {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  background: #fafdffad;
  backdrop-filter: blur(24px);
  border-right: 1px solid #fff9;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 43px;
  border-radius: 12px;
  background: #20334d;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  padding: 0 10px 10px;
  display: block;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 13px;
}
nav button[aria-current="page"] {
  background: #20334d;
  color: #fff;
  box-shadow: 0 4px 10px #20334d20;
}
.profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile small {
  display: block;
}
.profile strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dde7ef;
  flex-shrink: 0;
}
.workspace {
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafdffad;
  backdrop-filter: blur(24px);
  padding: 19px 26px;
  border-bottom: 1px solid #fff9;
}
.badge {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #c8d9e5;
  border-radius: 8px;
  background: #edf3f7;
}
main {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c8d9e5;
  border-radius: 10px;
  padding: 9px 13px;
  min-height: 38px;
  background: #fafdff;
  font-size: 13px;
  text-decoration: none;
}
.button.primary {
  background: #20334d;
  color: #fff;
  border-color: #20334d;
}
.button:hover {
  box-shadow: 0 3px 9px #20334d20;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-tile,
.panel {
  background: linear-gradient(135deg, #fafdffcf, #fafdff80);
  border: 1px solid #ffffffd9;
  border-radius: 20px;
  box-shadow:
    inset 1px 1px 0 #ffffffb8,
    0 8px 22px #29455d26;
  backdrop-filter: blur(18px);
}
.app-tile {
  padding: 22px;
  min-height: 205px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.app-tile:not(.pending):hover {
  background: #fafdffe6;
  border-color: #9bb0c2;
}
.app-tile strong {
  font-size: 15px;
  font-weight: 650;
}
.app-tile small {
  margin-top: 4px;
  font-size: 12px;
}
.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #e0eaf2;
  border: 1px solid #fff;
  margin-bottom: 18px;
  color: #fff;
  box-shadow: 0 5px 12px #20334d12;
}
.app-icon-commerce { background: #138bed; }
.app-icon-reconciliation { background: #8664df; }
.app-icon-bankflow { background: #0aa879; }
.app-icon-vendors { background: #ed9825; }
.app-icon-crm { background: transparent; border: 0; box-shadow: none; }
.app-icon-crm img { width: 58px; height: 58px; max-width: none; margin: 0; border-radius: 15px; filter: none; }
.open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
}
.pending {
  opacity: 0.78;
}
.panel {
  padding: 22px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 17px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #c8d9e5;
  background: #fafdff;
  border-radius: 10px;
  color: #203248;
}
input:disabled {
  background: #e7eef3;
}
input[type="checkbox"] {
  accent-color: #20334d;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.section-title {
  margin-top: 25px;
}
.permissions {
  margin-top: 8px;
  margin-bottom: 14px;
}
.permission-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #c8d9e5;
}
.permission-row strong {
  font-weight: 600;
}
.checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.checks label,
.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.staff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #d2dfe8;
  flex-wrap: wrap;
}
.staff-row:last-child {
  border: 0;
}
.staff-info {
  flex: 1;
  min-width: 150px;
}
.staff-info small {
  display: block;
}
.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.error {
  background: #fff0ee;
  color: #97352f;
  border: 1px solid #e5bab6;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 13px;
}
.notice {
  color: #1c6650;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 45px 15px;
}
.empty > svg {
  margin-bottom: 15px;
}
.local-label {
  font-size: 12px;
  color: #50657a;
  margin-top: 12px;
}
.login {
  display: grid;
  place-items: center;
  padding: 30px 16px;
}
.login .panel {
  width: 100%;
  max-width: 410px;
  padding: 30px;
}
.login .brand {
  justify-content: center;
  margin-bottom: 30px;
}
.login h1 {
  text-align: center;
  font-size: 21px;
}
.login .muted,
.login .local-label {
  text-align: center;
}
.login form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 26px;
}
.login .button {
  width: 100%;
  margin-top: 8px;
}
.loading {
  padding: 40px;
}
.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid #d2dfe8;
}
.activity-row p {
  font-size: 13px;
}
.activity-row strong {
  font-weight: 600;
}
.activity-row small {
  font-size: 12px;
}
@media (max-width: 950px) {
  .window {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .brand {
    font-size: 21px;
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .row-actions {
    width: 100%;
  }
}
@media (max-width: 650px) {
  .window {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    gap: 16px;
  }
  .sidebar > .profile,
  .sidebar > .button {
    align-self: flex-start;
  }
  .sidebar .profile {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-label {
    display: none;
  }
  main {
    padding: 18px 14px;
  }
  header {
    padding: 17px 16px;
  }
  .app-grid {
    gap: 11px;
  }
  .app-tile {
    padding: 16px;
    min-height: 195px;
  }
  .app-tile strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .panel {
    padding: 17px;
  }
  .button {
    min-height: 44px;
  }
  input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .checks {
    gap: 10px;
  }
  .checks label {
    min-height: 36px;
  }
  .login .panel {
    padding: 25px;
  }
  .activity-row {
    gap: 4px;
  }
  .brand {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 650px) {
  .window {
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    flex: 1;
  }
  .sidebar nav {
    order: 3;
    width: 100%;
  }
  .sidebar > .button {
    align-self: center;
  }
  .app-grid:has(> .app-tile:only-child) {
    grid-template-columns: 1fr;
  }
  .app-grid > .app-tile:only-child {
    min-height: 175px;
  }
}
