/* getcompliant: the real workspace (accounts contract 2026-09-27). The head script sets html[data-fk-mode=real].
   Everything here is scoped to it, except the Google slot on the sign in card and the sample's "Open your workspace"
   menu item, both on sample mode pages. */

/* ---------- the wait: while cloud.js loads the workspace, only this line shows, however long it takes ----------
   It fades in after 400 ms, so a fast load never shows it. Text only. */
#fk-wait{display:none}
html.fk-real-wait,html.fk-real-wait body{height:auto;min-height:100%;overflow:auto}
html.fk-real-wait body{display:block;background:var(--canvas)}
html.fk-real-wait body>.topbar,html.fk-real-wait body>.shell,html.fk-real-wait body>.notification-scrim,html.fk-real-wait .cmd-scrim,html.fk-real-wait #signin,html.fk-real-wait #fk-intro{display:none!important}
html.fk-real-wait #fk-wait{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:100dvh;margin:0;padding:max(28px,env(safe-area-inset-top)) 16px max(28px,env(safe-area-inset-bottom));font-size:13px;line-height:1.55;color:var(--muted);text-align:center;animation:fk-wait-in .5s cubic-bezier(.33,0,.2,1) .4s backwards}
#fk-wait button,#fk-wait a{min-height:44px}
@keyframes fk-wait-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html.fk-real-wait #fk-wait{animation-duration:1ms}}

/* ---------- the no access card: cloud.js draws it in #si-card and adds fk-signed-out (never set otherwise in real
   mode), which shows it alone, whatever else is still on html; no sample accounts under it ---------- */
html[data-fk-mode=real].fk-signed-out #signin{display:flex!important}
html[data-fk-mode=real].fk-signed-out #fk-wait,html[data-fk-mode=real].fk-signed-out #fk-intro{display:none!important}
html[data-fk-mode=real].fk-signed-out,html[data-fk-mode=real].fk-signed-out body{overflow:auto}
html[data-fk-mode=real] #signin .si-demo,html[data-fk-mode=real] #signin .si-foot{display:none}
html[data-fk-mode=real] #si-card [data-si-signout]{width:100%;justify-content:center;min-height:44px;margin-top:4px}

