.ff-page {
  min-width: 0;
  container-type: inline-size;
  color: var(--ink);
}
.ff-command, .ff-actions, .ff-modebar, .ff-toolbar, .ff-dates, .ff-field, .ff-service, .ff-disclosure,
.ff-notice, .ff-replay, .ff-open, .ff-state, .ff-local-label {
  display: flex;
  align-items: center;
}
.ff-command { justify-content: space-between; gap: 10px 16px; margin: 0 0 13px; }
.ff-page .ff-command h1 { margin: 0; font-size: 23px; font-weight: 680; line-height: 1.3; letter-spacing: -.035em; }
.ff-actions { margin-inline-start: auto; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.ff-page :is(.ff-actions,.ff-modebar,.ff-toolbar,.ff-dates) .btn { min-height: 30px; gap: 5px; padding: 4px 10px; font-size: var(--type-caption); }
.ff-page .btn:disabled { cursor: default; opacity: .52; }
.ff-surface { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: #fff; }
.ff-modebar { justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 7px 13px; border-bottom: 1px solid var(--line); background: linear-gradient(#fafbfc,#f3f4f7); }
.ff-modes { display: inline-flex; min-width: 0; margin: 0; padding: 2px; border: 1px solid #d3d6de; border-radius: var(--control-radius); background: #e9ebf0; }
.ff-sr, .ff-modes legend, .ff-modes input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.ff-modes label { position: relative; margin: 0; }
.ff-modes label span { display: flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid transparent; border-radius: var(--radius-small); color: #555d70; font-size: var(--type-caption); line-height: 1.4; font-weight: 550; white-space: nowrap; cursor: pointer; }
.ff-modes label svg, .ff-page :is(.ff-actions,.ff-toolbar,.ff-dates) .btn svg { width: 14px; height: 14px; }
.ff-modes input:checked + span { background: white; color: var(--blue-strong); border-color: #d1d5df; box-shadow: var(--control-shadow); }
.ff-modes input:focus-visible + span { outline: 2px solid var(--blue-strong); outline-offset: -1px; }
.ff-service { gap: 6px; color: var(--muted); font-size: var(--small-label); white-space: nowrap; }
.ff-service i, .ff-state i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ff-service i { color: #969ba8; }
.ff-service.active i { color: #398365; }
.ff-toolbar { flex-wrap: wrap; gap: 7px 16px; min-height: 45px; padding: 8px 13px; border-bottom: 1px solid #e0e3e9; background: #fcfcfd; }
.ff-scope-hint { color: var(--muted); font-size: var(--type-caption); }
.ff-field { gap: 6px; min-width: 0; margin: 0; color: #525b6f; font-size: var(--type-caption); font-weight: 520; white-space: nowrap; }
.ff-page .ff-field select, .ff-page .ff-field input { min-width: 0; max-width: 100%; padding: 2px 6px; }
.ff-page .ff-field select { min-width: 98px; max-width: 19ch; }
.ff-local-label, .ff-disclosure { gap: 5px; color: var(--muted); font-size: var(--type-caption); }
.ff-local-label { padding-right: 10px; border-right: 1px solid var(--line); font-weight: 560; }
.ff-disclosure { margin-left: auto; min-height: 27px; padding: 2px 3px; border: none; border-radius: var(--radius-small); background: transparent; font-weight: 510; }
.ff-toolbar :is(.ff-local-label,.ff-disclosure) svg { width: 14px; height: 14px; }
.ff-disclosure svg:last-child { width: 10px; }
.ff-disclosure[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.ff-disclosure:hover, .ff-open:hover { color: var(--blue-strong); background: #eef1f7; }
.ff-page :is(.ff-disclosure,.ff-field select,.ff-field input,.ff-check input,.ff-open):focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 1px; }
.ff-dates { flex-wrap: wrap; gap: 6px 15px; padding: 5px 13px 8px; border-bottom: 1px solid #e0e3e9; background: #fcfcfd; }
.ff-dates > span { color: var(--muted); font-size: var(--small-label); }
.ff-inspector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 19px; margin: 0; padding: 9px 13px; border-bottom: 1px solid #e0e3e9; background: #f7f8fa; }
.ff-inspector[hidden] { display: none; }
.ff-inspector > div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 4px; align-items: baseline; min-width: 0; }
.ff-inspector dt, .ff-inspector dd { margin: 0; font-size: var(--small-label); }
.ff-inspector dt { color: var(--muted); }
.ff-inspector dd { color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ff-notice { gap: 6px 10px; flex-wrap: wrap; padding: 6px 13px; border-bottom: 1px solid #e6d9bd; background: #fff9ec; color: #785a26; font-size: var(--type-caption); }
.ff-notice > svg { width: 14px; height: 14px; }
.ff-notice .btn { min-height: 20px; padding: 0 2px; font-size: var(--type-caption); }
.ff-notice small { font-size: var(--small-label); }
.ff-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ff-table :is(th,td) { text-align: left; border: 0; white-space: normal; overflow-wrap: anywhere; }
.ff-table thead th { height: 27px; padding: 3px 8px; background: #f4f5f8; border-bottom: 1px solid #e1e3e9; color: #646b7b; font-size: var(--small-label); line-height: 1.35; font-weight: 560; }
.ff-table tbody td { padding: 8px; border-bottom: 1px solid #e6e8ee; vertical-align: middle; color: var(--ink); font-size: var(--type-caption); }
.ff-table tbody tr:last-child td { border-bottom: 0; }
.ff-table tbody tr:hover { background: #fafbfe; }
.ff-table tbody tr:has(input:checked) { background: #eff3fb; }
.ff-table :is(th,td):first-child { padding-left: 13px; }
.ff-table :is(th,td):last-child { padding-right: 13px; }
.ff-table .ff-check { width: 45px; text-align: center; }
.ff-table .ff-owner { width: 19%; }
.ff-table .ff-time { width: 16%; }
.ff-table .ff-progress { width: 15%; }
.ff-table .ff-link { width: 94px; text-align: right; }
.ff-check input { width: 15px; height: 15px; margin: 0; vertical-align: middle; accent-color: var(--blue-strong); cursor: pointer; }
.ff-replay { min-width: 0; gap: 12px; }
.ff-replay > .scene-photo { position: static; width: 72px; height: 43px; flex: none; border: 1px solid #0000000f; border-radius: var(--radius-small); background: #e5e8ed; object-fit: cover; }
.ff-replay > .scene-cover-placeholder > small { display: none; }
.ff-replay > div { min-width: 0; }
.ff-replay strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); font-size: var(--type-body); line-height: 1.35; font-weight: 630; }
.ff-table small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--small-label); line-height: 1.35; }
.ff-owner > div { display: flex; align-items: center; gap: 5px; font-size: var(--type-caption); font-weight: 550; }
.ff-owner .desk-platform-icon { width: 15px; height: 15px; border-radius: var(--radius-small); }
.ff-owner small { padding-left: 20px; }
.ff-time { font-variant-numeric: tabular-nums; }
.ff-state { display: inline-flex; gap: 5px; color: #5a6477; font-size: var(--type-caption); white-space: nowrap; }
.ff-state.known, .ff-state.added, .ff-state.archive { color: #2c7358; }
.ff-state.new { color: #5f5d8b; }
.ff-state.pending { color: #916420; }
.ff-open { display: inline-flex; gap: 4px; min-height: 26px; padding: 1px 2px; border-radius: var(--radius-small); color: var(--blue-strong); font-size: var(--type-caption); white-space: nowrap; }
.ff-open svg { width: 11px; height: 11px; }
.ff-empty { display: grid; gap: 7px; place-items: center; align-content: center; min-height: 125px; padding: 15px; color: var(--muted); }
.ff-empty svg { width: 20px; height: 20px; }
.ff-empty p { margin: 0; font-size: var(--type-ui); }
@container (max-width: 730px) {
  .ff-toolbar { gap: 6px 10px; }
  .ff-field { gap: 3px; }
  .ff-page .ff-field select { min-width: 80px; }
  .ff-replay { gap: 8px; }
  .ff-replay > .scene-photo { width: 56px; height: 38px; }
  .ff-inspector { grid-template-columns: minmax(0,1fr); }
}
@container (max-width: 580px) {
  .ff-page .ff-command h1 { font-size: 21px; }
  .ff-table,.ff-table tbody { display: block; }
  .ff-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ff-table tbody tr { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) auto; grid-template-areas: "name name state" "owner time link"; align-items: center; gap: 4px 9px; padding: 9px 12px; }
  .ff-table tbody tr:has(.ff-check) { grid-template-columns: 15px minmax(0,1.6fr) minmax(0,1fr) auto; grid-template-areas: "check name name state" "check owner time link"; }
  .ff-table tbody tr + tr { border-top: 1px solid #e5e7ec; }
  .ff-table tbody td[class], .ff-table tbody td:first-child, .ff-table tbody td:last-child { width: auto; min-width: 0; padding: 0; border: none; }
  .ff-table td.ff-name { grid-area: name; }
  .ff-table td.ff-owner { grid-area: owner; }
  .ff-table td.ff-time { grid-area: time; }
  .ff-table td.ff-progress { grid-area: state; justify-self: end; }
  .ff-table td.ff-link { grid-area: link; justify-self: end; }
  .ff-table td.ff-check { grid-area: check; }
  .ff-owner small { padding-left: 0; }
  .ff-table small { margin-top: 1px; }
}
@container (max-width: 440px) {
  .ff-command { flex-wrap: wrap; gap: 6px; }
  .ff-page .ff-actions .btn { min-height: 27px; padding-inline: 7px; }
  .ff-modebar,.ff-toolbar,.ff-dates,.ff-inspector { padding-inline: 9px; }
  .ff-modebar { gap: 5px; }
  .ff-modes label span { padding: 3px 6px; }
  .ff-modes label svg { display: none; }
  .ff-toolbar { gap: 6px 8px; }
  .ff-field { gap: 3px; font-size: var(--small-label); }
  .ff-page .ff-field select { min-width: 76px; }
  .ff-command .ff-actions { gap: 4px; }
  .ff-replay > .scene-photo { width: 49px; height: 33px; }
  .ff-replay strong { font-size: var(--type-ui); }
  .ff-table tbody tr { padding: 8px 9px; gap: 4px 6px; }
}
