/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --spacing: 0.25rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-danger: var(--theme-danger);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline-block {
    display: inline-block;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .items-center {
    align-items: center;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .text-center {
    text-align: center;
  }
  .text-danger {
    color: var(--color-danger);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
}
:root, [data-theme="light"] {
  color-scheme: light;
  --theme-brand: #149898;
  --theme-brand-hover: #0e7474;
  --theme-brand-blue: #0f5c93;
  --theme-on-brand: #ffffff;
  --theme-ink: #242c36;
  --theme-muted: #5a6570;
  --theme-subtle: #7a8692;
  --theme-canvas: #f3f6f7;
  --theme-surface: #ffffff;
  --theme-input: #ffffff;
  --theme-line: #e6ebee;
  --theme-line-strong: #c5cdd3;
  --theme-danger: #b42318;
  --theme-danger-soft: #fef3f2;
  --theme-warning-soft: #fff7ed;
  --theme-rag-green: #1f7a3a;
  --theme-rag-amber: #8a6200;
  --theme-rag-amber-fill: #c79100;
  --theme-emergency: #1d4ed8;
  --theme-emergency-soft: #dbeafe;
  --theme-session-outstanding: #fff8d6;
  --theme-session-not-possible: #ffe4c8;
  --theme-session-completed: #e4f7e8;
  --theme-session-cancelled: #eef1f3;
  --theme-overlay: rgb(36 44 54 / 0.06);
  --theme-radius-sm: 0.375rem;
  --theme-radius-md: 0.5rem;
  --theme-radius-lg: 0.75rem;
  --theme-radius-xl: 1rem;
  --theme-radius-card: 1rem;
}
[data-theme="dark"] {
  color-scheme: dark;
  --theme-brand: #2bb3bc;
  --theme-brand-hover: #1a9aa3;
  --theme-brand-blue: #5b9fd4;
  --theme-on-brand: #082628;
  --theme-ink: #f3f6f7;
  --theme-muted: #b7c0c7;
  --theme-subtle: #8b969f;
  --theme-canvas: #1a2128;
  --theme-surface: #242c36;
  --theme-input: #1a2128;
  --theme-line: #3a4550;
  --theme-line-strong: #5a6570;
  --theme-danger: #f97066;
  --theme-danger-soft: #3b1513;
  --theme-warning-soft: #3b2a14;
  --theme-rag-green: #4ade80;
  --theme-rag-amber: #fbbf24;
  --theme-rag-amber-fill: #f59e0b;
  --theme-emergency: #60a5fa;
  --theme-emergency-soft: #1e3a5f;
  --theme-session-outstanding: #3d3518;
  --theme-session-not-possible: #3d2a16;
  --theme-session-completed: #1c3d24;
  --theme-session-cancelled: #2a3038;
  --theme-overlay: rgb(0 0 0 / 0.35);
}
@layer components {
  .fm-page {
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--theme-canvas);
    color: var(--theme-ink);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }
  .fm-native-shell, .fm-native-shell .fm-page {
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
  }
  html:has(body.fm-native-shell), html:has(.fm-shell), body.fm-native-shell, body:has(.fm-shell) {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.fm-native-shell #app {
    height: 100%;
    max-height: 100%;
  }
  body.fm-page.fm-native-shell, body.fm-page:has(.fm-shell) {
    min-height: 0;
  }
  .fm-page-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 6rem;
  }
  .fm-shell {
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    background-color: var(--theme-canvas);
    color: var(--theme-ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .fm-shell.is-native {
    position: fixed;
    top: var(--app-offset-top, 0px);
    left: 0;
    right: 0;
    height: var(--app-height, 100dvh);
    max-height: var(--app-height, 100dvh);
  }
  .fm-topbar {
    position: relative;
    flex-shrink: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--theme-surface);
    border-bottom: 1px solid var(--theme-line);
    color: var(--theme-ink);
  }
  .fm-topbar-web {
    grid-template-columns: 1fr auto;
  }
  .fm-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    justify-self: start;
  }
  .fm-topbar-brand {
    justify-self: center;
    text-decoration: none;
    color: inherit;
  }
  .fm-topbar-brand-inline {
    justify-self: start;
    margin-left: 0.35rem;
  }
  .fm-topbar-brand .fm-brand-compact {
    gap: 0.4rem;
  }
  .fm-topbar-brand .fm-brand-compact .fm-brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }
  .fm-topbar-brand .fm-brand-compact .fm-brand-name {
    font-size: 0.95rem;
  }
  .fm-topbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    justify-self: end;
    min-width: 0;
    overflow: visible;
  }
  .fm-topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 16rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-canvas);
    color: var(--theme-ink);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
  }
  .fm-topbar-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fm-topbar-chip:hover {
    border-color: var(--theme-brand);
  }
  .fm-topbar-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: var(--theme-ink);
  }
  .fm-topbar-profile-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
  }
  .fm-topbar-profile-name {
    font-size: var(--text-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fm-topbar-profile-role {
    font-size: var(--text-xs);
    color: var(--theme-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fm-topbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: var(--theme-radius-md);
    background: transparent;
    color: var(--theme-brand);
    cursor: pointer;
  }
  .fm-topbar-icon-btn:disabled {
    opacity: 0.4;
    cursor: default;
  }
  .fm-topbar > .fm-topbar-icon-btn:last-child {
    justify-self: end;
  }
  .fm-shell-body {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }
  .fm-shell-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .fm-shell.is-native .fm-shell-content {
    scroll-padding-bottom: 1rem;
  }
  .fm-user-strip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--theme-radius-xl);
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 8%, var(--theme-surface));
    }
    border: 1px solid var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      border: 1px solid color-mix(in srgb, var(--theme-brand) 14%, var(--theme-line));
    }
  }
  .fm-user-strip-sidebar {
    margin: 0.75rem;
  }
  .fm-user-strip-avatar {
    color: var(--theme-brand);
    flex-shrink: 0;
  }
  .fm-user-strip-welcome {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-brand-hover);
  }
  .fm-user-strip-practice {
    margin-top: 0.15rem;
    font-size: var(--text-sm);
    color: var(--theme-ink);
  }
  .fm-user-strip-role {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: 600;
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 16%, transparent);
    }
    color: var(--theme-brand-hover);
  }
  .fm-menu-heading {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--theme-brand-hover);
  }
  .fm-menu-search {
    margin-bottom: 0.75rem;
  }
  .fm-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;
  }
  .fm-main {
    max-width: 32rem;
    margin-inline: auto;
    padding: 1rem 1rem 5rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }
  @media (min-width: 768px) {
    .fm-shell.is-browser .fm-main {
      max-width: 56rem;
    }
  }
  @media (max-width: 767px) {
    .fm-shell.is-browser .fm-topbar-chip span {
      display: none;
    }
    .fm-shell.is-browser .fm-topbar-chip {
      max-width: none;
      padding: 0.35rem;
      gap: 0;
    }
    .fm-shell.is-browser .fm-topbar-profile-text {
      display: none;
    }
    .fm-shell.is-browser .fm-topbar-end {
      gap: 0.35rem;
    }
    .fm-shell.is-browser .fm-topbar-brand-inline .fm-brand-name {
      max-width: 7.5rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .fm-menu-list {
    display: flex;
    flex-direction: column;
    background: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
  }
  .fm-menu-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    padding-left: calc(1rem + (var(--fm-menu-depth, 0) * 1rem));
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--theme-line);
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    cursor: pointer;
  }
  .fm-menu-row:last-child {
    border-bottom: none;
  }
  .fm-menu-row:hover {
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 6%, transparent);
    }
  }
  .fm-menu-row-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--theme-radius-md);
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 12%, transparent);
    }
    color: var(--theme-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .fm-menu-label {
    flex: 1;
    font-weight: 500;
  }
  .fm-menu-soon {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: var(--theme-radius-sm);
    border: 1px solid #b7e4c0;
    background: #e8f7eb;
    color: #1f7a3a;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .fm-menu-row.is-soon .fm-menu-label {
    color: var(--theme-muted);
  }
  .fm-menu-chevron {
    color: var(--theme-subtle);
    display: inline-flex;
  }
  .fm-menu-children {
    display: flex;
    flex-direction: column;
    background: var(--theme-canvas);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-canvas) 65%, var(--theme-surface));
    }
  }
  .fm-coming-soon {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
  }
  .fm-coming-soon-panel {
    width: min(100%, 28rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem;
    border-radius: var(--theme-radius-xl);
    border: 1px solid var(--theme-line);
    background: linear-gradient( 165deg, var(--theme-brand) 0%, var(--theme-surface) 55% );
    @supports (color: color-mix(in lab, red, red)) {
      background: linear-gradient( 165deg, color-mix(in srgb, var(--theme-brand) 8%, var(--theme-surface)) 0%, var(--theme-surface) 55% );
    }
  }
  .fm-coming-soon-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--theme-radius-lg);
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 14%, transparent);
    }
    color: var(--theme-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fm-coming-soon-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-brand);
  }
  .fm-coming-soon-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--theme-ink);
  }
  .fm-coming-soon-lede {
    margin: 0 0 0.5rem;
    color: var(--theme-muted);
    line-height: 1.5;
  }
  .fm-coming-soon-extra {
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--theme-line);
  }
  .fm-app-version {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--theme-muted);
  }
  .fm-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--theme-overlay);
  }
  .fm-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 31;
    width: min(22rem, 92vw);
    height: 100%;
    max-height: 100dvh;
    background: var(--theme-surface);
    color: var(--theme-ink);
    box-shadow: 4px 0 24px var(--theme-overlay);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .fm-drawer-push {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    z-index: 1;
    width: 20rem;
    flex-shrink: 0;
    height: auto;
    max-height: 100%;
    min-height: 0;
    align-self: stretch;
    box-shadow: none;
    border-right: 1px solid var(--theme-line);
  }
  .fm-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--theme-line);
    background: var(--theme-surface);
    z-index: 1;
  }
  .fm-drawer-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .fm-drawer-title {
    font-weight: 700;
    color: var(--theme-brand-hover);
  }
  .fm-drawer-section-label {
    margin: 0.75rem 1rem 0.25rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-brand);
  }
  .fm-drawer-pad {
    padding: 1rem;
  }
  .fm-drawer-menu {
    margin: 0.5rem 0.75rem 0.75rem;
    border-radius: var(--theme-radius-lg);
  }
  .fm-drawer-footer {
    flex-shrink: 0;
    padding: 1rem 0.75rem 1.25rem;
    border-top: 1px solid var(--theme-line);
    text-align: center;
  }
  .fm-shell.is-drawer-open.is-native, .fm-shell.is-drawer-open.is-browser.is-overlay-drawer {
    overflow: hidden;
  }
  .fm-drawer-tagline {
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    color: var(--theme-muted);
  }
  @media (min-width: 768px) {
    .fm-drawer:not(.fm-drawer-push) {
      width: 24rem;
    }
    .fm-drawer-push {
      width: 22rem;
    }
    .fm-main {
      padding-top: 1.25rem;
    }
  }
  .fm-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: var(--theme-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 40;
  }
  .fm-dialog {
    width: 100%;
    max-width: 24rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    padding: 1.25rem;
    box-shadow: 0 8px 24px var(--theme-overlay);
  }
  .fm-busy-backdrop {
    background: var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-ink) 45%, transparent);
    }
    z-index: 50;
  }
  .fm-busy-dialog {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  .fm-busy-dialog .fm-title {
    font-size: 1.125rem;
    margin: 0;
  }
  .fm-busy-dialog .fm-lede {
    margin: 0;
  }
  .fm-spinner {
    display: inline-flex;
    color: var(--theme-brand);
  }
  .fm-spinner-icon {
    animation: fm-spin 0.8s linear infinite;
  }
  @keyframes fm-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @media (min-width: 768px) {
    .fm-drawer {
      width: 24rem;
    }
    .fm-main {
      max-width: 40rem;
      padding-top: 1.25rem;
    }
  }
  .fm-card {
    width: 100%;
    max-width: 24rem;
    background-color: var(--theme-surface);
    color: var(--theme-ink);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-card);
    box-shadow: 0 1px 2px var(--theme-overlay);
    padding: 1.5rem;
  }
  .fm-kicker {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--theme-brand);
  }
  .fm-title {
    margin-top: 0.25rem;
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
    font-weight: 600;
    color: var(--theme-ink);
  }
  .fm-lede {
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--theme-ink);
  }
  .fm-title, .fm-label, .fm-settings-section-title, .fm-menu-heading, .fm-menu-label, .fm-auth-title, .fm-auth-section-title, .fm-drawer-title, .fm-coming-soon-title, .fm-notif-panel-title, .fm-check {
    text-transform: capitalize;
  }
  .fm-field {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--theme-radius-lg);
    border: 1px solid var(--theme-line-strong);
    background-color: var(--theme-input);
    color: var(--theme-ink);
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 1rem;
  }
  .fm-datetime {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--theme-radius-lg);
    clip-path: inset(0 round var(--theme-radius-lg));
  }
  input.fm-field[type="datetime-local"], input.fm-field[type="date"], input.fm-field[type="time"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
  }
  input.fm-field[type="datetime-local"]::-webkit-datetime-edit, input.fm-field[type="date"]::-webkit-datetime-edit, input.fm-field[type="time"]::-webkit-datetime-edit, input.fm-field[type="datetime-local"]::-webkit-date-and-time-value, input.fm-field[type="date"]::-webkit-date-and-time-value, input.fm-field[type="time"]::-webkit-date-and-time-value {
    padding: 0;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
  .fm-field:focus {
    outline: none;
    border-color: var(--theme-brand);
    box-shadow: 0 0 0 3px var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-brand) 25%, transparent);
    }
  }
  .fm-digit {
    font-size: 1rem;
    min-height: 2.75rem;
  }
  .fm-note {
    display: block;
    box-sizing: border-box;
    min-height: 6.5rem;
    max-height: 12rem;
    overflow-y: auto;
    resize: vertical;
    line-height: 1.45;
  }
  .fm-field-readonly, .fm-field[readonly] {
    background-color: var(--theme-canvas);
    color: var(--theme-muted);
    border-color: var(--theme-line);
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: var(--theme-muted);
  }
  .fm-field-readonly:focus, .fm-field[readonly]:focus {
    border-color: var(--theme-line);
    box-shadow: none;
  }
  .fm-error {
    font-size: var(--text-sm);
    color: var(--theme-danger);
  }
  .fm-btn {
    border-radius: var(--theme-radius-lg);
    font-weight: 500;
    padding: 0.625rem 1rem;
    text-align: center;
    text-decoration: none;
  }
  .fm-btn:disabled {
    opacity: 0.6;
  }
  .fm-btn-primary {
    width: 100%;
    background-color: var(--theme-brand);
    color: var(--theme-on-brand);
  }
  .fm-btn-primary:hover:not(:disabled) {
    background-color: var(--theme-brand-hover);
  }
  .fm-btn-secondary {
    width: 100%;
    background-color: transparent;
    color: var(--theme-brand);
    border: 1px solid var(--theme-brand);
  }
  .fm-banner {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
  .fm-banner-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  .fm-lock-banner {
    background-color: var(--theme-warning-soft);
    border-color: var(--theme-line-strong);
  }
  .fm-lock-banner p {
    margin: 0;
    color: var(--theme-ink);
  }
  .fm-lock-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-inline-size: 0;
    overflow: visible;
  }
  .fm-link {
    color: var(--theme-brand);
    font-weight: 500;
  }
  .fm-muted {
    color: var(--theme-muted);
  }
  .fm-subtle {
    color: var(--theme-subtle);
  }
  .fm-panel {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    padding: 1rem;
  }
  .fm-btn-inline {
    width: auto;
  }
  .fm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
  }
  .fm-brand-mark {
    flex-shrink: 0;
    display: block;
  }
  .fm-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .fm-brand-flex {
    color: var(--theme-brand-blue);
  }
  .fm-brand-med {
    color: var(--theme-brand);
  }
  .fm-auth-page {
    width: 100%;
    background-color: var(--theme-surface);
    align-items: center;
    padding: 1.25rem 1rem 1.5rem;
    box-sizing: border-box;
  }
  .fm-page:has(> .fm-auth-page) {
    background-color: var(--theme-surface);
    min-height: 100dvh;
  }
  body.fm-page:not(.fm-native-shell) .fm-auth-page {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  @media (min-width: 768px) {
    body.fm-page:not(.fm-native-shell) .fm-page:has(> .fm-auth-page) {
      display: flex;
      flex-direction: column;
      justify-content: safe center;
    }
  }
  .fm-auth {
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .fm-auth-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 2.5rem;
    margin-bottom: 1.25rem;
  }
  .fm-auth-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--theme-radius-md);
    color: var(--theme-brand);
    background: transparent;
  }
  .fm-auth-back:hover {
    background-color: var(--theme-overlay);
  }
  .fm-auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-block: 0.5rem 0.25rem;
  }
  .fm-auth-illustration {
    width: 7.5rem;
    height: 7.5rem;
    display: grid;
    place-items: center;
    color: var(--theme-muted);
  }
  .fm-auth-title {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--theme-ink);
  }
  .fm-auth-lede {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--theme-muted);
  }
  .fm-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .fm-auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--theme-subtle);
  }
  .fm-auth-section-title {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--theme-ink);
    text-align: center;
  }
  .fm-auth-section-lede {
    margin-top: 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--theme-muted);
    text-align: center;
  }
  .fm-auth-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 8%, var(--theme-surface));
    }
    color: var(--theme-ink);
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .fm-auth-callout-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 18%, transparent);
    }
    color: var(--theme-brand);
    font-size: 0.75rem;
    font-weight: 700;
  }
  .fm-auth-fields {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .fm-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .fm-pin-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 16rem;
    margin-inline: auto;
  }
  .fm-pin-digit {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 2.75rem;
    max-width: 3.5rem;
    height: 3rem;
    min-height: 44px;
    padding: 0;
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--theme-ink);
    background-color: var(--theme-input);
    border: 1px solid var(--theme-line-strong);
    border-radius: var(--theme-radius-lg);
    -webkit-appearance: none;
    appearance: none;
  }
  .fm-pin-digit:focus {
    outline: none;
    border-color: var(--theme-brand);
    box-shadow: 0 0 0 3px var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-brand) 25%, transparent);
    }
  }
  .fm-pin-digit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .fm-auth-policy {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    list-style: disc;
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .fm-auth-policy > li + li {
    margin-top: 0.25rem;
  }
  .fm-auth-policy-hint {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--theme-muted);
  }
  .fm-auth-policy-met {
    color: var(--theme-brand);
  }
  .fm-auth-policy-pending {
    color: var(--theme-subtle);
  }
  .fm-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--theme-muted);
  }
  .fm-auth-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
  }
  .fm-field-wrap {
    position: relative;
  }
  .fm-field-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: var(--theme-subtle);
    pointer-events: none;
  }
  .fm-field-with-icon {
    padding-left: 2.5rem;
  }
  .fm-field-with-icons {
    padding-left: 2.5rem;
    padding-right: 2.75rem;
  }
  .fm-field-with-action {
    padding-right: 2.75rem;
  }
  .fm-field-action {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--theme-radius-md);
    color: var(--theme-subtle);
    background: transparent;
  }
  .fm-field-action:hover {
    color: var(--theme-ink);
    background-color: var(--theme-overlay);
  }
  .fm-auth-row-end {
    display: flex;
    justify-content: flex-end;
  }
  .fm-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 1rem;
    color: var(--theme-subtle);
    font-size: 0.8125rem;
  }
  .fm-auth-divider::before, .fm-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--theme-line);
  }
  .fm-btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .fm-btn-with-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
  }
  .fm-auth-secure {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background-color: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-canvas));
    }
  }
  .fm-auth-secure-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-brand);
  }
  .fm-auth-secure-body {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--theme-muted);
  }
  .fm-auth-success-badge {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background-color: var(--theme-brand);
    color: var(--theme-on-brand);
  }
  .fm-auth-lockout-badge {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background-color: var(--theme-danger);
    color: #ffffff;
  }
  .fm-auth-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background-color: var(--theme-danger-soft);
    color: var(--theme-danger);
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .fm-auth-countdown {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--theme-danger);
    font-size: 0.875rem;
  }
  .fm-auth-countdown-time {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .fm-auth-help {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background-color: var(--theme-canvas);
  }
  .fm-auth-help-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-brand);
  }
  .fm-auth-help-body {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--theme-muted);
  }
  .fm-auth-center-copy {
    text-align: center;
  }
  .fm-typeahead {
    position: relative;
  }
  .fm-typeahead.is-open {
    z-index: 40;
  }
  .fm-typeahead-control {
    position: relative;
  }
  .fm-typeahead-input {
    padding-right: 2.5rem;
  }
  .fm-typeahead.is-plain .fm-typeahead-input {
    padding-right: 0.75rem;
  }
  .fm-typeahead-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: var(--theme-radius-md);
    color: var(--theme-subtle);
    background: transparent;
    cursor: pointer;
  }
  .fm-typeahead-toggle:disabled {
    cursor: default;
    opacity: 0.55;
  }
  .fm-typeahead-chevrons {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0;
    gap: 0;
  }
  .fm-typeahead-chevrons svg {
    display: block;
    margin-block: -0.2rem;
  }
  .fm-typeahead-list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--theme-border);
    border-radius: 0.75rem;
    background: var(--theme-surface, #fff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
    touch-action: manipulation;
  }
  .fm-typeahead-option {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    text-align: left;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    cursor: pointer;
  }
  .fm-typeahead-option:hover, .fm-typeahead-option.is-selected {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, transparent);
    }
  }
  .fm-settings-checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .fm-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    font-size: var(--text-sm);
    color: var(--theme-ink);
    cursor: pointer;
  }
  .fm-check input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--theme-brand);
  }
  .fm-pamphlet-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .fm-pamphlet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    font-size: var(--text-sm);
  }
  .fm-pamphlet-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .fm-btn-compact {
    width: auto;
    min-height: 2.5rem;
    padding-inline: 0.875rem;
  }
  .fm-muted {
    margin: 0 0 0.75rem;
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-danger-zone {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-line);
  }
  .fm-settings {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding-bottom: 2rem;
  }
  .fm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.75rem;
    margin-bottom: 0.75rem;
    color: var(--theme-brand);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
  }
  .fm-back-link:hover {
    color: var(--theme-brand-hover);
  }
  .fm-settings-form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .fm-settings-section-title {
    margin: 0 0 0.75rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--theme-brand);
  }
  .fm-pending-banner {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--theme-line);
    border-radius: 0.5rem;
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-surface));
    }
  }
  .fm-pending-banner p {
    margin: 0 0 0.75rem;
    color: var(--theme-ink);
    line-height: 1.45;
  }
  .fm-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fm-settings-field {
    min-width: 0;
  }
  .fm-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.125rem;
    margin-bottom: 0.25rem;
  }
  .fm-label-row > .fm-label {
    width: auto;
    margin-bottom: 0;
  }
  .fm-info-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--theme-brand);
    cursor: pointer;
    outline: none;
    touch-action: manipulation;
  }
  .fm-info-tip-btn:hover, .fm-info-tip-btn:focus-visible {
    background: transparent;
    outline: none;
    color: var(--theme-brand-hover);
  }
  .fm-info-tip-popover {
    flex: 1 0 100%;
    margin: 0.15rem 0 0.35rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--theme-radius-lg);
    border: 1px solid var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      border: 1px solid color-mix(in srgb, var(--theme-brand) 22%, var(--theme-line));
    }
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 10%, var(--theme-surface));
    }
    color: var(--theme-ink);
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.45;
  }
  .fm-field-hint {
    margin: 0.2rem 0 0.45rem;
    font-size: var(--text-sm);
    line-height: 1.35;
    color: var(--theme-muted);
  }
  .fm-field-ok {
    margin-top: 0.35rem;
    font-size: var(--text-sm);
    color: var(--theme-brand);
  }
  .fm-success-banner {
    position: fixed;
    z-index: 50;
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: max-content;
    max-width: min(28rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-radius-lg);
    border: 1px solid var(--theme-rag-green);
    @supports (color: color-mix(in lab, red, red)) {
      border: 1px solid color-mix(in srgb, var(--theme-rag-green) 40%, var(--theme-line));
    }
    background: var(--theme-surface);
    box-shadow: 0 8px 24px var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-ink) 12%, transparent);
    }
    color: var(--theme-ink);
    font-size: var(--text-sm);
    font-weight: 500;
  }
  .fm-success-banner-icon {
    flex-shrink: 0;
    color: var(--theme-rag-green);
  }
  .fm-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 10%, var(--theme-surface));
    }
    border: 1px solid var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      border: 1px solid color-mix(in srgb, var(--theme-brand) 22%, var(--theme-line));
    }
    color: var(--theme-ink);
    font-size: var(--text-sm);
    line-height: 1.45;
  }
  .fm-callout p {
    margin: 0;
  }
  .fm-callout-icon {
    flex-shrink: 0;
    color: var(--theme-brand);
    margin-top: 0.1rem;
  }
  .fm-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .fm-settings-actions .fm-btn, .fm-settings-actions .fm-btn-inline {
    width: 100%;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  .fm-success-panel {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    border: 1px solid var(--theme-line);
  }
  .fm-success-steps {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--theme-ink);
  }
  .fm-success-summary {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-canvas);
    font-size: var(--text-sm);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .fm-success-summary p {
    margin: 0;
  }
  @media (min-width: 768px) {
    .fm-settings {
      max-width: 48rem;
    }
    .fm-settings-grid {
      grid-template-columns: 1fr 1fr;
    }
    .fm-settings-field-span {
      grid-column: 1 / -1;
    }
    .fm-settings-actions {
      flex-direction: row;
      justify-content: flex-end;
    }
    .fm-settings-actions .fm-btn, .fm-settings-actions .fm-btn-inline {
      width: auto;
      min-width: 10rem;
    }
  }
  .fm-people {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding-bottom: 2rem;
  }
  .fm-people-back-list {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
  }
  .fm-people.is-list .fm-people-back-list {
    display: none;
  }
  @media (max-width: 1023px) {
    .fm-people.is-detail .fm-people-header {
      display: none;
    }
  }
  .fm-people-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .fm-people-new {
    width: 100%;
    min-height: 2.75rem;
  }
  .fm-people-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .fm-people.is-detail .fm-people-list-pane {
    display: none;
  }
  .fm-people.is-list .fm-people-detail-pane {
    display: none;
  }
  .fm-people-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
    background: var(--theme-surface);
  }
  .fm-people-list-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--theme-line);
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .fm-people-list li:last-child .fm-people-list-item {
    border-bottom: 0;
  }
  .fm-people-list-item:hover {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-surface));
    }
  }
  .fm-people-list-item.is-selected {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 14%, var(--theme-surface));
    }
    color: var(--theme-brand);
    font-weight: 600;
  }
  .fm-people-list-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .fm-people-total {
    margin: 0.75rem 0 0;
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-people-empty {
    padding: 1.5rem 1rem;
    border: 1px dashed var(--theme-line);
    border-radius: var(--theme-radius-xl);
    text-align: center;
  }
  .fm-assign-table-wrap {
    margin-top: 0.75rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
    background: var(--theme-surface);
  }
  .fm-assign-table {
    width: 100%;
    border-collapse: collapse;
  }
  .fm-assign-table th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--theme-muted);
    background: var(--theme-canvas);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-canvas) 70%, var(--theme-surface));
    }
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-assign-table th:last-child {
    width: 42%;
  }
  .fm-assign-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .fm-assign-sort.is-asc::after, .fm-assign-sort.is-desc::after {
    content: "";
    width: 0;
    height: 0;
    border-inline: 0.28rem solid transparent;
  }
  .fm-assign-sort.is-asc::after {
    border-bottom: 0.35rem solid var(--theme-brand);
  }
  .fm-assign-sort.is-desc::after {
    border-top: 0.35rem solid var(--theme-brand);
  }
  .fm-assign-table tbody tr {
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-assign-table tbody tr:last-child {
    border-bottom: 0;
  }
  .fm-assign-table td {
    padding: 0;
  }
  .fm-assign-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .fm-assign-row:hover {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-surface));
    }
  }
  .fm-assign-row.is-selected, .fm-assign-table tbody tr.is-selected {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-surface));
    }
  }
  .fm-assign-patient {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }
  .fm-assign-meta, .fm-assign-doctor {
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-assign-row.is-selected .fm-people-list-name {
    color: var(--theme-brand);
    font-weight: 600;
  }
  .fm-assign-detail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }
  .fm-assign-detail-head .fm-muted {
    margin: 0;
  }
  .fm-time {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 0;
  }
  .fm-time-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 6.5rem;
    padding: 0 0.5rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-input);
  }
  .fm-time-clock:focus-within {
    outline: none;
    border-color: var(--theme-brand);
    box-shadow: 0 0 0 3px var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-brand) 25%, transparent);
    }
  }
  .fm-time-part {
    width: 2rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .fm-time-part:focus {
    outline: none;
  }
  .fm-time-part::placeholder {
    color: var(--theme-muted);
  }
  .fm-time-sep {
    color: var(--theme-muted);
    font-weight: 600;
  }
  .fm-time-meridian {
    flex: 0 0 6.5rem;
    width: 6.5rem;
  }
  .fm-time-meridian .fm-segment-btn {
    min-width: 0;
  }
  .fm-time.is-disabled {
    opacity: 0.6;
    pointer-events: none;
  }
  .fm-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-canvas);
  }
  .fm-segment-btn {
    flex: 1 1 0;
    min-width: 5.5rem;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: calc(var(--theme-radius-lg) - 0.1rem);
    background: transparent;
    color: var(--theme-ink);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
  }
  .fm-segment-btn:hover:not(:disabled):not(.is-selected) {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 8%, transparent);
    }
  }
  .fm-segment-btn.is-selected {
    background: var(--theme-surface);
    color: var(--theme-brand);
    box-shadow: 0 0 0 1px var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-brand) 28%, var(--theme-line));
    }
  }
  .fm-assign-choices {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
  }
  .fm-assign-notes {
    min-height: 6.5rem;
    resize: vertical;
  }
  .fm-assign-counter {
    margin: 0.35rem 0 0;
    text-align: right;
    font-size: var(--text-xs);
    color: var(--theme-muted);
  }
  @media (min-width: 768px) {
    .fm-assign .fm-people-layout {
      grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    }
    .fm-assign-choices {
      grid-template-columns: 1fr 1fr;
    }
    .fm-assign .fm-settings-actions {
      flex-direction: row;
      justify-content: flex-end;
    }
    .fm-assign .fm-settings-actions .fm-btn {
      width: auto;
      min-width: 10rem;
    }
  }
  .fm-people-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .fm-people-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-surface));
    }
    border: 1px solid var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      border: 1px solid color-mix(in srgb, var(--theme-brand) 28%, var(--theme-line));
    }
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--theme-brand);
  }
  .fm-people-role-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--theme-muted);
    font-size: 1.1rem;
    line-height: 1;
    min-width: 1.5rem;
    min-height: 1.5rem;
    cursor: pointer;
    border-radius: var(--theme-radius-lg);
  }
  .fm-people-role-remove:hover {
    color: var(--theme-ink);
    background: var(--theme-muted);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-muted) 16%, transparent);
    }
  }
  .fm-people-link-role-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .fm-people-link-role-row .fm-typeahead {
    width: 100%;
  }
  .fm-people-scope-fieldset {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .fm-people-scope-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: var(--text-sm);
    line-height: 1.4;
    cursor: pointer;
  }
  .fm-people-scope-option input {
    margin-top: 0.2rem;
  }
  @media (min-width: 768px) {
    .fm-people-header {
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
    }
    .fm-people-new {
      width: auto;
      min-width: 10rem;
      flex-shrink: 0;
    }
    .fm-people-link-role-row {
      flex-direction: row;
      align-items: center;
    }
    .fm-people-link-role-row .fm-typeahead {
      flex: 1;
      min-width: 0;
    }
  }
  @media (min-width: 1024px) {
    .fm-shell.is-browser .fm-main:has(.fm-people) {
      max-width: 72rem;
    }
    .fm-people {
      max-width: 72rem;
    }
    .fm-people-back-list {
      display: none !important;
    }
    .fm-people.fm-board.is-detail .fm-people-back-list {
      display: inline-flex !important;
    }
    .fm-people.is-detail .fm-people-list-pane, .fm-people.is-list .fm-people-detail-pane {
      display: block;
    }
    .fm-people-layout {
      display: grid;
      grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
      gap: 1.5rem;
      align-items: start;
    }
    .fm-people-list-pane {
      position: sticky;
      top: 1rem;
    }
    .fm-people-detail-pane {
      min-width: 0;
      padding: 1.25rem;
      border: 1px solid var(--theme-line);
      border-radius: var(--theme-radius-xl);
      background: var(--theme-surface);
    }
    .fm-shell.is-browser .fm-people:has(#proccode-search) .fm-people-list-pane {
      position: static;
      display: flex;
      flex-direction: column;
      max-height: calc(100dvh - 15rem);
      min-height: 12rem;
    }
    .fm-shell.is-browser .fm-people:has(#proccode-search) .fm-people-list {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
    }
  }
  .fm-ward-list > li {
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-ward-list > li:last-child {
    border-bottom: 0;
  }
  .fm-ward-list > li .fm-people-list-item {
    border-bottom: 0;
  }
  .fm-ward-list > li.is-editing {
    padding: 0.75rem 1rem;
  }
  .fm-ward-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
  }
  .fm-ward-form-new {
    margin-top: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--theme-line);
  }
  .fm-ward-fields {
    display: grid;
    grid-template-columns: 12rem 5.5rem;
    gap: 0.75rem 1rem;
    align-items: start;
  }
  .fm-ward-field-desc {
    grid-column: 1 / -1;
  }
  .fm-ward-field-desc .fm-field {
    max-width: 18.5rem;
  }
  .fm-ward-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .fm-ward-actions .fm-btn {
    width: auto;
    min-width: 0;
  }
  @media (max-width: 359px) {
    .fm-ward-fields {
      grid-template-columns: minmax(0, 12rem);
    }
    .fm-ward-field-desc .fm-field {
      max-width: 12rem;
    }
  }
  .fm-eval-badge {
    flex: 0 0 auto;
    font-size: var(--text-xs);
    color: var(--theme-muted);
  }
  .fm-eval-field-table {
    --fm-eval-field-cols: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1fr) 3rem max-content;
    margin-top: 0.75rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
    background: var(--theme-surface);
  }
  .fm-eval-field-head {
    display: none;
  }
  .fm-eval-field-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .fm-eval-field-list > li {
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-eval-field-list > li:last-child {
    border-bottom: 0;
  }
  .fm-eval-field-list > li.is-editing {
    padding: 0.75rem 1rem;
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 5%, var(--theme-surface));
    }
  }
  .fm-eval-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: 2.75rem;
  }
  .fm-eval-field-list > li:hover:not(.is-editing) {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-surface));
    }
  }
  .fm-eval-field-main {
    min-width: 0;
  }
  .fm-eval-field-name {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .fm-eval-field-req {
    margin-left: 0.15rem;
    color: var(--theme-brand);
  }
  .fm-eval-field-meta-line {
    margin: 0.2rem 0 0;
    font-size: var(--text-sm);
    color: var(--theme-muted);
    overflow-wrap: anywhere;
  }
  .fm-eval-field-cell, .fm-eval-field-head-actions {
    display: none;
  }
  .fm-eval-field-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
  }
  .fm-eval-field-actions .fm-btn {
    width: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  @media (min-width: 768px) {
    .fm-eval-field-table {
      display: grid;
      grid-template-columns: var(--fm-eval-field-cols);
    }
    .fm-eval-field-head, .fm-eval-field-list > li:not(.is-editing) {
      display: grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      column-gap: 0.75rem;
      align-items: center;
      padding: 0.65rem 1rem;
      min-height: 2.75rem;
    }
    .fm-eval-field-head {
      background: var(--theme-muted);
      @supports (color: color-mix(in lab, red, red)) {
        background: color-mix(in srgb, var(--theme-muted) 8%, var(--theme-surface));
      }
      border-bottom: 1px solid var(--theme-line);
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--theme-muted);
    }
    .fm-eval-field-list {
      display: contents;
    }
    .fm-eval-field-row {
      display: contents;
    }
    .fm-eval-field-meta-line {
      display: none;
    }
    .fm-eval-field-cell, .fm-eval-field-head-actions, .fm-eval-field-col-data, .fm-eval-field-col-seq {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .fm-eval-field-cell {
      font-size: var(--text-sm);
      color: var(--theme-muted);
    }
    .fm-eval-field-head > span {
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--theme-muted);
    }
    .fm-eval-field-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .fm-eval-field-col-seq {
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .fm-eval-field-list > li.is-editing {
      grid-column: 1 / -1;
    }
  }
  .fm-eval-group-fields, .fm-eval-field-fields {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  .fm-eval-group-fields .fm-field, .fm-eval-field-fields .fm-field {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .fm-eval-group-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .fm-eval-group-item .fm-people-list-name {
    flex: 1 1 100%;
    overflow-wrap: break-word;
  }
  .fm-eval-group-item .fm-ward-actions {
    flex: 1 1 100%;
  }
  .fm-eval-group-item .fm-ward-actions .fm-btn {
    min-height: 2.75rem;
  }
  .fm-eval-panel .fm-ward-form {
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  @media (min-width: 768px) {
    .fm-eval-group-fields, .fm-eval-field-fields {
      grid-template-columns: minmax(0, 16rem) minmax(0, 12rem);
    }
    .fm-eval-group-item {
      flex-wrap: nowrap;
      align-items: center;
    }
    .fm-eval-group-item .fm-people-list-name {
      flex: 1 1 auto;
    }
    .fm-eval-group-item .fm-ward-actions {
      flex: 0 1 auto;
      justify-content: flex-end;
    }
    .fm-eval-panel .fm-ward-form {
      width: fit-content;
    }
  }
  .fm-eval-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.25rem;
    min-width: 0;
  }
  .fm-eval-detail > .fm-settings-form {
    margin-top: 0;
    gap: 0;
  }
  .fm-eval-panel {
    min-width: 0;
    max-width: 100%;
    padding: 0 0 1.15rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
  }
  .fm-eval-panel-head {
    min-width: 0;
    padding: 0.85rem 1rem 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--theme-line);
    background: var(--theme-muted);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-muted) 7%, var(--theme-surface));
    }
    border-radius: var(--theme-radius-xl) var(--theme-radius-xl) 0 0;
  }
  .fm-eval-panel-head .fm-settings-section-title {
    margin: 0;
    overflow-wrap: anywhere;
  }
  .fm-eval-panel-head .fm-muted {
    margin: 0.35rem 0 0;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .fm-eval-panel > .fm-settings-grid, .fm-eval-panel > .fm-people-list, .fm-eval-panel > .fm-eval-field-table, .fm-eval-panel > .fm-ward-form, .fm-eval-panel > .fm-ward-form-new, .fm-eval-panel > .fm-settings-actions, .fm-eval-panel > .fm-eval-preview, .fm-eval-panel > .fm-muted, .fm-eval-panel > .fm-error {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .fm-eval-panel .fm-ward-form-new {
    margin-top: 1rem;
    padding: 1rem 0 0;
  }
  .fm-eval-panel .fm-settings-actions {
    margin-top: 1rem;
  }
  .fm-eval-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--theme-line);
    width: 100%;
  }
  .fm-eval-option-table {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    overflow: hidden;
    background: var(--theme-surface);
  }
  .fm-eval-option-head, .fm-eval-option-item {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.75rem;
  }
  .fm-eval-option-head {
    background: var(--theme-muted);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-muted) 8%, var(--theme-surface));
    }
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--theme-muted);
  }
  .fm-eval-option-head-actions {
    text-align: right;
  }
  .fm-eval-option-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .fm-eval-option-item {
    border-top: 1px solid var(--theme-line);
  }
  .fm-eval-option-seq {
    color: var(--theme-muted);
    font-variant-numeric: tabular-nums;
  }
  .fm-eval-option-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 500;
  }
  .fm-eval-option-item .fm-btn {
    width: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .fm-eval-option-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    align-items: end;
  }
  .fm-eval-option-add .fm-btn {
    width: 100%;
  }
  @media (min-width: 768px) {
    .fm-eval-detail {
      gap: 1.75rem;
    }
    .fm-eval-option-add {
      grid-template-columns: minmax(0, 18rem) auto;
    }
    .fm-eval-option-add .fm-btn {
      width: auto;
    }
  }
  .fm-eval-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .fm-eval-preview-group {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    padding: 1rem;
    background: var(--theme-surface);
  }
  .fm-eval-preview-name {
    margin: 0 0 0.25rem;
    font-size: var(--text-md);
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .fm-eval-preview-description, .fm-eval-preview-explanation {
    margin: 0 0 0.25rem;
    color: var(--theme-muted);
    overflow-wrap: anywhere;
  }
  .fm-eval-preview-field {
    margin-top: 0.75rem;
  }
  .fm-eval-preview-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  .fm-eval-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
  }
  .fm-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1rem;
  }
  .fm-notif-bell {
    position: relative;
    justify-self: end;
    overflow: visible;
  }
  .fm-notif-bell-btn {
    position: relative;
    overflow: visible;
  }
  .fm-notif-badge {
    position: absolute;
    top: 0.1rem;
    right: 0.05rem;
    z-index: 2;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--theme-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    pointer-events: none;
  }
  .fm-notif-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 40;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    overflow: auto;
    background: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    box-shadow: 0 12px 28px rgb(36 44 54 / 0.12);
  }
  .fm-notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-notif-panel-title {
    margin: 0;
    font-weight: 600;
    color: var(--theme-ink);
  }
  .fm-notif-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .fm-notif-empty, .fm-notif-error {
    margin: 0;
    padding: 1rem 0.85rem;
  }
  .fm-notif-list, .fm-notif-inbox {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .fm-notif-item, .fm-notif-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--theme-line);
  }
  .fm-notif-item.is-unread, .fm-notif-card.is-unread {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 6%, var(--theme-surface));
    }
  }
  .fm-notif-item.is-warning, .fm-notif-card.is-warning {
    border-left: 3px solid #c2410c;
  }
  .fm-notif-item.is-emergency, .fm-notif-card.is-emergency {
    border-left: 3px solid var(--theme-emergency);
    background: var(--theme-emergency-soft);
  }
  .fm-notif-item-main, .fm-notif-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
  }
  .fm-notif-item-title {
    font-weight: 600;
    color: var(--theme-ink);
  }
  .fm-notif-item-body, .fm-notif-meta {
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-notif-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: none;
    border-radius: var(--theme-radius-md);
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
  }
  .fm-notif-view-all {
    display: block;
    padding: 0.85rem;
    text-align: center;
    font-weight: 600;
    color: var(--theme-brand);
    border-top: 1px solid var(--theme-line);
  }
  .fm-notif-inbox {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .fm-notif-card {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
  }
  .fm-notif-emergency-banner {
    grid-column: 1 / -1;
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--theme-radius-md);
    background: var(--theme-emergency);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .fm-notif-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }
  .fm-proccode-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
    width: min(100%, 28rem);
    margin-left: auto;
  }
  .fm-proccode-header-actions .fm-btn {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
  }
  .fm-proccode-header-actions.is-native {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }
  .fm-proccode-import {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
  }
  .fm-proccode-import .fm-ward-actions {
    margin-top: 1rem;
  }
  .fm-proccode-import-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
  }
  .fm-proccode-import-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 24rem;
    font-size: var(--text-sm);
  }
  .fm-proccode-import-table th, .fm-proccode-import-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--theme-line);
    text-align: left;
  }
  .fm-proccode-import-table th {
    color: var(--theme-muted);
    font-weight: 600;
  }
  .fm-proccode-actions {
    margin-top: 1rem;
  }
  .fm-avail-toolbar {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  @media (min-width: 768px) {
    .fm-avail-toolbar {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
    }
  }
  .fm-avail-week-field {
    max-width: none;
  }
  @media (min-width: 768px) {
    .fm-avail-week-field {
      max-width: 22rem;
    }
  }
  .fm-avail-nav {
    justify-content: flex-start;
  }
  .fm-avail-nav .fm-btn {
    min-height: 2.75rem;
  }
  @media (max-width: 767px) {
    .fm-avail-nav {
      flex-direction: column;
    }
    .fm-avail-nav .fm-btn {
      width: 100%;
    }
  }
  .fm-date {
    position: relative;
  }
  .fm-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
  }
  .fm-date-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.7;
  }
  .fm-date-placeholder {
    color: var(--theme-muted);
  }
  .fm-date-icon {
    flex: none;
    color: var(--theme-brand);
  }
  .fm-date-backdrop {
    display: none;
  }
  dialog.fm-date-popover {
    position: fixed;
    z-index: 37;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-ink) 40%, transparent);
    }
    overflow: visible;
    color: var(--theme-ink);
  }
  dialog.fm-date-popover:modal {
    background: transparent;
  }
  dialog.fm-date-popover::backdrop {
    background: var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-ink) 40%, transparent);
    }
  }
  .fm-date-sheet {
    width: 100%;
    max-height: min(34rem, calc(100dvh - 1rem));
    overflow: auto;
    padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
    border-radius: 1rem 1rem 0 0;
    background: var(--theme-surface);
    box-shadow: 0 -8px 24px var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      box-shadow: 0 -8px 24px color-mix(in srgb, var(--theme-ink) 18%, transparent);
    }
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  @media (min-width: 768px) {
    .fm-date-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 36;
      background: transparent;
    }
    dialog.fm-date-popover {
      position: absolute;
      inset: auto;
      top: calc(100% + 0.35rem);
      left: 0;
      display: block;
      width: min(22rem, calc(100vw - 2rem));
      height: auto;
      background: transparent;
    }
    dialog.fm-date-popover::backdrop {
      background: transparent;
    }
    .fm-date-sheet {
      max-height: none;
      padding: 0.75rem;
      border: 1px solid var(--theme-line);
      border-radius: var(--theme-radius-lg);
      box-shadow: 0 12px 28px var(--theme-ink);
      @supports (color: color-mix(in lab, red, red)) {
        box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-ink) 16%, transparent);
      }
    }
  }
  .fm-date-head, .fm-date-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .fm-date-month {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
  }
  .fm-date-nav, .fm-date-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--theme-ink);
    touch-action: manipulation;
    cursor: pointer;
  }
  .fm-date-nav {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--theme-radius-lg);
  }
  .fm-date-nav:hover, .fm-date-day:hover {
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, transparent);
    }
  }
  .fm-date-nav:disabled, .fm-date-day:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .fm-date-nav:disabled:hover, .fm-date-day:disabled:hover {
    background: transparent;
  }
  .fm-date-weekdays, .fm-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .fm-date-weekdays {
    margin-top: 0.35rem;
    color: var(--theme-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
  }
  .fm-date-day {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 999px;
    font-size: 1rem;
    padding: 0;
  }
  .fm-date-day.is-outside {
    color: var(--theme-muted);
  }
  .fm-date-day.is-today {
    box-shadow: inset 0 0 0 1px var(--theme-brand);
  }
  .fm-date-day.is-selected {
    background: var(--theme-brand);
    color: #fff;
    font-weight: 600;
  }
  .fm-date-actions {
    justify-content: flex-end;
    margin-top: 0.35rem;
  }
  .fm-date-actions .fm-btn {
    min-height: 2.75rem;
  }
  .fm-avail-banner {
    margin: 1rem 0 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-emergency-soft);
    color: var(--theme-ink);
    font-size: var(--text-sm);
  }
  .fm-avail-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-xs);
    color: var(--theme-muted);
  }
  .fm-avail-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .fm-avail-cards {
    display: grid;
    gap: 0.75rem;
  }
  .fm-avail-card {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    padding: 0.9rem 0.85rem 1rem;
  }
  .fm-avail-card-name {
    margin: 0 0 0.35rem;
    font-size: var(--text-base);
    font-weight: 700;
  }
  .fm-avail-shift-head, .fm-avail-day-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.5rem 3.5rem;
    align-items: center;
  }
  .fm-avail-shift-head {
    color: var(--theme-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .fm-avail-day-row {
    min-height: 3rem;
    border-top: 1px solid var(--theme-line);
  }
  .fm-avail-day-name {
    justify-self: start;
    font-size: var(--text-sm);
    font-weight: 600;
  }
  .fm-avail-shift-head > span:not(:first-child), .fm-avail-day-row > .fm-avail-toggle {
    justify-self: center;
  }
  .fm-avail-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .fm-avail-grid-wrap {
    display: none;
    overflow-x: auto;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
  }
  @media (min-width: 768px) {
    .fm-avail-cards {
      display: none;
    }
    .fm-avail-grid-wrap {
      display: block;
    }
  }
  .fm-avail-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 42rem;
  }
  .fm-avail-grid th, .fm-avail-grid td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid var(--theme-line);
    text-align: center;
    vertical-align: middle;
  }
  .fm-avail-therapist-col {
    text-align: left !important;
    position: sticky;
    left: 0;
    background: var(--theme-surface);
    min-width: 8.5rem;
    padding-left: 0.75rem !important;
    font-weight: 600;
    z-index: 1;
  }
  .fm-avail-day-col {
    font-size: var(--text-xs);
    color: var(--theme-muted);
    font-weight: 600;
  }
  .fm-avail-shift-col {
    font-size: var(--text-xs);
    color: var(--theme-subtle);
    font-weight: 600;
  }
  .fm-avail-bulk-col {
    min-width: 7rem;
  }
  .fm-avail-bulk-col .fm-btn {
    margin: 0.1rem;
  }
  .fm-avail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.25rem;
    border: 0;
    border-radius: var(--theme-radius-md);
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
  }
  .fm-avail-toggle.is-past {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .fm-avail-mark.is-on {
    color: var(--theme-rag-green);
  }
  .fm-avail-mark.is-off {
    color: var(--theme-danger);
  }
  .fm-avail-toggle.is-off:not(.is-past) {
    background: var(--theme-danger-soft);
  }
  .fm-avail-actions {
    margin-top: 1rem;
  }
  .fm-empdoc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
  }
  .fm-empdoc-tab {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    color: var(--theme-ink);
    font: inherit;
    cursor: pointer;
  }
  .fm-empdoc-tab.is-active {
    border-color: var(--theme-brand);
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-surface));
    }
    color: var(--theme-brand);
    font-weight: 600;
  }
  .fm-empdoc-pack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
  }
  .fm-empdoc-pack-item {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.75rem;
  }
  .fm-empdoc-pack-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .fm-empdoc-pack-name {
    margin: 0;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }
  .fm-empdoc-flag {
    font-size: var(--text-xs);
    color: var(--theme-muted);
    font-weight: 500;
  }
  .fm-empdoc-flag-owner {
    color: var(--theme-brand);
  }
  .fm-empdoc-dates {
    display: grid;
    gap: 0.75rem;
  }
  @media (min-width: 768px) {
    .fm-empdoc-dates {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .fm-empdoc-actions {
    display: grid;
    gap: 0.75rem;
  }
  .fm-empdoc-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .fm-empdoc-filecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-canvas);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-canvas) 55%, var(--theme-surface));
    }
  }
  .fm-empdoc-filecard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-surface));
    }
    color: var(--theme-brand);
  }
  .fm-empdoc-filecard-name {
    margin: 0;
    max-width: 24rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .fm-empdoc-add {
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    color: var(--theme-ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .fm-empdoc-add[aria-expanded="true"] {
    border-color: var(--theme-brand);
    color: var(--theme-brand);
  }
  .fm-empdoc-add-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-canvas);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-canvas) 55%, var(--theme-surface));
    }
  }
  .fm-rag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--theme-radius-md);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .fm-rag-chip.is-green {
    background: var(--theme-rag-green);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-rag-green) 18%, var(--theme-surface));
    }
    color: var(--theme-rag-green);
  }
  .fm-rag-chip.is-amber {
    background: var(--theme-rag-amber-fill);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-rag-amber-fill) 18%, var(--theme-surface));
    }
    color: var(--theme-rag-amber);
  }
  .fm-rag-chip.is-red {
    background: var(--theme-danger-soft);
    color: var(--theme-danger);
  }
  .fm-rag-icon.is-green {
    color: var(--theme-rag-green);
  }
  .fm-rag-icon.is-amber {
    color: var(--theme-rag-amber);
  }
  .fm-rag-icon.is-red {
    color: var(--theme-danger);
  }
  .fm-empdoc-rag-table-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
  }
  .fm-empdoc-rag-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 28rem;
  }
  .fm-empdoc-rag-table th, .fm-empdoc-rag-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--theme-line);
    text-align: left;
    vertical-align: middle;
  }
  .fm-empdoc-rag-table th.fm-empdoc-rag-status, .fm-empdoc-rag-table td.fm-empdoc-rag-status {
    text-align: center;
  }
  .fm-empdoc-rag-table td.fm-empdoc-rag-status .fm-rag-icon {
    display: block;
    margin-inline: auto;
  }
  .fm-empdoc-rag-table th {
    font-size: var(--text-xs);
    color: var(--theme-muted);
    font-weight: 600;
  }
  .fm-empdoc-tpl-form {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
  }
  .fm-empdoc-tpl-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
  }
  .fm-empdoc-tpl-item {
    justify-content: space-between;
  }
  .fm-admission-form {
    max-width: 40rem;
  }
  .fm-admission-duplicates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
  }
  .fm-admission-duplicate {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-card);
    background: var(--theme-surface);
    padding: 0.85rem 1rem;
  }
  .fm-admission-duplicate dl {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    gap: 0.25rem 0.75rem;
    margin: 0.5rem 0 0;
  }
  .fm-admission-duplicate dt {
    color: var(--theme-muted);
  }
  .fm-admission-duplicate dd {
    margin: 0;
  }
  .fm-admission-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .fm-admission-actions .fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  @media (min-width: 768px) {
    .fm-admission-actions {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .fm-admission-actions .fm-btn {
      width: auto;
      min-width: 12rem;
      min-height: 44px;
    }
  }
  .fm-theatre-list {
    max-width: 48rem;
  }
  .fm-capture-card {
    margin: 1rem 0;
    padding: 1.25rem 1rem;
    border: 1.5px dashed var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-canvas);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-canvas) 55%, var(--theme-surface));
    }
  }
  .fm-capture-card.is-filled {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .fm-capture-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    min-height: 18rem;
  }
  .fm-capture-empty .fm-muted {
    margin: 0;
    max-width: 22rem;
  }
  .fm-capture-empty .fm-btn, .fm-capture-toolbar .fm-btn {
    width: 100%;
    max-width: 22rem;
    min-height: 2.75rem;
  }
  .fm-capture-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--theme-brand);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-surface));
    }
    color: var(--theme-brand);
  }
  .fm-capture-title {
    margin: 0;
    font-weight: 600;
  }
  .fm-capture-previews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: min(28.8rem, 52dvh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fm-capture-preview {
    position: relative;
    flex-shrink: 0;
    height: 14.4rem;
    min-height: 14.4rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    overflow: hidden;
  }
  .fm-capture-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--theme-ink);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--theme-ink) 6%, var(--theme-surface));
    }
  }
  .fm-capture-preview-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 100%;
    color: var(--theme-brand);
    font-weight: 600;
  }
  .fm-capture-preview-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .fm-capture-preview-retake {
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    color: var(--theme-ink);
    font-weight: 500;
  }
  .fm-capture-preview-retake:disabled {
    opacity: 0.6;
  }
  .fm-capture-page-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    color: var(--theme-ink);
  }
  .fm-capture-page-remove:disabled {
    opacity: 0.6;
  }
  .fm-capture-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }
  .fm-capture-card label.fm-btn {
    cursor: pointer;
  }
  .fm-capture-card .is-disabled {
    pointer-events: none;
    opacity: 0.6;
  }
  .fm-theatre-card {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-card);
    background: var(--theme-surface);
    padding: 1rem;
    margin: 1rem 0;
    display: grid;
    gap: 0.75rem;
  }
  .fm-theatre-card-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
  }
  .fm-theatre-card-heading .fm-settings-section-title {
    margin: 0;
  }
  .fm-theatre-card-heading .fm-rag-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .fm-theatre-card-low {
    border-color: var(--theme-warning, #b45309);
  }
  .fm-field-low {
    box-shadow: inset 0 0 0 1px var(--theme-warning, #b45309);
  }
  .fm-theatre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .fm-theatre-actions legend {
    padding: 0;
  }
  .fm-theatre-actions label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
  }
  .fm-board-toolbar {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .fm-board-toolbar .fm-segment {
    flex-wrap: nowrap;
  }
  .fm-board-toolbar .fm-segment-btn {
    min-width: 0;
  }
  .fm-board-table {
    margin-top: 1.25rem;
  }
  .fm-board-table-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .fm-board-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
  }
  .fm-board-row.is-outstanding, .fm-dash-item.is-outstanding {
    background: var(--theme-session-outstanding);
  }
  .fm-board-row.is-not-possible, .fm-dash-item.is-not-possible {
    background: var(--theme-session-not-possible);
  }
  .fm-board-row.is-completed, .fm-dash-item.is-completed {
    background: var(--theme-session-completed);
  }
  .fm-board-row.is-cancelled, .fm-dash-item.is-cancelled {
    background: var(--theme-session-cancelled);
    color: var(--theme-muted);
  }
  .fm-board-row.is-selected {
    outline: 2px solid var(--theme-brand);
    outline-offset: -2px;
  }
  .fm-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-size: var(--text-sm);
    color: var(--theme-muted);
  }
  .fm-consent-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.4rem;
    border-radius: 999px;
    background: var(--theme-emergency);
    vertical-align: middle;
  }
  .fm-consent-dot.is-blue {
    background: var(--theme-emergency);
  }
  .fm-consent-flag {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 650;
  }
  .fm-consent-flag.is-blue {
    background: var(--theme-emergency-soft);
    color: var(--theme-emergency);
  }
  .fm-consent-flag.is-red {
    background: var(--theme-danger-soft);
    color: var(--theme-danger);
  }
  .fm-board-extra {
    width: auto;
    white-space: nowrap;
  }
  .fm-board-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
  }
  .fm-board-docs {
    margin: 0;
    padding-left: 1.1rem;
  }
  .fm-board-dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
  }
  .fm-board-dl div {
    display: grid;
    gap: 0.15rem;
  }
  .fm-board-dl dt {
    font-size: var(--text-xs);
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--theme-subtle);
  }
  .fm-board-dl dd {
    margin: 0;
    color: var(--theme-ink);
  }
  .fm-dash-strip {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .fm-dash-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
  }
  .fm-dash-card h2 {
    margin: 0 0 0.35rem;
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-subtle);
  }
  .fm-dash-card p {
    margin: 0;
    font-size: var(--text-sm);
  }
  .fm-dash-filter {
    margin-bottom: 1rem;
  }
  .fm-dash-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  .fm-dash-tabs .fm-segment-btn {
    flex: 1;
  }
  .fm-dash-columns {
    display: grid;
    gap: 1.25rem;
  }
  .fm-dash-column {
    display: none;
  }
  .fm-dash-column.is-active {
    display: block;
  }
  .fm-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
  }
  .fm-dash-item {
    padding: 0.85rem 1rem;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius-lg);
    background: var(--theme-session-outstanding);
  }
  .fm-dash-item-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .fm-status-chip {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 650;
    background: rgb(36 44 54 / 0.08);
  }
  .fm-status-chip.is-outstanding {
    background: var(--theme-session-outstanding);
  }
  .fm-status-chip.is-not-possible {
    background: var(--theme-session-not-possible);
  }
  .fm-status-chip.is-completed {
    background: var(--theme-session-completed);
  }
  @media (min-width: 768px) {
    .fm-board-row {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
    .fm-board-dl {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fm-dash-strip {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .fm-dash-tabs {
      display: none;
    }
    .fm-dash-columns {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: start;
    }
    .fm-dash-column {
      display: block;
    }
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
