:root {
  color-scheme: light;
  --nav: #20294D;
  --primary: #35446D;
  --primary-dark: #263657;
  --mint: #EEF1F6;
  --teal: #35446D;
  --ink: #171C2D;
  --muted: #5E6677;
  --border: #DDE2EC;
  --paper: #fff;
  --canvas: #F6F7FA;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: var(--primary); }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.skip { position: absolute; left: 20px; top: -80px; background: white; padding: 10px; z-index: 2; }
.skip:focus { top: 10px; }
.topbar { min-height: 92px; padding: 22px clamp(24px, 6vw, 96px); background: var(--nav); color: #E1E5F0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-name { font-size: 25px; font-weight: 600; letter-spacing: -.8px; white-space: nowrap; }
.brand-name > span { font-weight: 500; }
.account { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; min-width: 0; }
.account-name { font-size: 14px; overflow-wrap: anywhere; }
.account form { margin: 0; }
.language { display: flex; gap: 8px; margin: 0 0 0 auto; flex-wrap: wrap; }
.language button { min-height: 44px; }
.language [aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
main { max-width: 1180px; margin: auto; padding: 64px 32px 88px; min-height: calc(100vh - 170px); }
.eyebrow { color: var(--teal); font-size: 11px; letter-spacing: 2px; font-weight: 600; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.18; letter-spacing: -1.4px; margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 12px; }
p { color: var(--muted); }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.intro > div > p:last-child { font-size: 17px; margin: 0; }
.app-count { flex-shrink: 0; color: var(--muted); font-size: 13px; padding-bottom: 3px; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 9px; box-shadow: none; padding: 32px; }
.login { max-width: 550px; margin: 12px auto 0; padding: 48px; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--primary); }
.login h1 { margin-bottom: 20px; }
.login-description { font-size: 18px; margin: 0 0 36px; }
.login form { margin: 0; }
.login button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.login .help { padding-top: 24px; margin: 28px 0 0; border-top: 1px solid var(--border); font-size: 13px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18em), 1fr)); gap: 24px; }
.app-card { min-height: 246px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.app-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--mint); color: var(--primary); font-size: 24px; font-weight: 600; }
.app-icon svg { width: 32px; height: 32px; }
.app-payroll .app-icon { background: var(--mint); color: var(--teal); }
.tile-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: var(--muted); transition: background .16s, color .16s; }
.app-card h2 { margin-bottom: 10px; }
.app-card p { margin: 0; font-size: 15px; line-height: 1.65; }
.app-card:hover { border-color: #79a990; box-shadow: 0 8px 24px rgb(19 44 50 / 7%); transform: translateY(-3px); }
.app-card:hover .tile-arrow, .app-card:focus-visible .tile-arrow { color: var(--primary); background: var(--mint); }
button { font: inherit; font-weight: 600; border: 0; border-radius: 6px; min-height: 44px; padding: 12px 20px; background: var(--primary); color: white; cursor: pointer; }
button:hover { background: var(--primary-dark); }
.quiet { background: transparent; color: #E1E5F0; border: 1px solid #4f696b; border-radius: 6px; font-size: 14px; padding: 8px 14px; }
.quiet:hover { background: #303C60; color: #fff; }
.topbar a:focus-visible, .topbar button:focus-visible { outline-color: #DDE5F7; }
::selection { background: #E0E7F5; color: var(--ink); }
.help { font-size: 14px; margin-top: 24px; }
.apps-help { margin-top: 30px; }
.empty { max-width: 720px; }
.empty h1 { font-size: 30px; }
.empty p:last-child { margin-bottom: 0; }
.open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
footer { max-width: 1180px; margin: auto; padding: 24px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  main { padding: 36px 20px 60px; }
  .topbar { padding: 18px 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 23px; }
  .panel { padding: 26px; }
  .login { margin-top: 8px; padding: 34px 26px; }
  .account { gap: 12px; }
  .intro { margin-bottom: 28px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .apps { grid-template-columns: 1fr; gap: 18px; }
  .app-card { min-height: 0; padding: 20px; }
  .card-top { margin-bottom: 16px; }
  .app-icon { width: 44px; height: 44px; }
  footer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .app-card, .tile-arrow { transition: none; } .app-card:hover { transform: none; } }

/* Official Nassau N-monogram: preserve full aspect ratio and transparent edges. */
.brand-mark { object-fit: contain; background: #20294D; border-radius: 7px; padding: 6px; }

/* Reflow at large text sizes; focus targets remain inside the viewport. */
h1, h2, .app-card p { overflow-wrap: anywhere; }
main:focus { outline: none; } /* Programmatic skip target; interactive controls retain visible focus. */
@media (forced-colors: active) {
  .panel, .quiet { border-color: CanvasText; }
  a:focus-visible, button:focus-visible { outline-color: Highlight; }
  .language [aria-pressed="true"] { border-width: 2px; }
}
