:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #dce5ef;
  color: #203248;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.welcome-live {
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  padding: calc(30px + env(safe-area-inset-top)) 24px
    calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #dce5ef;
}
.welcome-brand-live {
  text-align: center;
}
.welcome-brand-live > img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.welcome-brand-live h1 {
  font-size: 24.1px;
  font-weight: 650;
  margin: 10px 0 6px;
  line-height: 1.2;
}
.welcome-brand-live p {
  font-size: 12px;
  line-height: 1.55;
  color: #718193;
}
.welcome-app-list {
  display: grid;
  gap: 10px;
}
.welcome-app-list > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid white;
  background: #ffffff66;
  border-radius: 20px;
  animation: ws-enter 0.35s ease-out;
}
.welcome-app-list img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.welcome-app-list h2 {
  font-size: 16px;
  font-weight: 650;
}
.welcome-app-list p {
  font-size: 12px;
  color: #718193;
  margin-top: 3px;
}
.welcome-live footer {
  margin-top: auto;
  text-align: center;
}
.welcome-live footer p {
  font-size: 12px;
  color: #718193;
  margin-bottom: 12px;
}
.welcome-live footer button {
  width: 100%;
  height: 54px;
  background: #20334d;
  border: 0;
  color: white;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.login {
  background: #dce5ef;
  min-height: 100dvh;
  padding: 24px 20px;
  display: grid;
  place-items: center;
}
.login .panel {
  width: 100%;
  max-width: 410px;
  padding: 28px 24px;
  background: #ffffff9e;
  border: 1px solid white;
  border-radius: 28px;
  box-shadow: 0 18px 46px #27375b1a;
}
.login h1 {
  font-size: 25px;
  font-weight: 650;
  text-align: center;
}
.login > .panel > .muted {
  text-align: center;
  font-size: 12px;
  margin-top: 6px;
}
.login form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.login input {
  height: 50px;
  border: 1px solid #d8e1ed;
  border-radius: 14px;
  padding: 13px 16px;
  background: #ffffff66;
  font-size: 16px;
  width: 100%;
}
.login .button {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: #20334d;
  color: white;
  font-size: 16px;
  font-weight: 650;
}
.login .local-label {
  display: none;
}
.mfa-enrollment {
  min-width: 0;
}
.mfa-enrollment code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  padding: 12px;
  border: 1px solid #c8d9e5;
  border-radius: 12px;
}
.mfa-enrollment p {
  font-size: 12px;
  margin: 10px 0;
}
.mfa-enrollment h2 {
  font-size: 20px;
}
.master-workspace {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #dce5ef;
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding-top: env(safe-area-inset-top);
}
.ws-header {
  margin: 10px 12px 0;
  padding: 0 14px;
  height: 64px;
  flex-shrink: 0;
  gap: 8px;
  border: 1px solid white;
  border-radius: 22px;
  background: #ffffff70;
  box-shadow: 0 8px 24px #20334d08;
  display: flex;
  align-items: center;
}
.ws-header h1 {
  font-size: 25px;
  font-weight: 650;
  flex: 1;
  line-height: 1.12;
}
.ws-header > button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  border-radius: 12px;
  background: #ffffff70;
  min-height: 40px;
  padding: 8px;
  gap: 5px;
}
.ws-header .ws-date {
  font-size: 11px;
  max-width: 105px;
}
.ws-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.ws-content > * {
  flex-shrink: 0;
  min-width: 0;
}
.ws-card,
.ws-brand {
  padding: 16px;
  border: 1px solid white;
  border-radius: 22px;
  background: #ffffff70;
  box-shadow: 0 8px 24px #20334d08;
}
.ws-card h2 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 12px;
}
.ws-card p {
  font-size: 13px;
  color: #718193;
  line-height: 1.5;
}
.ws-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.ws-brand strong {
  font-size: 18px;
  font-weight: 650;
}
.ws-brand p {
  font-size: 12px;
  color: #718193;
  margin-top: 4px;
}
.ws-apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ws-apps img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.ws-apps a {
  min-width: 0;
  max-width: 100px;
}
.ws-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom));
  border: 1px solid white;
  border-radius: 22px;
  background: #ffffff70;
  flex-shrink: 0;
}
.ws-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-height: 58px;
  padding: 6px 2px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-size: 11px;
  color: #607286;
}
.ws-tabs button[aria-current="page"] {
  background: #20334d;
  color: white;
}
.ws-shade {
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 0;
  background: #20334d33;
  backdrop-filter: blur(3px);
}
.ws-drawer {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, 88%);
  overflow: auto;
  padding: 22px 16px;
  background: #e7eef6f7;
  border: 1px solid white;
  border-radius: 0 28px 28px 0;
}
.ws-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ws-drawer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.ws-drawer-brand strong {
  flex: 1;
  font-size: 20px;
}
.ws-drawer button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid white;
  border-radius: 16px;
  background: #ffffff70;
  text-align: left;
  min-height: 44px;
}
.ws-drawer button[aria-current="page"] {
  background: #20334d;
  color: white;
}
.ws-drawer-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #c8d9e5;
}
.ws-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #c8d9e566;
  font-size: 14px;
}
.ws-row > span:last-child {
  text-align: right;
  font-size: 12px;
  color: #718193;
  overflow-wrap: anywhere;
}
.ws-row:last-child {
  border: 0;
}
.ws-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ws-two > a,
.ws-two > button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.ws-card button,
.ws-card a:not(.ws-app-row),
.ws-date-pop button {
  padding: 11px 12px;
  border: 1px solid white;
  border-radius: 12px;
  background: #ffffff85;
  color: #203248;
  min-height: 44px;
  font: inherit;
}
.ws-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  margin: 12px 0;
}
.ws-card input,
.ws-card textarea,
.ws-date-pop input {
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid #c8d9e5;
  border-radius: 12px;
  background: #ffffff85;
  font: inherit;
}
.ws-card .ws-check {
  display: flex;
  align-items: center;
}
.ws-check input {
  width: 20px;
}
.ws-card details {
  padding: 12px 0;
  border-bottom: 1px solid #c8d9e566;
}
.ws-card summary {
  cursor: pointer;
}
.ws-app-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}
.ws-app-row img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.ws-app-row span {
  flex: 1;
}
.ws-notification {
  padding: 14px 0;
  border-bottom: 1px solid #c8d9e566;
}
.ws-notification small {
  display: block;
  margin: 8px 0;
}
.ws-message {
  font-size: 13px;
}
.ws-date-pop {
  position: absolute;
  top: 82px;
  right: 12px;
  z-index: 10;
  background: #f8faff;
  border: 1px solid white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 70px #24365624;
  max-width: calc(100% - 24px);
}
.ws-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.ws-presets button[aria-pressed="true"] {
  background: #e8effc;
  color: #296cff;
}
.master-workspace button,
.master-workspace a {
  transition:
    transform 0.16s,
    background 0.16s;
}
.master-workspace button:active,
.ws-apps a:active {
  transform: scale(0.985);
}
@keyframes ws-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 768px) {
  .ws-content {
    padding: 20px;
    gap: 16px;
  }
  .ws-apps {
    max-width: 650px;
    gap: 24px;
  }
  .ws-card {
    padding: 24px;
  }
  .ws-header {
    margin: 16px 20px 0;
  }
  .ws-tabs {
    max-width: 650px;
    width: calc(100% - 40px);
    align-self: center;
  }
  .welcome-live {
    padding-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-app-list > div {
    animation: none;
  }
  .master-workspace * {
    transition: none !important;
  }
}

.ws-header .shared-date-picker {
  width: 96px;
  flex: none;
}
.ws-header .shared-date-picker::part(trigger) {
  min-height: 40px;
  padding: 8px;
  gap: 5px;
  border-radius: 12px;
}
.ws-header .shared-date-picker::part(dates) {
  display: none;
}
.ws-header .shared-date-picker::part(period) {
  font-size: 11px;
  max-width: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-header h1 {
  min-width: 0;
  margin: 0;
}

.profile-photo{width:72px;height:72px;object-fit:cover;border-radius:50%;border:2px solid white}.profile-extras{margin-bottom:16px}.ws-card select,.activity-filters select{min-width:0;max-width:100%;min-height:44px;border:1px solid #c8d9e5;border-radius:12px;background:#ffffff85;padding:8px;font:inherit}.activity-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.activity-filters label{display:grid;gap:6px;min-width:0;flex:1 1 120px}.activity-filters input{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #c8d9e5;border-radius:12px}.ws-content>.activity-filters{flex-shrink:0}
: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;
  }
}
