:root {
  --fps-ink: #15323a;
  --fps-muted: #688389;
  --fps-bg: #f3f7f6;
  --fps-surface: #ffffff;
  --fps-border: #d8e6e3;
  --fps-primary: #087f79;
  --fps-primary-dark: #056b66;
  --fps-brand: #87531f;
  --fps-danger: #a43740;
  --fps-warning: #9a611f;
  --fps-success: #13684f;
  --fps-radius: 14px;
  --fps-shadow: 0 10px 28px rgba(21, 65, 65, .06);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  color: var(--fps-ink);
  background: var(--fps-bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
main, section, article, aside, form { min-width: 0; }

button, input, select, textarea, a {
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font: inherit;
}

button, [type="submit"], [role="button"] {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid rgba(8, 127, 121, .28);
  outline-offset: 2px;
}

/* A wide transparent company mark; no white frame. */
.logo {
  width: 132px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  flex: 0 0 auto;
}

.logo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Preserve the official brown/white logo colors on dark surfaces. */
.sidebar .logo img,
.brand-panel .logo img {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .16));
}

.logo-fallback, .brand-mark {
  border-radius: 10px;
}

.panel, .card, .record-card, details {
  box-shadow: var(--fps-shadow);
}

.notice, .message, [role="alert"], [role="status"] {
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap, .table-scroll, .preview-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .shell {
    width: 100% !important;
    max-width: none !important;
  }

  header {
    max-width: 100%;
  }

  .logo {
    width: 110px !important;
    height: 42px !important;
  }
}

@media (max-width: 680px) {
  .shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  header {
    gap: 12px !important;
  }

  h1 {
    font-size: clamp(30px, 10vw, 40px) !important;
    overflow-wrap: anywhere;
  }

  .logo {
    width: 92px !important;
    height: 38px !important;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  button, .button, .link-button, .primary-button {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .logo {
    width: 82px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body { background: #fff !important; }
  .sidebar, .menu-toggle, .header-actions, nav { display: none !important; }
  .panel, .card, .record-card { box-shadow: none !important; }
}

.session-warning {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 35, 40, .64);
  backdrop-filter: blur(4px);
}

.session-warning[hidden] { display: none !important; }

.session-warning__dialog {
  width: min(420px, 100%);
  box-sizing: border-box;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 35, 39, .28);
  color: #17313a;
}

.session-warning__dialog h2 { margin: 5px 0 10px; }
.session-warning__dialog p { line-height: 1.55; }
.session-warning__eyebrow {
  margin: 0;
  color: #087f79;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

.session-warning__dialog button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #087f79;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