/* ---------- the sign in card: Google's own button sits in a slot that keeps its height, so nothing moves when it draws ---------- */
.si-google{min-height:44px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.si-google-note{font-size:12px;color:var(--muted);line-height:1.5;text-align:center}
/* an invite link waiting to be used, above the providers; and, on the no access card, the line when it did not work */
.si-claim{font-size:13px;font-weight:500;line-height:1.55;color:var(--ink);margin:-10px 0 18px}
html[data-fk-mode=real] .si-noaccess .si-claim-failed{margin:6px 0 12px}

/* ---------- the sample's chrome that the real workspace does not have ---------- */
/* the Admin | User switch is back for super admins (contract 20.0, 6): their preview of the user view. A team member's
   frame is role user, which hides it (frame.css) */
html[data-fk-mode=real] .sample-tag,html[data-fk-mode=real] .heading .period,html[data-fk-mode=real] #as-of,html[data-fk-mode=real] .preview-controls,
html[data-fk-mode=real] [data-pm=reset],html[data-fk-mode=real] [data-pm=replay],html[data-fk-mode=real] #pm-accounts,html[data-fk-mode=real] #nav-count,html[data-fk-mode=real] #notice-tab-assigned,
html[data-fk-mode=real] #profile-menu [role=menuitem][hidden]{display:none!important}

/* ---------- empty states: the .empty primitive, its own first step (primary), the sample link and a note ---------- */
.fk-real-empty .secondary{min-height:44px;text-decoration:none;color:var(--ink)}
.fk-real-empty .secondary svg{width:14px;height:14px}
.fk-real-empty .primary{min-height:44px}
.fk-real-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.fk-real-empty .primary svg{width:14px;height:14px}
.fk-real-empty .fk-real-empty-note{font-size:11px;color:#8b908c;margin:14px 0 0}

/* ---------- rows: Reports (and the text inside Manage team's rows) ---------- */
/* :where keeps these at one class, as they were before Manage team's access rows were left out of them, so the count
   and activity rows below still set their own columns */
.fk-real-rows{border-top:1px solid var(--line)}
.fk-real-row:where(:not(.fk-access-row)){width:100%;min-height:56px;text-align:left;display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;align-items:center;gap:14px;padding:12px 8px 12px 6px;border-bottom:1px solid var(--line);transition:background .15s}
.fk-real-row:where(:not(.fk-access-row)):hover{background:#fafbf9}
.fk-real-row:where(:not(.fk-access-row)) .avatar{width:32px;height:32px;font-size:10px}
.fk-real-text{display:block;min-width:0}
.fk-real-text .fk-pp-name,.fk-real-text .fk-pp-meta{display:block;overflow-wrap:anywhere}
.fk-real-person .fk-pp-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.fk-real-row:where(:not(.fk-access-row)) .row-arrow{display:grid;place-items:center;color:#a7afa7;transition:transform .2s}
.fk-real-row:where(:not(.fk-access-row)) .row-arrow svg{width:16px;height:16px}
.fk-real-row:where(:not(.fk-access-row)):hover .row-arrow{transform:translateX(3px)}
.fk-real-count{min-height:48px;grid-template-columns:minmax(0,1fr) auto 16px;padding-left:8px}
.fk-real-label{font-size:13px;color:#4f5652}
.fk-real-n{font-size:15px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.fk-real-act{grid-template-columns:34px minmax(0,1fr) 16px}
.fk-real-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:#6b716d}
.fk-real-icon svg{width:16px;height:16px}
.fk-real-later,.fk-real-foot{margin-top:14px}
/* Manage team wears the sample's premium Manage team (frame.css): the section head, the card and the Admin access rows,
   with the same container, so its rows fold the same way at 390px. The page heading keeps its full width, since the
   sample's Create team and Add team member are not here */
.fk-real-team{container:fkteam/inline-size;--quiet:#666c68;--body:#3f4542}
.fk-real-team .fk-real-rows{border-top:1px solid var(--line);padding:6px}
.fk-real-team .fk-pp-name{font-size:14px;font-weight:500;letter-spacing:-.01em}
.fk-real-team .fk-pp-meta{font-size:12.5px;color:var(--quiet);margin-top:1px}
.fk-real-profile .fk-pp-head{margin-bottom:6px}
/* names and addresses come from Google or the email itself, so one may be a single long word: the profile wraps them
   as the rows do, and the sidebar's profile button and menu keep them inside at 390px */
.fk-real-profile .fk-pp-head h3,.fk-real-profile>.sub{min-width:0;overflow-wrap:anywhere}
html[data-fk-mode=real] .profile-name{overflow:hidden}
/* the role under the name stays on one line too: small's text-wrap:pretty (index.html) turns wrapping back on, so in
   the collapsed rail, where the hidden name is 0px wide, "Super admin" took two lines, the profile grew 12px and on a
   short screen squeezed the brand and moved the whole menu 6px as the rail collapsed (QA 2026-09-30) */
html[data-fk-mode=real] .profile-name-text,html[data-fk-mode=real] .profile-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-fk-mode=real] .profile-menu-head strong,html[data-fk-mode=real] .profile-menu-head span{overflow-wrap:anywhere}
/* the same names on the other pages that show who did what: the welcome, Notifications, a document's details and
   versions, and a policy's list row, heading line, details and versions. Only the value wraps; a label keeps its width */
html[data-fk-mode=real] #fk-intro-sub,html[data-fk-mode=real] .notice-title,
html[data-fk-mode=real] #fk-page :is(.fk-fields dd,.fk-ver small,.fk-row p,.fk-row .due,.fk-doc>.sub){overflow-wrap:anywhere}
.fk-real-profile .back{min-height:44px;margin-bottom:4px}
@media(prefers-reduced-motion:reduce){.fk-real-row,.fk-real-row .row-arrow{transition:none}}

/* ---------- Notifications: the line under the newest 20 saying how many earlier items it leaves out ---------- */
html[data-fk-mode=real] .notice-more{font-size:12px;line-height:1.6;color:#7d8777;padding:16px 0 6px}

/* ---------- Case Vault's Link a board, Miro not connected: its one action is a full size tap target ---------- */
html[data-fk-mode=real] .fk-miro-pick-connect .secondary{min-height:44px}

/* ---------- the sample's way back into the real workspace (contract 14): in the profile menu only while a real session
   is stored in this browser; a full size tap target ---------- */
#pm-workspace{display:flex;align-items:center;min-height:44px}

/* ---------- contract 15: Manage team, Manage modules, Enroll team and Reports on the shared roster and modules ---------- */
/* the sample's Manage modules section (its course card and film) never shows in the workspace, even after a lesson
   preview closes (the page script unhides it); Manage modules is a page of its own here */
html[data-fk-mode=real] #training{display:none!important}
/* Manage team: the roster's plain line, the strip as three quiet figures (none of them a filter), and an empty roster */
.fk-real-roster-note{margin:-6px 0 16px;font-size:12.5px;color:#666c68;line-height:1.55}
.fk-real-strip .fk-metric{min-height:0}
.fk-real-roster-empty{padding:22px 24px}
.fk-real-roster-empty p{font-size:13px;color:#666c68;line-height:1.6;max-width:520px}
.fk-real-roster-empty .fk-real-roster-empty-t{font-size:15px;font-weight:500;color:var(--ink);letter-spacing:-.01em;margin-bottom:4px}
#fk-people .fk-real-status{min-width:0}
#fk-people .fk-real-status>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#fk-people .fk-pp-trow .fk-real-status>span{white-space:normal}
.fk-real-mods-label{margin:18px 0 4px}
#fk-people .fk-pp-detail .fk-pp-sub,#fk-people .fk-pp-detail .fk-pp-head h3,#fk-people .fk-pp-mod>span:first-child{overflow-wrap:anywhere;min-width:0}
#fk-people .fk-pp-detail .fk-member-team{margin-top:18px}
/* the member form's Starts, and the forms' controls, are full size tap targets */
html[data-fk-mode=real] .fk-member-form select,html[data-fk-mode=real] .fk-member-form input{min-height:44px}
html[data-fk-mode=real] #fk-people :is(.back,.fk-actions button){min-height:44px}
html[data-fk-mode=real] #fk-people .fk-actions .text-btn{min-width:44px;padding-left:8px;padding-right:8px}
/* Manage modules: the library is the page */
.fk-real-library{margin-top:0}
.fk-real-lib-note{margin-top:16px}
.fk-real-lib-row h3{overflow-wrap:anywhere}
/* the builder's template previews: which template to read, then its questions and answers, gliding open under them */
/* one quiet way into the preview under the chips; the template names are the preview's own tabs, so the chips'
   names show once while it is shut */
.fk-tpl-pvs{margin-top:2px}
.fk-tpl-pv{min-height:44px;font-size:12px;color:#4f5652;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c6cac5}
.fk-tpl-pv[aria-expanded="true"]{color:var(--ink);text-decoration-color:currentColor}
/* the names sit side by side at every width; on a phone each wraps within its own tab rather than onto a line of its own */
.fk-tpl-pv-tabs{display:flex;gap:0 20px;margin:-12px 0 12px;border-bottom:1px solid var(--line)}
.fk-tpl-pv-tab{flex:0 1 auto;min-width:0;min-height:44px;padding:6px 0;font-size:12.5px;line-height:1.3;font-weight:500;color:#6b716d;text-align:left;box-shadow:inset 0 -2px 0 transparent;transition:color .15s,box-shadow .2s}
.fk-tpl-pv-tab[aria-pressed="true"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--ink)}
@media(hover:hover){.fk-tpl-pv-tab:not([aria-pressed="true"]):hover{color:var(--ink)}}
.fk-tpl-preview{margin-top:6px}
.fk-tpl-pv-in{border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:#fcfcfb}
.fk-tpl-pv-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:8px}
.fk-tpl-pv-head b{font-size:14px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.fk-tpl-pv-head span{font-size:12px;color:#6b716d}
.fk-tpl-pv-obj{font-size:12.5px;color:#4f5652;line-height:1.6;margin-bottom:10px}
.fk-tpl-pv-qs{margin:0;padding:0 0 0 18px;display:grid;gap:14px}
.fk-tpl-pv-qs>li{font-size:12.5px;color:#3f4542}
.fk-tpl-pv-q{font-weight:500;line-height:1.5}
.fk-tpl-pv-s{color:#6b716d;line-height:1.55;margin:2px 0 6px}
.fk-tpl-pv-qs ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.fk-tpl-pv-qs ul li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;color:#555c58;line-height:1.5}
.fk-tpl-pv-qs ul li.ok{color:var(--ink)}
.fk-tpl-pv-qs ul li small{font-size:10.5px;color:var(--green);margin-left:6px}
.fk-tpl-pv-k{font:10px var(--mono);color:#8b908c;padding-top:2px}
.fk-tpl-pv-r{font-size:11px;color:#8b908c;margin-top:6px}
.fk-tpl-pv-qs p,.fk-tpl-pv-qs span{overflow-wrap:anywhere}
.fk-tpl-pv-in .fk-actions{margin-top:14px}
.fk-tpl-pv-in .fk-actions button{min-height:44px}
/* every control in the builder is a full size tap target in the workspace */
html[data-fk-mode=real] #fk-builder :is(.fk-tpl,.fk-steps button,.fk-q-tools button,.fk-opt-key,.fk-add,.fk-actions button,.text-btn,.fk-tpl-pv-tab){min-height:44px}
html[data-fk-mode=real] #fk-builder :is(.fk-opt-key,.fk-steps button,.fk-q-tools button,.text-btn){min-width:44px;justify-content:center}
html[data-fk-mode=real] #stage .stage-close{min-height:44px;padding:0 8px;margin-right:-8px}
html[data-fk-mode=real] .fk-real-library #fk-build{min-height:44px}
html[data-fk-mode=real] #fk-builder :is(input:not([type=checkbox]),select){min-height:44px}
html[data-fk-mode=real] .fk-published .fk-actions button{min-height:44px}
/* Enroll team: the reminders are kept, never sent yet, and it says so under them */
.fk-en-saved{margin-top:12px}
.fk-en-roster{min-height:44px;margin-left:4px}
html[data-fk-mode=real] .fk-enroll-form :is(.fk-team,select,.fk-actions button){min-height:44px}
html[data-fk-mode=real] .fk-en-view :is(.back,.fk-actions button,.fk-en-more){min-height:44px}
html[data-fk-mode=real] #fk-page .fk-doc>.back{min-height:44px}
html[data-fk-mode=real] .fk-enroll-form .fk-actions .text-btn{min-width:44px;justify-content:center}
/* Reports: completions are one quiet line in the Training block, not a row that opens anything */
.fk-real-static{cursor:default}
.fk-real-static:hover{background:none}
/* the label keeps its width and the quiet words wrap beside it, so at 390 the two never run together */
.fk-real-count.fk-real-static{grid-template-columns:auto minmax(0,1fr)}
.fk-real-quiet{font-size:12px;color:#6b716d;text-align:right}

/* ---------- contract 17: edit and remove in the workspace ---------- */
/* the inline confirm (fk.confirmHtml), as Case Vault's Miro Disconnect asks: one line, the action, a way to keep things */
.fk-confirm{display:grid;gap:10px}
.fk-confirm-text{font-size:13px;line-height:1.55;color:var(--ink);max-width:560px;overflow-wrap:anywhere}
.fk-confirm .fk-actions{margin:0}
html[data-fk-mode=real] :is(.fk-pp-acts,.fk-team-tools,.fk-bdiscard,.fk-en-acts,.fk-en-ended) :is(button,select,input){min-height:44px}
html[data-fk-mode=real] :is(.fk-pp-acts,.fk-team-tools,.fk-bdiscard,.fk-en-acts) .text-btn{min-width:44px;padding-left:8px;padding-right:8px;justify-content:center}
/* a member: Edit details and Remove from roster under their team; in the Undo hold their name is struck through */
.fk-pp-acts{margin:4px 0 0}
.fk-pp-acts .primary,.fk-pp-acts .secondary{padding-left:16px;padding-right:16px}
.fk-pp-removing .fk-pp-head h3{color:#6b716d;text-decoration:line-through;text-decoration-color:#b9bdb8;transition:color .15s}
@media(prefers-reduced-motion:reduce){.fk-pp-removing .fk-pp-head h3{transition:none}}
/* a team's Rename team and Delete team, at the foot of its open card */
.fk-team-tools{margin:2px 10px 0;padding:6px 8px 12px;border-top:1px solid var(--line)}
.fk-team-tools .fk-actions{gap:4px 12px}
.fk-team-tools .fk-confirm{padding-top:8px}
.fk-team-rename{display:grid;gap:10px;max-width:420px;padding-top:8px}
.fk-team-move{max-width:320px}
/* Manage modules: Discard draft on its own line under the builder's actions */
.fk-bdiscard{flex:1 1 100%;display:flex}
.fk-bdiscard .fk-confirm{flex:1}

/* ---------- Case Vault: the Sonar tile under Notifications (contract 18; the real workspace only) ----------
   real.js turns the Case Vault link into this tile at the foot of the admin menu; the sample's menu is never touched.
   The design source is research/casevault-sonar/Sonar.dc.html, with its look, sizes and timings. Only transform and
   opacity move: the rings, the glow, the disc's swell and dial, and every change of state or of the rail is a
   crossfade or a scale. In normal flow, never fixed or sticky. States: .active (selected), [data-new] (what the label
   and the badge say), [data-beat] (the new state's animations), [data-rest] (selected and settled: everything stops),
   [data-still] (reduced motion) and body.nav-collapsed (the rail). real.js only ever swaps [data-beat], replays it or
   sets [data-rest] on a frame where every ring, glow, swell, dial and badge that shows is at rest, so nothing is cut. */
html[data-fk-mode=real] .nav a.sonar{--sn-band:150px;--u:calc(var(--sn-band) / 150);grid-column:1/-1;position:relative;display:block;min-width:0;min-height:44px;margin-top:22px;padding:var(--sn-band) 0 0;border-radius:14px;background:none;color:var(--ink);font-weight:400;text-decoration:none;white-space:normal;overflow:visible;isolation:isolate}
html[data-fk-mode=real] .sonar .sn-bgs{position:absolute;inset:0;border-radius:inherit;pointer-events:none;transition:opacity .22s ease .16s}
html[data-fk-mode=real] .sonar .sn-bg{position:absolute;inset:0;border-radius:inherit;background:#f7f8f6}
html[data-fk-mode=real] .sonar .sn-bg-sel{background:#eceeea;opacity:0;transition:opacity .24s cubic-bezier(.33,0,.2,1)}
/* the scope: a band 150px tall (--sn-band) the width of the sidebar (the rail's rings reach past the tile), centred on
   the tile. Every size in it is in --u (1px in a 150px band), so on a short screen it is the same drawing, smaller */
html[data-fk-mode=real] .sonar .sn-clip{position:absolute;left:-12px;right:-12px;top:0;height:var(--sn-band);overflow:hidden;pointer-events:none}
html[data-fk-mode=real] .sonar .sn-scope{position:absolute;left:50%;top:calc(var(--sn-band) / 2);width:0;height:0}
html[data-fk-mode=real] .sonar :is(.sn-wide,.sn-narrow,.sn-rings,.sn-core){position:absolute;left:0;top:0;width:0;height:0}
html[data-fk-mode=real] .sonar :is(.sn-field,.sn-guide,.sn-dash,.sn-ticks,.sn-glow,.sn-ping,.sn-breathe,.sn-halo-ring,.sn-focus,.sn-lift){position:absolute;left:0;top:0;width:var(--d);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--d) / -2);border-radius:50%;box-sizing:border-box}
html[data-fk-mode=real] .sonar .sn-field{--d:var(--sn-band);width:calc(260 * var(--u));margin-left:calc(-130 * var(--u));border-radius:0;background:radial-gradient(circle at 50% 50%,rgba(47,138,99,.06) 0,rgba(47,138,99,0) calc(78 * var(--u)));transition:opacity .3s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-field-sel{background:radial-gradient(circle at 50% 50%,rgba(47,138,99,.10) 0,rgba(47,138,99,0) calc(81 * var(--u)));opacity:0}
html[data-fk-mode=real] .sonar .sn-guide{--d:calc(88 * var(--u));border:1px solid rgba(35,37,39,.07);opacity:.64;transition:opacity .3s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-dash{--d:calc(140 * var(--u));border:1px dashed rgba(35,37,39,.08)}
html[data-fk-mode=real] .sonar .sn-ticks{--d:calc(140 * var(--u));border-radius:0;fill:none;stroke:rgba(35,37,39,.16);stroke-width:1}
html[data-fk-mode=real] .sonar .sn-glow{--d:calc(110 * var(--u));background:radial-gradient(circle,rgba(47,138,99,.20) 0,rgba(47,138,99,.08) 42%,rgba(47,138,99,0) 68%);opacity:0;transform:scale(.8);will-change:transform,opacity}
html[data-fk-mode=real] .sonar .sn-ping{--d:calc(140 * var(--u));transform:scale(.314);will-change:transform}
html[data-fk-mode=real] .sonar .sn-ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(47,138,99,.9);box-sizing:border-box;opacity:0;will-change:opacity}
/* the rail's own scope: a small dashed guide, a smaller glow, and rings that travel to 92px */
html[data-fk-mode=real] .sonar .sn-narrow{opacity:0}
html[data-fk-mode=real] .sonar .sn-narrow .sn-dash{--d:calc(60 * var(--u))}
html[data-fk-mode=real] .sonar .sn-narrow .sn-glow{--d:calc(84 * var(--u));background:radial-gradient(circle,rgba(47,138,99,.20) 0,rgba(47,138,99,.07) 44%,rgba(47,138,99,0) 68%)}
html[data-fk-mode=real] .sonar .sn-narrow .sn-ping{--d:calc(92 * var(--u));transform:scale(.435)}
html[data-fk-mode=real] .sonar .sn-narrow .sn-ring{border-width:1.5px}
html[data-fk-mode=real] .sonar .sn-rings{transition:opacity .24s cubic-bezier(.33,0,.2,1)}
/* the disc: the app's vault icon split into body and dial, on white; selected, white on green inside a light green ring */
html[data-fk-mode=real] .sonar .sn-breathe{--d:calc(92 * var(--u));opacity:0;transition:opacity .3s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-breathe>span{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(47,138,99,.22) 0,rgba(47,138,99,.10) 45%,rgba(47,138,99,0) 70%);opacity:.55;transform:scale(.94);will-change:transform,opacity}
html[data-fk-mode=real] .sonar .sn-halo-ring{--d:calc(60 * var(--u));background:#e3f3ea;box-shadow:inset 0 0 0 1px #b7dcc6;opacity:0;transform:scale(.86);transition:opacity .26s cubic-bezier(.33,0,.2,1),transform .42s cubic-bezier(.32,.72,0,1)}
html[data-fk-mode=real] .sonar .sn-focus{--d:calc(54 * var(--u));box-shadow:0 0 0 2px #4b5b6a;opacity:0}
html[data-fk-mode=real] .sonar .sn-lift{--d:calc(44 * var(--u));transition:transform .3s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-kick{position:absolute;inset:0;border-radius:50%}
html[data-fk-mode=real] .sonar .sn-disc{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--ink);box-shadow:0 0 0 1px rgba(35,37,39,.05),0 1px 2px rgba(35,37,39,.06),0 6px 16px rgba(35,37,39,.08)}
html[data-fk-mode=real] .sonar .sn-disc-sel{background:#2f8a63;color:#fff;box-shadow:0 1px 2px rgba(35,74,55,.18),0 6px 14px rgba(35,74,55,.18);opacity:0;transition:opacity .26s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-icon{width:calc(20 * var(--u));height:calc(20 * var(--u));overflow:visible}
html[data-fk-mode=real] .sonar .sn-dial{transform-origin:12px 12px}
html[data-fk-mode=real] .sonar .sn-badge{--b:max(16px,calc(20 * var(--u)));position:absolute;right:calc(-5 * var(--u));top:calc(-5 * var(--u));width:var(--b);height:var(--b);opacity:0;transition:opacity .2s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-halo{position:absolute;inset:0;background:radial-gradient(circle closest-side,rgba(38,122,85,0) 0,rgba(38,122,85,0) 72%,rgba(38,122,85,.7) 80%,rgba(38,122,85,.7) 88%,rgba(38,122,85,0) 100%);opacity:0}
html[data-fk-mode=real] .sonar .sn-pop{position:absolute;top:0;right:0;display:grid;place-items:center;width:var(--b);height:var(--b);padding:0;border-radius:10px;background:#267a55;border:2px solid #fff;box-sizing:border-box;color:#fff;font-size:max(9px,calc(10 * var(--u)));font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
/* one digit is a circle at every size; two or more (data-wide) a pill a little wider than tall */
html[data-fk-mode=real] .sonar .sn-pop[data-wide]{width:auto;min-width:var(--b);padding:0 4px}
/* the label: "Case Vault", then the documents, or what is new and from whom */
html[data-fk-mode=real] .sonar .sn-label{position:relative;display:flex;align-items:center;gap:10px;padding:2px 14px 14px 16px;transition:opacity .22s ease .16s}
html[data-fk-mode=real] .sonar .sn-text{flex:1;min-width:0}
html[data-fk-mode=real] .sonar .sn-name{display:block;font-size:13px;line-height:1.35;font-weight:500;letter-spacing:-.005em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-fk-mode=real] .sonar .sn-sub{display:grid;margin-top:2px;font-size:11px;line-height:1.4;color:#646966}
html[data-fk-mode=real] .sonar .sn-sub>span{grid-area:1/1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .24s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-new{opacity:0}
html[data-fk-mode=real] .sonar .sn-new b{color:#23704f;font-weight:500}
html[data-fk-mode=real] .sonar .sn-go{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;background:#fff;color:#6b706e;box-shadow:0 0 0 1px rgba(35,37,39,.06);transition:transform .3s cubic-bezier(.33,0,.2,1)}
html[data-fk-mode=real] .sonar .sn-go svg{width:13px;height:13px}

/* idle: one ring and a faint echo every 4.2 s, gone as it reaches the dashed guide; the glow; the disc swells slightly
   and the dial makes a quarter turn over the first 1.1 s */
html[data-fk-mode=real] .sonar .sn-w1{animation:sn-grow-i 4.2s infinite}
html[data-fk-mode=real] .sonar .sn-w2{animation:sn-grow-i 4.2s .5s infinite}
html[data-fk-mode=real] .sonar .sn-n1{animation:sn-grow-r 4.2s infinite}
html[data-fk-mode=real] .sonar .sn-n2{animation:sn-grow-r 4.2s .5s infinite}
html[data-fk-mode=real] .sonar :is(.sn-w1,.sn-n1)>.sn-ring{animation:sn-fade-i 4.2s infinite}
html[data-fk-mode=real] .sonar :is(.sn-w2,.sn-n2)>.sn-ring{animation:sn-fade-ie 4.2s .5s infinite}
html[data-fk-mode=real] .sonar .sn-glow{animation:sn-glow-i 4.2s infinite}
html[data-fk-mode=real] .sonar .sn-kick{animation:sn-kick-i 4.2s infinite}
html[data-fk-mode=real] .sonar .sn-dial{animation:sn-dial-i 4.2s infinite}
/* new: a 12.6 s cycle. A quick double ring 0.32 s apart that travels a little further, a double swell and the count,
   then two calm pings as it settles. The animations follow [data-beat] and the words and the badge [data-new], so the
   words can go at once (a crossfade) while the rings finish what is in flight */
html[data-fk-mode=real] .sonar[data-beat] .sn-w1{animation:sn-grow-b 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-w2{animation:sn-grow-b 12.6s .32s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-n1{animation:sn-grow-rb 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-n2{animation:sn-grow-rb 12.6s .32s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-w3{animation:sn-grow-c 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-w4{animation:sn-grow-c 12.6s .5s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-n3{animation:sn-grow-rc 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-n4{animation:sn-grow-rc 12.6s .5s infinite}
html[data-fk-mode=real] .sonar[data-beat] :is(.sn-w1,.sn-n1)>.sn-ring{border-color:#267a55;animation:sn-fade-b 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] :is(.sn-w2,.sn-n2)>.sn-ring{border-color:#267a55;animation:sn-fade-b2 12.6s .32s infinite}
html[data-fk-mode=real] .sonar[data-beat] :is(.sn-w3,.sn-n3)>.sn-ring{animation:sn-fade-c 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] :is(.sn-w4,.sn-n4)>.sn-ring{animation:sn-fade-ce 12.6s .5s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-glow{animation:sn-glow-n 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-kick{animation:sn-kick-n 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-dial{animation:sn-dial-n 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-halo{animation:sn-halo-n 12.6s infinite}
html[data-fk-mode=real] .sonar[data-beat] .sn-pop{animation:sn-pop-n 12.6s infinite}
html[data-fk-mode=real] .sonar[data-new] .sn-badge,html[data-fk-mode=real] .sonar[data-new] .sn-new{opacity:1}
html[data-fk-mode=real] .sonar[data-new] .sn-docs{opacity:0}
/* selected (on Case Vault): the rings fade and stop, the tile takes the nav's selected grey, and the icon turns white
   on a green disc inside a light green ring whose glow breathes, 4.5 s each way */
html[data-fk-mode=real] .sonar.active .sn-bg-sel{opacity:1}
html[data-fk-mode=real] .sonar.active .sn-rings{opacity:0}
html[data-fk-mode=real] .sonar.active .sn-badge{opacity:0}
html[data-fk-mode=real] .sonar.active .sn-guide{opacity:1}
html[data-fk-mode=real] .sonar.active .sn-field:not(.sn-field-sel){opacity:0}
html[data-fk-mode=real] .sonar.active :is(.sn-field-sel,.sn-breathe,.sn-disc-sel){opacity:1}
html[data-fk-mode=real] .sonar.active .sn-breathe>span{animation:sn-breathe-s 4.5s cubic-bezier(.33,0,.2,1) infinite alternate}
html[data-fk-mode=real] .sonar.active .sn-halo-ring{opacity:1;transform:none}
html[data-fk-mode=real] .sonar.active .sn-go{color:var(--ink);box-shadow:none}
/* at rest (real.js sets it once the rings have faded and the swell is back at 1, under the green disc) all of it stops */
html[data-fk-mode=real] .sonar[data-rest] .sn-rings *{animation:none!important}
html[data-fk-mode=real] .sonar[data-rest] :is(.sn-kick,.sn-dial,.sn-halo,.sn-pop){animation:none}
@media(hover:hover){
  html[data-fk-mode=real] .sonar:not(.active):hover .sn-bg-sel{opacity:.5}
  html[data-fk-mode=real] .sonar:hover .sn-go{transform:translateX(2px)}
}
/* the collapsed rail: just the disc, 40px, lined up with the rail's icons, with the rail's rings, still pinging. The
   tile keeps its height, so nothing under it moves; its grey and its label fade as the other labels do.
   On a short screen too (QA 2026-09-30): the band is never under 96px, so the rail's own scope keeps its design size
   (--u 1px: rings to 92px) while the short screen clamps scale the open one. The disc gets there by transform: real.js
   keeps --sn-k, 150px over the band, and the count badge, which has a 16px floor on short screens, is scaled back by
   that floor so it is the design's size in the rail too */
@media(min-width:651px){
  html[data-fk-mode=real] .sonar .sn-wide{transition:opacity .22s ease .16s}
  html[data-fk-mode=real] .sonar .sn-narrow{--u:1px;transition:opacity .12s ease 0s}
  html[data-fk-mode=real] .sonar :is(.sn-scope,.sn-core){transition:transform var(--rail-dur) var(--rail-ease)}
  html[data-fk-mode=real] .sonar .sn-badge{transform-origin:100% 0;transition:opacity .2s cubic-bezier(.33,0,.2,1),transform var(--rail-dur) var(--rail-ease)}
  html[data-fk-mode=real] body.nav-collapsed .sonar :is(.sn-bgs,.sn-label,.sn-wide){opacity:0;transition:opacity .12s ease 0s}
  html[data-fk-mode=real] body.nav-collapsed .sonar .sn-label{pointer-events:none}
  html[data-fk-mode=real] body.nav-collapsed .sonar .sn-narrow{opacity:1;transition:opacity .22s ease .16s}
  html[data-fk-mode=real] body.nav-collapsed .sonar .sn-scope{transform:translateX(-1.5px)}
  html[data-fk-mode=real] body.nav-collapsed .sonar .sn-core{transform:scale(calc(.9091 * var(--sn-k,1)))}
  html[data-fk-mode=real] body.nav-collapsed .sonar .sn-badge{transform:scale(calc(1 / max(1,.8 * var(--sn-k,1))))}
  /* the workspace's second line wraps in the rail and would push the menu, and the tile, down a line: kept on one */
  html[data-fk-mode=real] .workspace p{white-space:nowrap}
  html[data-fk-mode=real] body.nav-collapsed a.sonar:focus-visible{outline:none}
  html[data-fk-mode=real] body.nav-collapsed a.sonar:focus-visible .sn-focus{opacity:1}
}
@media(min-width:651px) and (hover:hover){html[data-fk-mode=real] body.nav-collapsed .sonar:hover .sn-lift{transform:scale(1.04)}}
/* a shorter screen: the menu, the tile and the profile still fit the sidebar with nothing squeezed or cut. As the
   window gets shorter, first the space above the tile closes (774 to 760px tall), then the space above the profile (to
   742px), then the scope itself scales down to 96px (to 688px). Only below that does the sidebar scroll */
@media(min-width:651px){
  html[data-fk-mode=real] .nav a.sonar{--sn-band:clamp(96px,100dvh - 592px - var(--fk-vs,0px),150px);margin-top:clamp(8px,100dvh - 752px - var(--fk-vs,0px),22px)}
  html[data-fk-mode=real] .sidebar-foot{padding-top:clamp(16px,100dvh - 726px - var(--fk-vs,0px),34px)}
  /* the brand never gives way either: squeezing it is what moved the whole menu when anything below it grew */
  html[data-fk-mode=real] :is(.workspace,.sidebar-brand){flex-shrink:0}
}
@media(min-width:651px) and (max-height:687px){html[data-fk-mode=real] .sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}}
/* contract 20: a super admin's sidebar also holds the Admin | User switch (36px and its 16px margin), so each step
   above comes 52px sooner and the sidebar scrolls under 740px */
html[data-fk-mode=real]:not([data-fk-role=user]) .sidebar{--fk-vs:52px}
@media(min-width:651px) and (max-height:739px){html[data-fk-mode=real]:not([data-fk-role=user]) .sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}}
/* the rail hides the switch (frame.css fades it out); in a workspace it also gives back its 52px once the fade is over,
   so the rail fits as it did before the switch came back, and it fades in again on expand */
@media(min-width:651px){
  html[data-fk-mode=real] .view-switch{transition:opacity .22s ease .16s,visibility 0s linear 0s,display 0s linear 0s allow-discrete}
  html[data-fk-mode=real] body.nav-collapsed .view-switch{display:none;transition:opacity .12s ease 0s,visibility 0s linear .12s,display 0s linear .12s allow-discrete}
  @starting-style{html[data-fk-mode=real] body:not(.nav-collapsed) .view-switch{opacity:0}}
}
@media(min-width:651px) and (prefers-reduced-motion:reduce){html[data-fk-mode=real] .view-switch,html[data-fk-mode=real] body.nav-collapsed .view-switch{transition:none}}
/* at phone width the switch's two halves are 44px taps */
@media(max-width:650px){html[data-fk-mode=real] .view-switch button{height:44px}}
/* a narrower sidebar (200px at 1150px wide and under, 170px at 900 and under): the arrow goes and the words take its
   room, so "2 new from Jonathan", even "12 new from Jonathan", stay whole. The whole tile is still the one target */
@media(min-width:651px) and (max-width:1150px){
  html[data-fk-mode=real] .sonar .sn-go{display:none}
  html[data-fk-mode=real] .sonar .sn-label{padding-left:14px;padding-right:12px}
}
/* the phone drawer: the full width under the nav grid */
@media(max-width:650px){
  html[data-fk-mode=real] .nav a.sonar{margin-top:10px}
  html[data-fk-mode=real] .sonar .sn-narrow{display:none}
}
/* reduced motion (or ?reduce): everything stops and one still ring shows half way out; the count and selected remain */
html[data-fk-mode=real] .sonar[data-still],html[data-fk-mode=real] .sonar[data-still] *{animation:none!important;transition:none!important}
html[data-fk-mode=real] .sonar[data-still] .sn-w1{transform:scale(.7)}
html[data-fk-mode=real] .sonar[data-still] .sn-n1{transform:scale(.66)}
html[data-fk-mode=real] .sonar[data-still] :is(.sn-w1,.sn-n1)>.sn-ring{opacity:.32}
html[data-fk-mode=real] .sonar[data-still][data-new] :is(.sn-w1,.sn-n1)>.sn-ring{opacity:.5}
html[data-fk-mode=real] .sonar[data-still] .sn-glow{opacity:.5;transform:none}
html[data-fk-mode=real] .sonar[data-still] .sn-breathe>span{opacity:.8;transform:none}

@keyframes sn-grow-i{0%{transform:scale(.314);animation-timing-function:cubic-bezier(.33,0,.2,1)}68%,100%{transform:scale(1)}}
@keyframes sn-grow-r{0%{transform:scale(.435);animation-timing-function:cubic-bezier(.33,0,.2,1)}68%,100%{transform:scale(1)}}
@keyframes sn-fade-i{0%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}5%{opacity:.62;animation-timing-function:cubic-bezier(.33,0,.2,1)}68%,100%{opacity:0}}
@keyframes sn-fade-ie{0%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}5%{opacity:.3;animation-timing-function:cubic-bezier(.33,0,.2,1)}62%,100%{opacity:0}}
@keyframes sn-glow-i{0%{opacity:0;transform:scale(.8);animation-timing-function:cubic-bezier(.33,0,.2,1)}9%{opacity:.9;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}52%,100%{opacity:0;transform:scale(1.12)}}
@keyframes sn-kick-i{0%{transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}7%{transform:scale(1.035);animation-timing-function:cubic-bezier(.33,0,.2,1)}32%,100%{transform:scale(1)}}
@keyframes sn-dial-i{0%{transform:rotate(0deg);animation-timing-function:cubic-bezier(.32,.72,0,1)}26%,100%{transform:rotate(90deg)}}
@keyframes sn-grow-b{0%{transform:scale(.314);animation-timing-function:cubic-bezier(.33,0,.2,1)}17%,100%{transform:scale(1.12)}}
@keyframes sn-grow-rb{0%{transform:scale(.435);animation-timing-function:cubic-bezier(.33,0,.2,1)}17%,100%{transform:scale(1.12)}}
@keyframes sn-fade-b{0%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}2.4%{opacity:.82;animation-timing-function:cubic-bezier(.33,0,.2,1)}17%,100%{opacity:0}}
@keyframes sn-fade-b2{0%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}2.4%{opacity:.55;animation-timing-function:cubic-bezier(.33,0,.2,1)}16%,100%{opacity:0}}
@keyframes sn-grow-c{0%,33.33%{transform:scale(.314);animation-timing-function:cubic-bezier(.33,0,.2,1)}56%,66.6%{transform:scale(1)}66.67%{transform:scale(.314);animation-timing-function:cubic-bezier(.33,0,.2,1)}89.3%,100%{transform:scale(1)}}
@keyframes sn-grow-rc{0%,33.33%{transform:scale(.435);animation-timing-function:cubic-bezier(.33,0,.2,1)}56%,66.6%{transform:scale(1)}66.67%{transform:scale(.435);animation-timing-function:cubic-bezier(.33,0,.2,1)}89.3%,100%{transform:scale(1)}}
@keyframes sn-fade-c{0%,33.33%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}35%{opacity:.62;animation-timing-function:cubic-bezier(.33,0,.2,1)}56%,66.67%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}68.34%{opacity:.62;animation-timing-function:cubic-bezier(.33,0,.2,1)}89.3%,100%{opacity:0}}
@keyframes sn-fade-ce{0%,33.33%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}35%{opacity:.3;animation-timing-function:cubic-bezier(.33,0,.2,1)}54%,66.67%{opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}68.34%{opacity:.3;animation-timing-function:cubic-bezier(.33,0,.2,1)}87%,100%{opacity:0}}
@keyframes sn-glow-n{0%{opacity:0;transform:scale(.8);animation-timing-function:cubic-bezier(.33,0,.2,1)}3.5%{opacity:1;transform:scale(1.06);animation-timing-function:cubic-bezier(.33,0,.2,1)}20%{opacity:0;transform:scale(1.18)}33.33%{opacity:0;transform:scale(.8);animation-timing-function:cubic-bezier(.33,0,.2,1)}36.3%{opacity:.85;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}50.7%{opacity:0;transform:scale(1.12)}66.67%{opacity:0;transform:scale(.8);animation-timing-function:cubic-bezier(.33,0,.2,1)}69.7%{opacity:.85;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}84%,100%{opacity:0;transform:scale(1.12)}}
@keyframes sn-kick-n{0%{transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}2%{transform:scale(1.06);animation-timing-function:cubic-bezier(.33,0,.2,1)}4.5%{transform:scale(1.01);animation-timing-function:cubic-bezier(.33,0,.2,1)}6%{transform:scale(1.05);animation-timing-function:cubic-bezier(.33,0,.2,1)}14%{transform:scale(1)}33.33%{transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}35.7%{transform:scale(1.035);animation-timing-function:cubic-bezier(.33,0,.2,1)}44%{transform:scale(1)}66.67%{transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}69%{transform:scale(1.035);animation-timing-function:cubic-bezier(.33,0,.2,1)}77%,100%{transform:scale(1)}}
@keyframes sn-dial-n{0%{transform:rotate(0deg);animation-timing-function:cubic-bezier(.32,.72,0,1)}9%{transform:rotate(90deg)}33.33%{transform:rotate(90deg);animation-timing-function:cubic-bezier(.32,.72,0,1)}42%{transform:rotate(180deg)}66.67%{transform:rotate(180deg);animation-timing-function:cubic-bezier(.32,.72,0,1)}75.5%,100%{transform:rotate(270deg)}}
@keyframes sn-halo-n{0%{opacity:0;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}1%{opacity:.9;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}12%{opacity:0;transform:scale(2.3)}33.33%{opacity:0;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}34.3%{opacity:.5;transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}45%,100%{opacity:0;transform:scale(2)}}
@keyframes sn-pop-n{0%{transform:scale(1);animation-timing-function:cubic-bezier(.33,0,.2,1)}2%{transform:scale(1.14);animation-timing-function:cubic-bezier(.32,.72,0,1)}8%,100%{transform:scale(1)}}
@keyframes sn-breathe-s{0%{opacity:.55;transform:scale(.94)}100%{opacity:1;transform:scale(1.06)}}

/* ---------- Settings (contract 19): Reports' blocks and rows, each row a label, a value and at most one action; no row
   is a link. The regions that glide (#fk-set-*) carry no padding, margin or gap of their own ---------- */
.fk-set .fk-set-lede{font-size:12.5px;color:#666c68;line-height:1.55;margin:-6px 0 14px;max-width:560px;overflow-wrap:anywhere}
.fk-set .fk-real-row{cursor:default}
.fk-set .fk-real-row:hover{background:none}
.fk-set-row{grid-template-columns:minmax(110px,180px) minmax(0,1fr) auto;min-height:52px;padding-left:8px}
.fk-set-row.fk-real-count{grid-template-columns:minmax(0,1fr) auto}
.fk-set-val{font-size:13.5px;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.fk-set-person{grid-template-columns:34px minmax(0,1fr)}
.fk-set-linkrow{grid-template-columns:34px minmax(0,1fr) auto}
.fk-set-person .fk-pp-name,.fk-set-linkrow .fk-pp-name{font-size:13.5px;font-weight:500;letter-spacing:-.01em}
.fk-set-person .fk-pp-meta,.fk-set-linkrow .fk-pp-meta{font-size:12px;color:#666c68;margin-top:1px}
.fk-set-you{font-size:11.5px;font-weight:400;color:#8b908c;margin-left:4px}
.fk-set-btn{min-height:44px}
.fk-set .text-btn,.fk-set .fk-actions button,.fk-set .fk-confirm button{min-height:44px;min-width:44px;justify-content:center}
.fk-set-logo{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#fff;border:1px solid var(--line)}
.fk-set-logo img{width:18px;height:18px;display:block}
.fk-set-sub{margin-top:28px}
.fk-set-sub h3{font-size:14.5px;font-weight:500;letter-spacing:-.012em;margin:0 0 8px}
.fk-set-stack{display:grid;gap:14px}
.fk-set-note{font-size:12.5px;line-height:1.55;color:#666c68;padding:14px 8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0}
#fk-set-links>.fk-set-btn{margin-top:10px}
.fk-set-confirm .fk-confirm{padding:4px 8px 16px 54px}
#fk-set-miro .fk-set-confirm .fk-confirm{padding-top:12px}
.fk-set-confirm .fk-errors:empty{display:none}
.fk-set-confirm .fk-errors{padding:0 8px 12px 54px}
.fk-set-form,.fk-set-made{display:grid;gap:12px;max-width:520px;padding:6px 0 4px}
.fk-set-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fk-set-form .fk-errors:empty{display:none}
.fk-set-made input{font-size:13px;color:#3f4542;background:#fafbf9}
.fk-set-foot{margin-top:14px}
@media(max-width:650px){
  .fk-set-row{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .fk-set-row:not(.fk-real-count) .fk-real-label{grid-column:1/-1;font-size:12px}
  .fk-set-linkrow{grid-template-columns:34px minmax(0,1fr)}
  .fk-set-linkrow .fk-set-btn{grid-column:2;justify-self:start}
  .fk-set-confirm .fk-confirm,.fk-set-confirm .fk-errors{padding-left:8px}
  .fk-set-pair{grid-template-columns:1fr}
}

/* ---------- staff sign in (contract 20) ----------
   The card that asks before a link is spent on a session already stored here: its question, then Join and Use another
   account, each a full width 44px button; a long address wraps inside the card */
html[data-fk-mode=real] .si-join .si-join-q{overflow-wrap:anywhere}
html[data-fk-mode=real] .si-join .si-join-email{overflow-wrap:anywhere;word-break:break-word}
html[data-fk-mode=real] .si-join .si-sent{overflow-wrap:anywhere}
html[data-fk-mode=real] .si-join-acts{display:grid;gap:10px;margin-top:6px}
html[data-fk-mode=real] .si-join-acts button{width:100%;justify-content:center;min-height:44px}
html[data-fk-mode=real] .si-join .si-msg:empty{display:none}

/* the lesson of a module with no film: three steps (Questions, Confirm, Certificate), and its intro */
html[data-fk-mode=real] .module-steps.fk-three{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-fk-mode=real] .module-steps.fk-three .module-step-ink{width:calc((100% - 40px)/3)}
@media(max-width:650px){html[data-fk-mode=real] .module-steps.fk-three .module-step-ink{width:calc((100% - 16px)/3)}}
html[data-fk-mode=real] .fk-lesson-intro .module-copy{max-width:600px;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-lesson-intro .module-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
html[data-fk-mode=real] .fk-lesson-intro .module-actions button,html[data-fk-mode=real] .fk-learn-msg button{min-height:44px}
/* build review D2: the line reads on the dark stage, and its one action (Start again, or Back) is the stage's primary */
html[data-fk-mode=real] .fk-learn-msg{font-size:12.5px;line-height:1.55;color:#ffb4a8;margin:12px 0 0;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-learn-msg:empty{display:none}
html[data-fk-mode=real] .fk-learn-msg .fk-learn-act{margin:10px 0 0;display:inline-flex}
/* build review D7: the score never breaks ("2 / 2" stays on one line) */
html[data-fk-mode=real] #stage .assessment-result strong{white-space:nowrap}
html[data-fk-mode=real] .training-certificate .fk-cert-fp{font-family:var(--mono);letter-spacing:.02em}
html[data-fk-mode=real] .training-certificate .certificate-checksum span{overflow-wrap:anywhere;word-break:break-all}

/* a team member's pages: nothing assigned yet, a record's full fingerprint, a signature that did not go through */
html[data-fk-mode=real] .fk-staff-empty{margin-top:8px}
/* build review D10: an empty My training has its heading alone; the card says the rest */
html[data-fk-mode=real] #heading-sub:empty{display:none}
html[data-fk-mode=real] .fk-fp{font-family:var(--mono);font-size:11px;overflow-wrap:anywhere;word-break:break-all}
html[data-fk-mode=real] .fk-sign-msg:empty{display:none}
html[data-fk-mode=real] .fk-sign-msg{margin-top:10px}

/* Manage team: a member's Sign in and Record blocks, in plain text (never a pill), each action a 44px button */
html[data-fk-mode=real] .fk-si-block{margin:0 0 22px}
/* build review D8: the Sign in block has the hairlines its sibling blocks have, and an action that is text alone
   starts where the line above it starts */
html[data-fk-mode=real] .fk-si-block .fk-si-body{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0}
html[data-fk-mode=real] .fk-si-block .fk-si-body>:last-child{margin-bottom:0}
html[data-fk-mode=real] #fk-people .fk-si-block .fk-actions>.text-btn:first-child{padding-left:0}
html[data-fk-mode=real] .fk-pp-state{flex:none;font-size:12px;color:#5d635f;white-space:nowrap}
html[data-fk-mode=real] .fk-pp-state.fk-si-late{color:#a1352c}
html[data-fk-mode=real] .fk-si-record .fk-si-hist span{color:#4f5652}
/* build review D4: Let everyone (on a team) sign in answers under the link that was tapped */
html[data-fk-mode=real] .fk-si-bulk{font-size:12.5px;line-height:1.55;color:#3f4542;padding:6px 0 2px;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-si-bulk:empty{display:none}
html[data-fk-mode=real] .fk-sec-head+.fk-si-bulk{margin:-10px 0 10px}
@media(min-width:651px){html[data-fk-mode=real] .fk-sec-head+.fk-si-bulk{text-align:right}}
html[data-fk-mode=real] .fk-si-line{font-size:13px;line-height:1.6;color:#3f4542;margin:0 0 6px;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-si-line.fk-si-quiet{color:#666c68;font-size:12.5px}
html[data-fk-mode=real] .fk-si-block .fk-actions{margin-top:10px;flex-wrap:wrap}
html[data-fk-mode=real] .fk-si-block button,html[data-fk-mode=real] .fk-everyone .fk-links button{min-height:44px}
html[data-fk-mode=real] .fk-si-made{display:grid;gap:10px;max-width:560px}
html[data-fk-mode=real] .fk-si-made input{font-size:13px;color:#3f4542;background:#fafbf9}
html[data-fk-mode=real] .fk-si-err:empty{display:none}
html[data-fk-mode=real] .fk-si-record .fk-pp-mod span{min-width:0;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-si-record .fk-si-late{color:#a1352c}

/* Manage policy and Enroll team: who has signed or completed, and who has not, as plain rows */
html[data-fk-mode=real] .fk-signoff-rows{border-top:1px solid var(--line);margin:6px 0 4px}
html[data-fk-mode=real] .fk-signoff-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;color:#3f4542}
html[data-fk-mode=real] .fk-signoff-row span{min-width:0;overflow-wrap:anywhere}
html[data-fk-mode=real] .fk-signoff-row small{font-size:11.5px;color:#7c837d;white-space:nowrap}
html[data-fk-mode=real] .fk-signoff-row small.fk-late{color:#a1352c}

/* contract 20.5: no patient information, said under every file field */
html[data-fk-mode=real] .fk-no-phi{font-size:12px;line-height:1.5;color:#4f5652;margin-top:6px}
/* contract 20: a training row or chip in progress carries the class progress, which index.html's lesson line rule
   (.progress, 3px high) would shape; in a workspace they keep the row's and the chip's own shape */
html[data-fk-mode=real] .fk-row.progress,html[data-fk-mode=real] .fk-chip.progress{height:auto;overflow:visible}
html[data-fk-mode=real] .fk-row.progress{border-radius:0}
html[data-fk-mode=real] .fk-row.progress:not(:hover){background:none}
html[data-fk-mode=real] .fk-chip.progress{border-radius:5px}
html[data-fk-mode=real] .fk-set .fk-set-staff{margin:12px 0 0}
/* contract 20 at phone width: the lesson's text buttons (Previous question, Back to the intro, Back to training,
   Review my answers) and Reports' Export as CSV are 44px taps */
@media (max-width:650px){html[data-fk-mode=real] #stage .text-btn,html[data-fk-mode=real] #fk-export-record{min-height:44px}}
/* build review D11: a record's Back and its download are 44px taps at phone width, as is every other staff page's */
@media (max-width:650px){html[data-fk-mode=real] #fk-staff .back,html[data-fk-mode=real] #fk-staff .fk-actions button{min-height:44px}}
/* build review D3: at phone width Manage team's links wrap, each whole on its own line, never broken inside */
@media (max-width:650px){
  html[data-fk-mode=real] .fk-everyone .fk-links{flex-wrap:wrap;gap:4px 18px}
  html[data-fk-mode=real] .fk-everyone .fk-links .fk-tlink{white-space:nowrap;margin:0}
}
/* build review D6: a super admin's sidebar under 740px tall: the view switch's margin and the profile's space above
   it drop to 8px, and the sidebar's top padding to 10px (its bottom keeps 14px under the profile, in the rail too), so
   the menu, the tile, the switch and the profile fit whole, with nothing to scroll, at 1280x720 */
@media(min-width:651px) and (max-height:739px){
  html[data-fk-mode=real]:not([data-fk-role=user]) .view-switch{margin-bottom:8px}
  html[data-fk-mode=real]:not([data-fk-role=user]) .sidebar-foot{padding-top:8px}
  html[data-fk-mode=real]:not([data-fk-role=user]) .sidebar{--fk-vs:44px;padding-top:10px}
}
