:root {
  color-scheme: light;
  color: #271e29;
  background: #f7f4f2;
  --navy: #563451;
  --plum: #563451;
  --blue: #563451;
  --line: #e5dcd9;
  --muted: #6e616b;
  --white: #fffdfb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
.top {
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.top-actions, .actions, .fields { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: clamp(166px, 23vw, 235px); height: auto; }
#internet {
  border: 1px solid #dbe1f1;
  background: #eef2fb;
  color: #354973;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 650;
}
.help-link { font-weight: 650; text-decoration: none; padding: 7px 4px; }
.help-link:hover { text-decoration: underline; color: var(--plum); }
button.help-link { border: 0; background: transparent; color: var(--blue); }
#logout { white-space: nowrap; }
#layout { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); }
nav { width: 220px; padding: 22px 14px; background: #eeeef7; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
nav:empty { display: none; }
nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #3d435d; }
nav a:hover { background: #e3e6f4; }
nav a[aria-current] { background: #dee4f5; color: #263b70; font-weight: 700; }
main { width: 100%; max-width: 1450px; margin: 0 auto; padding: clamp(18px, 4vw, 48px); }
nav:empty + main { grid-column: 1 / -1; }
h1 { margin: 0; }
h2 { margin: 0 0 14px; }
p { margin: 8px 0; }
.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.muted, small { color: var(--muted); }
.panel, .hero { background: var(--white); border: 1px solid var(--line); border-radius: 15px; margin: 15px 0; }
.panel { padding: clamp(14px, 3vw, 24px); }
.hero {
  max-width: 1050px;
  margin: clamp(24px, 8vh, 92px) auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  box-shadow: 0 18px 55px #25244b0c;
}
.hero-intro { padding: clamp(24px, 5vw, 64px); align-self: center; }
.hero h1 { font: 400 clamp(2.4rem,5vw,4.1rem)/1.06 Georgia,"Times New Roman",serif; letter-spacing: -.048em; }
.hero h1 span { color: var(--plum); }
.hero h1 [data-homepage="heading"] { color: inherit; }
.hero-copy { color: var(--muted); margin: 17px 0 26px; max-width: 35ch; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 365px; }
.home-card {
  color: var(--navy);
  background: var(--white);
  border: 1px solid #b9c2dc;
  border-radius: 9px;
  padding: 13px 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.home-card:hover { background: #eef1fb; }
.home-card-primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.home-card-primary:hover { background: var(--blue); }
.first-setup { margin-bottom: 0; }
.hero-features {
  display: grid;
  align-content: center;
  padding: clamp(21px, 4vw, 50px);
  border-left: 1px solid var(--line);
  background: linear-gradient(155deg, #f2edf7, #edf2fc 95%);
}
.hero-features > div { padding: 16px 0; }
.hero-features > div + div { border-top: 1px solid #d6d9e8; }
.hero-features h2 { color: var(--navy); margin: 0; }
.hero-features p { color: var(--muted); margin: 5px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 14px; }
.tiles .panel { margin: 0; }
.metric { font-weight: 750; font-size: var(--type-heading); font-variant-numeric: tabular-nums; }
.table { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { white-space: nowrap; color: var(--muted); background: #f3f4fb; }
td { overflow-wrap: anywhere; }
button, .button, input, select { font: inherit; font-size: var(--type-body); border: 1px solid #b9bfd6; color: inherit; background: var(--white); border-radius: 8px; padding: 8px 12px; }
button, .button { cursor: pointer; text-decoration: none; display: inline-block; font-weight: 650; }
button:hover, .button:hover { background: #edf0fb; }
button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.primary:hover { background: var(--blue); }
.danger, .error { color: #92374d; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
label input, label select { width: 100%; min-width: 0; }
.fields > label { flex: 1 1 160px; }
.entry-line { border: 0; border-top: 1px solid var(--line); padding: 10px 0; margin: 0; }
.entry-line legend { font-weight: 650; }
dialog { color: inherit; border: 1px solid var(--line); border-radius: 14px; max-width: min(94vw, 690px); width: 100%; max-height: 86vh; padding: 22px; }
dialog::backdrop { background: #27213880; }
.notice { color: var(--blue); font-weight: 650; }
.auth { max-width: 560px; margin: 30px auto; }
.company-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }
.company-bar label { min-width: min(100%, 180px); }
.company-bar label:first-child { min-width: min(100%, 260px); }
.bank-actions { margin-top: 12px; }
.bank-ledger { width: min(350px, 55vw); min-width: 175px; }
.support-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 20px; padding: 8px 16px; background: #262b47; color: #f0eefb; font-size: var(--type-small); }
.support-footer a { color: #e8d9f2; white-space: nowrap; }
:focus-visible { outline: 3px solid #775094; outline-offset: 2px; }
.support-footer a:focus-visible { outline-color: #e8d9f2; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  #layout { display: block; }
  nav { width: auto; padding: 8px 12px; flex-direction: row; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  nav a { white-space: nowrap; }
  main { padding: 18px 12px; }
  .hero { margin: 20px auto; grid-template-columns: 1fr; }
  .hero-features { border-left: 0; border-top: 1px solid var(--line); }
  td, th { padding: 8px; }
}
@media (max-width: 470px) {
  .top { flex-wrap: wrap; padding: 2px 12px 8px; gap: 2px 12px; }
  .top-actions { gap: 8px; }
  .support-footer { justify-content: flex-start; }
}
textarea { font: inherit; font-size: var(--type-body); color: inherit; border: 1px solid #b9bfd6; border-radius: 8px; padding: 8px 12px; width: 100%; resize: vertical; }
.captcha-box, .entity-access { min-width: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 9px; }
.captcha-box .actions { justify-content: space-between; margin-bottom: 9px; }
.captcha-box legend, .entity-access legend { font-weight: 650; }
.entity-access label { display: flex; align-items: center; padding: 5px 0; }
.entity-access input { width: auto; }
body > main { flex: 1; }
