@font-face {
  font-family: "Urbanist Variable";
  src: url("/static/fonts/urbanist-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Variable";
  src: url("/static/fonts/geist-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Palette and geometry follow the supplied FMWorkflow Tarn references. */
:root {
  color-scheme: light;
  --fm-bg: #f2f2f0;
  --fm-surface: #ffffff;
  --fm-surface-alt: #f8f9f6;
  --fm-surface-sunk: #e8e9e5;
  --fm-fg: #121411;
  --fm-ink-secondary: #2b2d29;
  --fm-muted: #62655e;
  --fm-soft: #8b8e86;
  --fm-border: #e1e2dd;
  --fm-border-strong: #d1d3cd;
  --fm-primary: #3d8b2a;
  --fm-brand: #8cc152;
  --fm-primary-dark: #1f4a17;
  --fm-accent: var(--fm-dark);
  --fm-accent-hover: var(--fm-dark-secondary);
  --fm-accent-soft: #e3f1d4;
  --fm-attention: #d9691c;
  --fm-attention-bright: #f0a35b;
  --fm-attention-soft: #fbe3cc;
  --fm-attention-ink: #7b3c13;
  --fm-success: #2f7d32;
  --fm-danger: #b91c1c;
  --fm-dark: #1c1d1a;
  --fm-dark-secondary: #262824;
  --fm-sidebar: var(--fm-dark);
  --fm-radius-control: 10px;
  --fm-radius-pill: 999px;
  --fm-radius-panel: 14px;
  --fm-radius-feature: 25px;
  --fm-display: "Urbanist Variable", "Urbanist", "Avenir Next", system-ui, sans-serif;
  --fm-ui: "Geist Variable", "Geist", "Avenir Next", system-ui, sans-serif;
  --fm-mono: "Geist Variable", "Geist", ui-monospace, SFMono-Regular, monospace;
  --fm-shadow: 0 20px 48px -34px rgba(18, 20, 17, .32);
  --fm-shadow-soft: 0 12px 26px -20px rgba(18, 20, 17, .28);

  /* Compatibility aliases used by older templates. */
  --fm-black: var(--fm-fg);
  --fm-burgundy: var(--fm-ink-secondary);
  --fm-gold: var(--fm-primary);
  --fm-gold-light: var(--fm-brand);
  --fm-gold-muted: rgba(61, 139, 42, .30);
  --fm-gold-soft: var(--fm-accent-soft);
  --fm-gold-ring: rgba(140, 193, 82, .55);
  --fm-burgundy-muted: var(--fm-muted);
}

html { min-height: 100%; background: var(--fm-bg); scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  min-height: 100vh;
  background: var(--fm-bg);
  color: var(--fm-fg);
  font-family: var(--fm-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.bg-neutral-50 { background-color: var(--fm-bg); }
h1, h2, h3 { font-family: var(--fm-display); }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  border-radius: var(--fm-radius-control);
  border-color: var(--fm-border-strong);
  color: var(--fm-fg);
}
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
:where(a, button, input, select, textarea, summary):focus-visible,
.fm-focus:focus-visible {
  outline: 3px solid var(--fm-attention) !important;
  outline-offset: 3px;
}

.fm-app-shell { min-height: 100vh; }
.fm-mobile-menu-toggle { display: none; }
.fm-mobile-menu-close-icon { display: none; }
.fm-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px 18px;
  color: #ffffff;
  background: var(--fm-dark);
  box-shadow: 8px 0 24px rgba(18, 20, 17, .07);
}
.fm-brand { display: flex; align-items: center; min-width: 0; padding: 4px 12px 26px; color: #ffffff; text-decoration: none; }
.fm-brand-copy { min-width: 0; }
.fm-brand-copy strong { display: block; color: #ffffff; font: 650 22px/1 var(--fm-display); letter-spacing: -.035em; }
.fm-brand-initials { font-family: "Times New Roman", Times, serif; font-weight: 700; }
.fm-brand-copy small { display: block; margin-top: 11px; color: #aeb0a8; font-size: 12px; line-height: 1.4; }
.fm-nav-heading { padding: 0 12px 10px; color: #92958d; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.fm-nav { display: grid; gap: 4px; }
.fm-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--fm-radius-pill);
  color: #d4d5d0;
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
}
.fm-nav-link:hover { color: #ffffff; background: #2c2e29; }
.fm-nav-link[aria-current="page"] { color: var(--fm-fg); background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.fm-nav-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.fm-nav-divider { margin: 18px 12px; border-top: 1px solid #474943; }
.fm-confirm { width: min(420px, calc(100% - 32px)); margin: auto; padding: 24px; border: 1px solid var(--fm-border); border-radius: 16px; color: var(--fm-fg); background: #fff; box-shadow: 0 20px 60px #0003; }
.fm-confirm::backdrop { background: #0006; }
.fm-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.fm-confirm button { padding: 8px 20px; border: 1px solid var(--fm-border-strong); border-radius: var(--fm-radius-pill); }
.fm-confirm .fm-confirm-yes { color: #fff; background: var(--fm-black); }
.fm-confirm[data-style="interview"] .fm-confirm-yes { color: var(--fm-fg); background: #fff; }
.fm-confirm[data-style="interview"] .fm-confirm-yes:is(:hover, :focus-visible) { color: #fff; background: var(--fm-black); border-color: var(--fm-black); }
.fm-confirm[data-style="interview"] button[value="no"]:is(:hover, :focus-visible) { color: #fff; background: var(--fm-danger); border-color: var(--fm-danger); }
.fm-disclosure { border: 1px solid var(--fm-border-strong); border-radius: 12px; background: #fff; }
.fm-disclosure > summary { cursor: pointer; padding: 10px 14px; color: var(--fm-fg); font-weight: 550; }
.fm-disclosure[open] > summary { border-bottom: 1px solid var(--fm-border); }
.fm-pause-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--fm-border); border-radius: 999px; color: var(--fm-muted); background: var(--fm-surface-alt); font-weight: 600; cursor: pointer; list-style: none; }
.fm-pause-button::-webkit-details-marker { display: none; }
.fm-pause-button::before { content: "Ⅱ"; }
.fm-pause-button:hover { color: var(--fm-fg); background: var(--fm-surface); }
.fm-review-button { color: var(--fm-muted); background: var(--fm-surface-alt); border-color: var(--fm-border); }
.fm-review-button:hover, .fm-review-button:focus-visible { color: #fff; background: var(--fm-black); border-color: var(--fm-black); }
.fm-download-button { display: inline-block; padding: 6px 12px; border: 1px solid var(--fm-border-strong); border-radius: 8px; color: var(--fm-fg); background: #fff; font-size: 12px; }
.fm-download-button:hover, .fm-download-button:focus-visible { color: #fff; background: var(--fm-black); border-color: var(--fm-black); }
.fm-timeline-entries { max-height: 360px; overflow-y: auto; margin: 12px; }
.fm-sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #3a3c36; color: #bbbdb7; font-size: 11px; line-height: 1.55; }
.fm-sidebar-foot strong { display: block; margin-bottom: 3px; color: #ffffff; font-size: 12px; font-weight: 550; }
.fm-main { min-width: 0; min-height: 100vh; margin-left: 248px; padding: 0 34px 52px; }
.fm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  max-width: 1460px;
  margin: 0 auto 28px;
  border-bottom: 1px solid var(--fm-border);
  color: var(--fm-muted);
  font-size: 12px;
}
.fm-topbar-context { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm-topbar-context strong { color: var(--fm-fg); font-weight: 560; }
.fm-sidebar-foot-copy { color: #bbbdb7; font-size: 11px; line-height: 1.55; }
.fm-sidebar-foot-copy strong { display: block; margin-bottom: 3px; color: #ffffff; font-size: 12px; font-weight: 550; }
.fm-sidebar-account { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 16px; color: #ffffff; }
.fm-sidebar-account-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #51534c; border-radius: 50%; color: #e8e9e5; }
.fm-sidebar-account-avatar svg { width: 17px; height: 17px; }
.fm-sidebar-account-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.fm-sidebar-account-name { overflow: hidden; color: #ffffff; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.fm-sidebar-account-role { overflow: hidden; color: #aeb0a8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fm-sidebar-signout { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid transparent; border-radius: 50%; color: #aeb0a8; text-decoration: none; }
.fm-sidebar-signout svg { width: 17px; height: 17px; }
.fm-sidebar-signout:hover { border-color: #474943; background: #2c2e29; color: #ffffff; }
.fm-sidebar-signout:focus-visible { outline: 3px solid var(--fm-moss-bright); outline-offset: 3px; }
.fm-content-wrap { width: 100%; min-width: 0; margin: 0 auto; }
.fm-attention-scroll { max-height: min(360px, 48vh); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.fm-attention-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--fm-surface-alt); }
.fm-client-list-tabs { display: flex; align-items: stretch; gap: clamp(12px, 2vw, 24px); overflow-x: auto; padding: 0 20px; border-bottom: 1px solid var(--fm-border); background: var(--fm-surface); scrollbar-width: thin; }
.fm-client-status-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 58px; flex: none; margin-bottom: -1px; padding: 0 0 2px; border-bottom: 2px solid transparent; color: var(--fm-muted); white-space: nowrap; }
.fm-client-status-tab:focus-visible { outline: 3px solid var(--fm-attention); outline-offset: -3px; }
.fm-client-tab-icon { width: 17px; height: 17px; flex: none; }
.fm-client-list-scroll { height: clamp(240px, 52vh, 520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.fm-client-tab-panel { min-height: 100%; padding: 14px 20px 20px; }
.fm-client-table-wrap { max-width: 100%; overflow-x: auto; }
.fm-client-table-wrap > table { display: table; width: 100%; min-width: 620px; max-width: none; overflow: visible; }
.fm-content-wrap h1, .fm-content-wrap h2, .fm-content-wrap h3 { font-family: var(--fm-display); letter-spacing: -.025em; }
.fm-content-wrap :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  border-radius: var(--fm-radius-control);
  border-color: var(--fm-border-strong);
  background-color: var(--fm-surface);
  color: var(--fm-fg);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fm-content-wrap :where(input, select, textarea)::placeholder { color: var(--fm-muted); opacity: .82; }
.fm-content-wrap :where(input, select, textarea):focus,
.fm-content-wrap .fm-focus:focus { outline: none; border-color: var(--fm-primary) !important; box-shadow: 0 0 0 3px rgba(61, 139, 42, .12); }
.fm-content-wrap .fm-btn-primary { border: 1px solid var(--fm-dark); border-radius: var(--fm-radius-pill); background: var(--fm-dark); color: #ffffff; font-weight: 560; box-shadow: 0 5px 14px rgba(18, 20, 17, .14); }
.fm-content-wrap .fm-btn-primary:hover { border-color: var(--fm-dark-secondary); background: var(--fm-dark-secondary); box-shadow: 0 9px 18px rgba(18, 20, 17, .18); }
.fm-content-wrap .fm-link { color: var(--fm-ink-secondary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.fm-content-wrap .fm-link:hover { color: var(--fm-primary-dark); text-decoration-color: currentColor; }
.fm-content-wrap :where(.border-neutral-100, .border-neutral-200, .border-neutral-300) { border-color: var(--fm-border); }
.fm-content-wrap :where(.rounded-lg) { border-radius: var(--fm-radius-control); }
.fm-content-wrap :where(.rounded-xl) { border-radius: var(--fm-radius-panel); }
.fm-content-wrap :where(.rounded-2xl) { border-radius: var(--fm-radius-feature); }
.fm-content-wrap table { font-variant-numeric: tabular-nums; }
.fm-content-wrap table thead { color: var(--fm-muted); }
.fm-content-wrap tbody tr { transition: background-color 130ms ease; }
.fm-content-wrap tbody tr:hover { background-color: var(--fm-surface-alt); }
.fm-content-wrap [class~="group/file"] > :where(button, a) { opacity: 1; }
.fm-content-wrap .fm-status-warning { color: var(--fm-attention-ink); }
.fm-auth-main { min-height: 100vh; padding: 28px 18px; }
#toast-card { border-radius: var(--fm-radius-panel); border-color: var(--fm-border); background: var(--fm-surface); color: var(--fm-fg); }
.fm-portal-frame { min-height: 100vh; align-items: flex-start; padding-inline: clamp(12px, 4vw, 24px); background: var(--fm-bg); }
.fm-portal-card { border-color: var(--fm-border); border-radius: var(--fm-radius-feature); box-shadow: var(--fm-shadow-soft); }
#assistant-panel { max-height: calc(100dvh - 8rem); border-color: var(--fm-border); }
#assistant-toggle, #assistant-send { border-color: var(--fm-border); }
.kt-skeleton-line { background-color: var(--fm-accent-soft); }

@media (max-width: 820px) {
  .fm-mobile-menu-toggle {
    position: fixed;
    z-index: 62;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #4b4d46;
    border-radius: 50%;
    background: var(--fm-dark);
    color: #ffffff;
    box-shadow: 0 7px 20px rgba(18, 20, 17, .24);
    cursor: pointer;
  }
  .fm-mobile-menu-toggle:hover { background: var(--fm-dark-secondary); }
  .fm-mobile-menu-toggle:focus-visible { outline: 3px solid var(--fm-moss-bright); outline-offset: 3px; }
  .fm-mobile-menu-toggle svg { width: 21px; height: 21px; }
  .fm-mobile-menu-toggle[aria-expanded="true"] .fm-mobile-menu-open-icon { display: none; }
  .fm-mobile-menu-toggle[aria-expanded="true"] .fm-mobile-menu-close-icon { display: block; }
  .fm-sidebar {
    z-index: 60;
    top: calc(max(12px, env(safe-area-inset-top)) + 60px);
    right: auto;
    bottom: auto;
    left: max(12px, env(safe-area-inset-left));
    width: min(280px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - 84px);
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 14px 14px;
    border: 1px solid #454741;
    border-radius: var(--fm-radius-feature);
    box-shadow: 0 18px 44px rgba(18, 20, 17, .28);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
  }
  .fm-sidebar.is-open { display: flex; pointer-events: auto; }
  .fm-brand { display: flex; padding: 4px 12px 20px; }
  .fm-nav-heading { display: block; }
  .fm-sidebar-foot-copy { display: block; }
  .fm-sidebar-foot { display: block; width: auto; margin-top: 14px; padding: 14px 10px 0; border-top: 1px solid #474943; }
  .fm-sidebar-account { justify-content: flex-start; width: auto; height: auto; gap: 10px; margin-top: 16px; }
  .fm-sidebar-account-avatar { display: grid; }
  .fm-sidebar-account-copy { display: flex; }
  .fm-sidebar-signout { width: 48px; height: 48px; border-color: #474943; background: #262824; color: #e8e9e5; }
  .fm-sidebar-signout svg { width: 20px; height: 20px; }
  .fm-nav, .fm-nav-foot { display: grid; gap: 4px; width: auto; overflow: visible; padding: 0; }
  .fm-nav-foot { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #474943; }
  .fm-nav-divider { display: none; }
  .fm-nav-link { justify-content: flex-start; width: auto; height: auto; min-height: 48px; flex: none; padding: 0 12px; border-radius: var(--fm-radius-pill); }
  .fm-nav-link span { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; border: 0; }
  .fm-nav-link svg { width: 19px; height: 19px; }
  .fm-main { margin-left: 0; padding-right: 26px; padding-left: 26px; }
  .fm-topbar { min-height: 64px; margin-bottom: 22px; padding-left: 60px; }
}
@media (max-width: 560px) {
  .fm-client-list-tabs { gap: 2px; overflow-x: visible; padding: 0 8px; scrollbar-width: none; }
  .fm-client-status-tab { min-width: 0; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; font-size: 12px; line-height: 1.25; text-align: center; white-space: normal; }
  .fm-client-tab-icon { width: 18px; height: 18px; }
  .fm-main { margin-left: 0; padding: 0 14px 36px; }
  .fm-topbar { align-items: flex-start; gap: 8px; min-height: 58px; padding: 12px 0; }
  .fm-topbar-context { display: none; }
  .fm-content-wrap { overflow-wrap: anywhere; padding-right: 1rem !important; padding-left: 1rem !important; }
  .fm-content-wrap :where(table) { display: block; max-width: 100%; overflow-x: auto; }
  .fm-content-wrap .overflow-x-auto > table { min-width: max-content; max-width: none; }
  .fm-content-wrap :where(form) { min-width: 0; }
  .fm-content-wrap :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { max-width: 100%; }
  .fm-portal-card { padding: 1rem !important; }
  #assistant-root { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  #assistant-panel { max-width: calc(100vw - 24px); max-height: calc(100dvh - 72px); }
  .fm-portal-frame { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .fm-auth-main { padding: 18px 12px; }
}
.fm-sow-evaluation { container-type: inline-size; }
.fm-sow-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.fm-sow-overview { position: sticky; top: 0; z-index: 10; padding: 8px 0; background: var(--fm-surface); }
.fm-sow-save-status { color: var(--fm-muted); font-size: 12px; margin: -8px 0 14px; text-align: right; }
.fm-sow-figure:focus-within { scroll-margin-top: 130px; }
.fm-file-context { padding: 12px 16px; border-bottom: 1px solid var(--fm-border); background: var(--fm-surface-alt); }
.fm-file-context strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.fm-file-context span, .fm-file-context p { font-size: 12px; color: var(--fm-muted); overflow-wrap: anywhere; }
.fm-file-context p { margin: 6px 0 0; }
.fm-file-figure-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--fm-border); font-size: 12px; color: var(--fm-muted); }
.fm-file-context[hidden], .fm-file-figure-nav[hidden], [data-sow-edit-error][hidden] { display: none; }
.fm-sow-overview > div { padding: 16px; border: 1px solid var(--fm-border, #e5e5e5); border-radius: 12px; background: #fafaf9; min-width: 0; }
.fm-sow-overview small, .fm-sow-source small, .fm-sow-figure-amount small { display: block; color: #737373; font-size: 11px; font-weight: 400; margin-bottom: 4px; }
.fm-sow-overview strong { display: block; font-size: clamp(15px, 1.4vw, 22px); font-weight: 600; font-variant-numeric: tabular-nums; }
.fm-sow-sources { margin: 16px 0; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; }
.fm-sow-source + .fm-sow-source { border-top: 1px solid #e5e5e5; }
.fm-sow-source > summary { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) 16px; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.fm-sow-source > summary::-webkit-details-marker { display: none; }
.fm-sow-source > summary:hover { background: #fafaf9; }
.fm-sow-source > summary > span { min-width: 0; overflow-wrap: anywhere; }
.fm-sow-source-name { font-weight: 600; }
.fm-sow-source-name small { margin-top: 4px; margin-bottom: 0; }
.fm-sow-source[open] > summary .fm-sow-source-chevron { transform: rotate(180deg); }
.fm-sow-source-body { padding: 0 16px 16px; }
.fm-sow-figure { padding: 14px 0; border-top: 1px solid #ededed; }
.fm-sow-figure[hidden], .fm-sow-pagination[hidden] { display: none; }
.fm-sow-figure-main { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.fm-sow-figure-description { min-width: 0; flex: 1; }
.fm-sow-figure-note { color: #262626; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.fm-sow-file { color: #737373; font-size: 11px; overflow-wrap: anywhere; margin: 4px 0; }
.fm-sow-file a { text-decoration: underline; text-underline-offset: 3px; }
.fm-sow-figure-amount { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fm-sow-figure-amount small { margin: 4px 0 0; max-width: 180px; }
.fm-sow-excluded { color: #737373; text-decoration: line-through; }
.fm-sow-tag { display: inline-block; border: 1px solid #e7dbbe; border-radius: 5px; padding: 2px 5px; margin: 4px 4px 0 0; color: #7c571d; font-size: 10px; }
.fm-sow-tag-included { color: var(--fm-muted); border-color: var(--fm-border); background: var(--fm-surface-alt); }
.fm-sow-figure-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.fm-sow-action { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border: 1px solid #d4d4d4; border-radius: 7px; padding: 5px 10px; background: white; color: #404040; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; }
.fm-sow-action:hover { background: var(--fm-black); color: white; border-color: var(--fm-black); }
.fm-sow-action-remove:hover { background: #b91c1c; border-color: #b91c1c; }
.fm-sow-action:focus-visible, .fm-sow-source > summary:focus-visible { outline: 2px solid #525252; outline-offset: 3px; }
.fm-sow-action:disabled { opacity: .4; cursor: default; background: white; color: #737373; border-color: #d4d4d4; }
.fm-sow-calculation { font-size: 11px; color: #737373; max-width: 100%; }
.fm-sow-calculation summary { cursor: pointer; padding: 8px 4px; }
.fm-sow-calculation p { padding: 4px; overflow-wrap: anywhere; }
.fm-sow-pagination { display: flex; align-items: center; gap: 8px; padding-top: 10px; font-size: 11px; color: #737373; }
.fm-sow-pagination > span { margin-right: auto; }
.fm-sow-notice { border: 1px solid #e7dbbe; border-radius: 8px; background: #fffbeb; color: #7c571d; padding: 10px 12px; font-size: 12px; margin: 12px 0; }
@container (max-width: 480px) {
  .fm-sow-evaluation > summary, .fm-sow-evaluation > div { padding-left: 12px; padding-right: 12px; }
  .fm-sow-evaluation > summary > div, .fm-sow-evaluation > div > div:first-child, .fm-sow-evaluation form { flex-wrap: wrap; }
  .fm-sow-evaluation > summary > div > span { flex-shrink: 1; white-space: normal; overflow-wrap: anywhere; }
  .fm-sow-evaluation form > input:not([type="hidden"]) { min-width: 0; }
  .fm-sow-evaluation form > button { max-width: 100%; white-space: normal; }
  .fm-sow-overview { position: static; grid-template-columns: 1fr; gap: 8px; }
  .fm-sow-overview > div { padding: 12px; }
  .fm-sow-overview strong { font-size: 18px; overflow-wrap: anywhere; }
  .fm-sow-source > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 16px; padding: 12px; gap: 8px; }
  .fm-sow-source-name { grid-column: 1 / 3; }
  .fm-sow-source-chevron { grid-column: 3; grid-row: 1 / 3; }
  .fm-sow-source-body { padding: 0 12px 12px; }
  .fm-sow-figure-main { flex-direction: column; gap: 8px; }
  .fm-sow-figure-amount { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kt-skeleton-line { animation: none !important; }
}
