/* getcompliant controls pass, direction B: Lifted (2026-10-13).
   Apple and Air calm: the weight comes from layered soft light and from motion, almost no visible edge or gradient at
   rest. The look stays A Refined: the system font, the house canvas, ink, hairline and green, radius 8. This sheet only
   changes how the controls are built: material, edge, depth, size, label weight and press physics.

   Scope. Every rule names the real workspace, html[data-fk-mode="real"], or the signed out sign in card,
   html.fk-signed-out #signin (a sample mode page that the frozen sample workspace never shows). The lesson's dark Ink
   stage (body.course-mode) keeps its own look; it only takes the press physics, the focus ring and the timings.
   Motion uses transform (the translate and scale properties), box-shadow, background-color and opacity only. No box
   changes size or place between rest, hover, pressed and focus: edges are inset rings, never border widths. Hover
   lives inside @media (hover:hover). Nothing here is fixed or sticky. */

/* ======================================================================================================== tokens */
html[data-fk-mode="real"],
html.fk-signed-out #signin{
  /* size */
  --fkc-h:40px;                 /* a drawn button with a desktop pointer */
  --fkc-h-touch:44px;           /* the same button on touch, and at phone width */
  --fkc-r:8px;                  /* buttons, tabs */
  --fkc-r-chip:10px;            /* chips and steps: rounded rectangles, never pills */
  --fkc-px:16px;                /* a button's side padding where no context sets its own */
  --fkc-fw:560;                 /* labels on light: SF draws 560; a font with no in-between weight takes 600 */
  --fkc-fw-ink:540;             /* labels on ink: white on dark reads heavier, so a touch lighter */
  --fkc-fw-quiet:500;           /* text buttons, tabs, steps, chips */

  /* colour: the house's own hues. The only values it did not have: the ink a breath lighter (hover) and darker
     (pressed), and the house red a step deeper, for words */
  --fkc-ink:#272b2c;            /* the primary's ink */
  --fkc-ink-hover:#2d3132;
  --fkc-ink-press:#1f2223;
  --fkc-surface:#fff;
  /* fills, the house's own greys in four steps (review): a quiet hover, a pressed row, a chosen tab, a pressed tool.
     Every hover and pressed fill below is one of these, and a control's pressed fill is deeper than its hover fill.
     The one exception is the segmented control: its halves sit on a grey track, so they take white veils, and a
     pressed half moves toward the chosen white */
  --fkc-fill-1:#f7f8f6;         /* --soft */
  --fkc-fill-2:#f3f4f2;
  --fkc-fill-3:#eceeea;         /* the sidebar's chosen fill */
  --fkc-fill-4:#e6e8e4;
  --fkc-surface-press:var(--fkc-fill-1);
  --fkc-surface-on:var(--fkc-fill-2);   /* a secondary that is switched on (Select, Find) */
  --fkc-veil:rgba(255,255,255,.4);      /* the segmented control's unchosen half under the pointer */
  --fkc-veil-press:rgba(255,255,255,.65);  /* the same half, pressed */
  --fkc-ink-veil:rgba(35,37,39,.06);    /* pressed, a veil over whatever highlight is under it (list options) */
  --fkc-text:#232527;           /* --ink */
  --fkc-text-2:#4f5652;         /* chip words, a finished step */
  --fkc-quiet:#5f6662;          /* quiet labels: 5.9:1 on white */
  --fkc-muted:#717575;          /* --muted */
  --fkc-red:#9c2f27;            /* the house red, a step deeper so words on white reach 7:1 */
  --fkc-red-wash:#fcf0ee;       /* the house's error halo */
  --fkc-red-edge:#e2b3ad;       /* the house's error edge */
  --fkc-good-fill:#f2f8f4;      /* a chosen chip: the house green tints */
  --fkc-good-edge:#b7dcc6;
  --fkc-good-text:#1f5c3f;
  --fkc-focus:#4b5b6a;          /* the house focus ring */

  /* edges: one whisper hairline, drawn as an inset ring */
  --fkc-ring:inset 0 0 0 1px rgba(35,37,39,.10);
  --fkc-ring-hover:inset 0 0 0 1px rgba(35,37,39,.13);
  --fkc-ring-press:inset 0 0 0 1px rgba(35,37,39,.15);

  /* light. Every stack keeps three layers in the same order, so each state change interpolates cleanly.
     primary: a faint top light, a contact shadow and a long ambient one, all ink tinted */
  --fkc-p-rest:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(39,43,44,.22),0 8px 18px -8px rgba(39,43,44,.30);
  --fkc-p-hover:inset 0 1px 0 rgba(255,255,255,.10),0 2px 3px rgba(39,43,44,.18),0 12px 24px -11px rgba(39,43,44,.40);
  --fkc-p-press:inset 0 1px 0 rgba(255,255,255,.04),0 1px 1px rgba(39,43,44,.30),0 3px 6px -4px rgba(39,43,44,.30);
  /* secondary: the hairline ring, a contact shadow and a soft ambient one */
  --fkc-s-rest:var(--fkc-ring),0 1px 2px rgba(35,37,39,.06),0 6px 14px -8px rgba(35,37,39,.13);
  --fkc-s-hover:var(--fkc-ring-hover),0 2px 3px rgba(35,37,39,.05),0 10px 20px -10px rgba(35,37,39,.18);
  --fkc-s-press:var(--fkc-ring-press),0 1px 1px rgba(35,37,39,.06),0 2px 4px -3px rgba(35,37,39,.10);
  --fkc-s-on:var(--fkc-ring-press),0 0 0 0 transparent,0 0 0 0 transparent;
  /* destructive: the secondary's light with a red hairline once touched */
  --fkc-d-hover:inset 0 0 0 1px rgba(161,53,44,.24),0 2px 3px rgba(35,37,39,.05),0 10px 20px -10px rgba(35,37,39,.18);
  --fkc-d-press:inset 0 0 0 1px rgba(161,53,44,.32),0 1px 1px rgba(35,37,39,.06),0 2px 4px -3px rgba(35,37,39,.10);
  /* a thumb or a chosen segment: white, lifted off its track */
  --fkc-thumb:0 0 0 .5px rgba(35,37,39,.08),0 1px 2px rgba(35,37,39,.09),0 3px 8px -3px rgba(35,37,39,.14);
  --fkc-flat:0 0 0 0 transparent,0 0 0 0 transparent,0 0 0 0 transparent;
  /* chips: the ring and a contact shadow, no ambient (they sit, buttons float) */
  --fkc-c-rest:var(--fkc-ring),0 1px 2px rgba(35,37,39,.05);
  --fkc-c-hover:inset 0 0 0 1px rgba(35,37,39,.17),0 1px 2px rgba(35,37,39,.07);
  --fkc-c-on:inset 0 0 0 1px var(--fkc-good-edge),0 0 0 0 transparent;
  --fkc-c-on-hover:inset 0 0 0 1px #9fcfb3,0 0 0 0 transparent;
  /* the switch: a whisper of depth in the track, lifted light on the knob */
  --fkc-track:inset 0 0 0 1px rgba(35,37,39,.04),inset 0 1px 2px rgba(35,37,39,.07);
  --fkc-track-on:inset 0 0 0 1px rgba(0,0,0,.03),inset 0 1px 2px rgba(0,0,0,.10);
  --fkc-knob-light:0 0 0 .5px rgba(35,37,39,.08),0 1px 2px rgba(35,37,39,.16),0 2px 6px -1px rgba(35,37,39,.16);
  --fkc-knob-light-hover:0 0 0 .5px rgba(35,37,39,.10),0 1px 3px rgba(35,37,39,.18),0 3px 8px -2px rgba(35,37,39,.20);

  /* motion */
  --fkc-fast:120ms;             /* press in: half the travel lands on the first frame */
  --fkc-mid:180ms;              /* hover, fills, light */
  --fkc-slow:220ms;             /* release, thumbs, knobs */
  --fkc-ease:cubic-bezier(.2,.8,.2,1);          /* the house curve, for light and colour */
  --fkc-press-curve:cubic-bezier(.3,1.3,.55,1); /* press in: a 3% squish past the pressed size, then still */
  --fkc-settle:cubic-bezier(.22,1.2,.36,1);     /* release and lift: eases back, 1% past */
  --fkc-glide:cubic-bezier(.3,1.25,.45,1);      /* thumbs and tab indicators: 2% past */
  --fkc-knob:cubic-bezier(.3,1.4,.5,1);         /* the switch knob: 5% past on its 14px, under a pixel */
  /* travel. Every lift, nudge, sink, squeeze and stretch below reads these, so reduced motion only has to set them
     to rest (see the end): no !important needed */
  --fkc-lift:-1px;              /* hover: up one pixel (a lesson answer card, two) */
  --fkc-nudge:2px;              /* an arrow, toward where it goes */
  --fkc-sink:.97;               /* pressed */
  --fkc-sink-wide:.985;         /* pressed, a full width button or row (a .97 would pull its sides in 10px) */
  --fkc-sink-small:.92;         /* pressed, a 30 to 44px icon button, a day, a check box */
  --fkc-squeeze:.96;            /* the view switch's thumb, held */
  --fkc-stretch:1.15;           /* the switch knob, held: it stretches toward its travel */
}

/* ======================================================================================================== 1. primary
   Solid ink with an ink tinted contact and ambient shadow. Hover lifts it a pixel and the ambient deepens; pressed it
   sinks to .97 with a little squish and the light tightens; it eases back on release. */
:where(html[data-fk-mode="real"] body:not(.course-mode),html.fk-signed-out #signin) .primary{padding:9px var(--fkc-px)}
html[data-fk-mode="real"] body:not(.course-mode) .primary,
html.fk-signed-out #signin .primary{
  border:0;border-radius:var(--fkc-r);background-color:var(--fkc-ink);color:#fff;
  font-weight:var(--fkc-fw-ink);box-shadow:var(--fkc-p-rest);
  transition:translate var(--fkc-slow) var(--fkc-settle),scale var(--fkc-slow) var(--fkc-settle),
    box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease),opacity var(--fkc-mid) var(--fkc-ease);
}
/* the app's own hover (opacity .85) reaches phones too, where it sticks after a tap: gone everywhere */
html[data-fk-mode="real"] body:not(.course-mode) .primary:hover:not(:disabled,[aria-disabled="true"]),
html.fk-signed-out #signin .primary:hover:not(:disabled,[aria-disabled="true"]){opacity:1}
/* an arrow at the end of a label nudges forward */
html[data-fk-mode="real"] body:not(.course-mode) :is(.primary,.secondary)>svg:has(>use[href="#i-arrow"]){transition:translate var(--fkc-slow) var(--fkc-settle)}

/* ======================================================================================================== 2. secondary
   A white surface floating on the sheet: a whisper hairline (an inset ring) and soft light under it. Hover lifts;
   pressed it settles back onto the surface. Also worn by a.secondary, the file chooser label, the iOS PDF icons and
   every Settings action. */
:where(html[data-fk-mode="real"] body:not(.course-mode),html.fk-signed-out #signin) .secondary{padding:9px var(--fkc-px)}
html[data-fk-mode="real"] body:not(.course-mode) .secondary,
html.fk-signed-out #signin .secondary{
  border:0;border-radius:var(--fkc-r);background-color:var(--fkc-surface);color:var(--fkc-text);
  font-weight:var(--fkc-fw);box-shadow:var(--fkc-s-rest);
  transition:translate var(--fkc-slow) var(--fkc-settle),scale var(--fkc-slow) var(--fkc-settle),
    box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease),opacity var(--fkc-mid) var(--fkc-ease);
}
/* the app's grey hover sticks on phones: the surface stays white, the light does the work */
html[data-fk-mode="real"] body:not(.course-mode) .secondary:hover,
html.fk-signed-out #signin .secondary:hover{background-color:var(--fkc-surface)}
/* switched on (Select, Find, Tags, Add tags): settled into the sheet, a shade darker, no lift */
html[data-fk-mode="real"] body:not(.course-mode) .secondary:is([aria-pressed="true"],[aria-expanded="true"]){background-color:var(--fkc-surface-on);box-shadow:var(--fkc-s-on)}
/* a file the form cannot take: the house's error ring and halo, as a ring (the app's border has no width now) */
html[data-fk-mode="real"] .fk-vfile-btn[aria-invalid="true"]:not(#fkc-bump),
html[data-fk-mode="real"] .fk-vfile-input[aria-invalid="true"]+.fk-vfile-btn:not(#fkc-bump){box-shadow:inset 0 0 0 1px var(--fkc-red-edge),0 0 0 3px var(--fkc-red-wash),0 0 0 0 transparent}

/* ======================================================================================================== 3. sizes
   40px with a desktop pointer, 44px on touch and at phone width. :not(#signin *) keeps the sign in cards at their 44
   and also lifts the rule over the app's own tap target rules (up to 1,2,2) without naming each context. */
html[data-fk-mode="real"] body:not(.course-mode) :is(.primary,.secondary):not(#signin *){min-height:var(--fkc-h)}
html[data-fk-mode="real"] .fk-pdf .fk-pdf-tools .tab{min-height:var(--fkc-h)}
@media (max-width:650px),(pointer:coarse){
  html[data-fk-mode="real"] body:not(.course-mode) :is(.primary,.secondary):not(#signin *){min-height:var(--fkc-h-touch)}
  html[data-fk-mode="real"] .fk-pdf .fk-pdf-tools .tab{min-height:var(--fkc-h-touch)}
}
/* full width buttons sink less */
html.fk-signed-out #signin :is(.si-form .primary,.si-btn),
html[data-fk-mode="real"] :is(.si-join-acts button,#si-card [data-si-signout]){--fkc-sink:var(--fkc-sink-wide)}
@media (max-width:650px){
  html[data-fk-mode="real"] :is(.fk-bfoot .fk-actions .primary,.fk-vtools .primary,.fk-pol-actions .primary,.fk-pol-actions .secondary,.fk-pdf .fk-pdf-act>*,.fk-pol-upload .fk-vfile-btn){--fkc-sink:var(--fkc-sink-wide)}
}

/* ======================================================================================================== 4. destructive
   No red button: red is for words. An ask (a text button or a secondary) is calm ink until it is touched, then its
   words turn the house red. The confirm's action is red words on the lifted white surface, never the ink default:
   the inline line says what happens, and the way to keep things stays the plain text beside it.
   Review: only fk.confirmHtml's action (.fk-confirm-text, then .fk-actions>.primary) is destructive. The same
   .fk-confirm box also holds Manage team's "Move 3 people" form (a select, then a .primary), which must stay the ink
   primary, so the red is never reached through .fk-confirm .primary alone. */
html[data-fk-mode="real"] body:not(.course-mode) .fk-confirm-text+.fk-actions>.primary{background-color:var(--fkc-surface);color:var(--fkc-red);font-weight:var(--fkc-fw);box-shadow:var(--fkc-s-rest)}

/* ======================================================================================================== 5. text buttons
   Words only. A calm underline draws in from the left on hover; an arrow, where there is one, nudges; pressed, the
   words dim at once and come back as they are released. The underline lives in a grid cell the width of the words
   (an absolutely placed ::after takes its grid area as its box; both end lines are named, since an auto end line
   would reach the button's padding edge), so it is never longer than they are.
   The display rules stay low: 0,1,1 for words (button.text-btn, level with the vault's flex contexts), 0,2,1 with
   an icon (over the 0,2,0 contexts that set inline-flex). No app rule hides a text button with less (checked); every
   hiding rule is heavier or !important, so it still wins. justify-content:start sits at 0,0,0 under any context's
   own centring. */
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink),
html.fk-signed-out #signin .si-back{position:relative;border-radius:6px}
/* grid-auto-flow:column: should a label ever hold more than its words, its pieces sit in a row, as in the flex box */
:where(html[data-fk-mode="real"]) :is(button.text-btn,.fk-tlink):where(:not(:has(>svg))){display:inline-grid;grid-template-columns:auto;grid-auto-flow:column;align-content:center}
:where(html[data-fk-mode="real"] .text-btn,html[data-fk-mode="real"] .fk-tlink,html.fk-signed-out #signin .si-back){justify-content:start}
/* an icon and the words: two cells, the underline under the words only (.text-btn twice: over the 0,2,0 contexts) */
:where(html[data-fk-mode="real"]) .text-btn.text-btn:has(>svg),
:where(html[data-fk-mode="real"]) .fk-tlink:has(>svg){display:inline-grid;grid-template-columns:auto auto;grid-auto-flow:column;align-content:center}
/* 3px under the baseline of a centred line; where a context keeps its flex box the same top still lands there */
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink)::after,
html.fk-signed-out #signin .si-back::after{
  content:"";position:absolute;grid-area:1/1/2/2;left:0;right:0;top:calc(50% + .6em);height:1px;border-radius:1px;
  background-color:currentColor;opacity:.55;transform:scaleX(0);transform-origin:0 50%;
  transition:transform var(--fkc-mid) var(--fkc-ease);pointer-events:none;
}
html.fk-signed-out #signin .si-back::after{left:4px;right:4px}
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink):has(>svg)::after{grid-area:1/2/2/3}
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink):has(>svg:not(.fk-back)>use[href="#i-arrow"])::after{grid-area:1/1/2/2}
/* the app underlines on any hover, phones included */
html[data-fk-mode="real"] .text-btn:hover{text-decoration:none}
html[data-fk-mode="real"] .fk-tlink:hover{color:#4d5350;text-decoration:none}
/* the workspace's text buttons: ink at 500, so a link inside a quiet sentence reads as one */
html[data-fk-mode="real"] body:not(.course-mode) .text-btn{color:var(--fkc-text);font-weight:var(--fkc-fw-quiet)}
html[data-fk-mode="real"] :is(.text-btn,.back,.stage-close),
html.fk-signed-out #signin .si-back{transition:opacity var(--fkc-slow) var(--fkc-ease)}
/* .fk-tlink keeps the app's own opacity transition: .off fades a link out with it */
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink,.back,.stage-close) svg{transition:translate var(--fkc-slow) var(--fkc-settle)}
/* back: the arrow first, quiet words that turn ink, the arrow nudges back */
html[data-fk-mode="real"] .back{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet)}
html[data-fk-mode="real"] body:not(.course-mode) .stage-close{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet)}
html.fk-signed-out #signin .si-card .si-back{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet)}
/* focus: the house ring, a little closer, rounded with the words */
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink,.back,.stage-close):focus-visible,
html.fk-signed-out #signin .si-back:focus-visible{outline:2px solid var(--fkc-focus);outline-offset:2px}

/* ======================================================================================================== 6. icon buttons
   Collapse, the phone menu, Mark all read, Close, Manage tags' disclosure, the month arrows, the select boxes. A soft
   fill on hover; pressed, the fill deepens and the button sinks to .92. */
html[data-fk-mode="real"] :is(.collapse-toggle,.notification-header button,.fk-vtree-toggle,.fk-date-nav button){
  transition:scale var(--fkc-slow) var(--fkc-settle),background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease),opacity .2s ease;
}
html[data-fk-mode="real"] :is(.notification-header button,.fk-vtree-toggle):hover{background-color:transparent}
/* the phone menu: a 44px target in the 30px footprint it had (negative margins), its pressed fill a pad behind the icon */
@media (max-width:650px){
  html[data-fk-mode="real"] .menu-toggle{position:relative;isolation:isolate;width:44px;height:44px;margin:-7px -7px -7px -13px;border-radius:12px}
  html[data-fk-mode="real"] .menu-toggle::before{content:"";position:absolute;inset:6px;z-index:-1;border-radius:9px;background-color:var(--fkc-fill-3);opacity:0;scale:.86;transition:opacity var(--fkc-mid) var(--fkc-ease),scale var(--fkc-slow) var(--fkc-settle)}
  html[data-fk-mode="real"] .menu-toggle[aria-expanded="true"]::before{opacity:.75;scale:1}
  /* Mark all read and Close: 40px targets in the 30px footprint (the 10px gap between them is shared, not overlapped) */
  html[data-fk-mode="real"] .notification-header button{width:40px;height:40px;margin:-5px}
}
html[data-fk-mode="real"] .fk-vcheck .fk-vbox{transition:scale var(--fkc-slow) var(--fkc-settle),background-color .15s,border-color .15s}

/* ======================================================================================================== 7. chips
   Team chips (who a module is for) and Case Vault's tag chips: rounded rectangles (the tag chips were 999px pills),
   the hairline ring and a contact shadow. Chosen, they keep the house's green tint and settle flat. The app's 1px
   border becomes an inset ring and its pixel goes to the padding, so every box keeps its size. */
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip){
  border:0;border-radius:var(--fkc-r-chip);background-color:var(--fkc-surface);color:var(--fkc-text-2);font-weight:var(--fkc-fw-quiet);
  box-shadow:var(--fkc-c-rest);
  transition:scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease);
}
html[data-fk-mode="real"] .fk-team{padding:10px 14px}
html[data-fk-mode="real"] .fk-vchip{padding:8px 13px}
html[data-fk-mode="real"] .fk-vchip.child{background-color:#fbfbfa;color:#6b706e}
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip)[aria-pressed="true"]{background-color:var(--fkc-good-fill);color:var(--fkc-good-text);box-shadow:var(--fkc-c-on)}
/* while a document is dragged over a tag chip (vault.js): the app's drop look, as a ring */
html[data-fk-mode="real"] .fk-vchip.fk-vdrop{background-color:var(--fkc-good-text);color:#fff;box-shadow:inset 0 0 0 1px var(--fkc-good-text),0 0 0 4px #dcebe1}
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip):focus-visible{outline:2px solid var(--fkc-focus);outline-offset:2px}

/* ======================================================================================================== 8. segments, tabs, steps
   The view switch's thumb glides with a gentle spring; pressing the chosen half squeezes the thumb a little. Case
   Vault's segmented control lifts its chosen half the same white; the version tabs and the builder's steps follow. */
/* Admin | User */
html[data-fk-mode="real"] .view-switch .vs-thumb{box-shadow:var(--fkc-thumb);transition:transform var(--fkc-slow) var(--fkc-glide)}
html[data-fk-mode="real"] .view-switch button{font-weight:var(--fkc-fw-quiet);transition:color .2s ease,opacity var(--fkc-slow) var(--fkc-ease)}
html[data-fk-mode="real"] .view-switch:has(>button[aria-pressed="true"]:active) .vs-thumb{transform:scale(var(--fkc-squeeze));transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve)}
html[data-fk-mode="real"] .view-switch[data-on="user"]:has(>button[aria-pressed="true"]:active) .vs-thumb{transform:translateX(100%) scale(var(--fkc-squeeze))}
html[data-fk-mode="real"] .view-switch button:focus-visible{outline-color:var(--fkc-focus)}
/* New document | New version of a document */
html[data-fk-mode="real"] .fk-seg button{
  border-radius:9px;color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);box-shadow:var(--fkc-flat);
  transition:scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease);
}
html[data-fk-mode="real"] .fk-seg button[aria-pressed="true"]{background-color:var(--fkc-surface);color:var(--fkc-text);box-shadow:var(--fkc-thumb)}
html[data-fk-mode="real"] .fk-seg button:focus-visible{outline:2px solid var(--fkc-focus);outline-offset:1px}
@media (max-width:650px){html[data-fk-mode="real"] .fk-seg button{min-height:44px}}
/* a policy's version tabs */
html[data-fk-mode="real"] .fk-pdf .tab{
  border-radius:var(--fkc-r);color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);
  transition:scale var(--fkc-slow) var(--fkc-settle),background-color var(--fkc-mid) var(--fkc-ease);
}
html[data-fk-mode="real"] .fk-pdf .tab[aria-pressed="true"]{background-color:var(--fkc-fill-3);color:#2e3830}
/* the builder's steps: rounded rectangles, the current one lifted white */
html[data-fk-mode="real"] .fk-steps button{
  border-color:transparent;border-radius:var(--fkc-r-chip);color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);box-shadow:var(--fkc-flat);
  transition:scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease),color .2s;
}
html[data-fk-mode="real"] .fk-steps button.ok{color:var(--fkc-text-2)}
html[data-fk-mode="real"] .fk-steps button[aria-current="step"]{border-color:transparent;background-color:var(--fkc-surface);color:var(--fkc-text);box-shadow:var(--fkc-s-rest)}
html[data-fk-mode="real"] .fk-steps button:focus-visible{outline-color:var(--fkc-focus);outline-offset:2px}
/* Notifications' All and Records: the indicator grows from the middle with a spring, and shrinks away from the old tab */
html[data-fk-mode="real"] .notification-tabs button{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);transition:opacity var(--fkc-slow) var(--fkc-ease)}
html[data-fk-mode="real"] .notification-tabs button[aria-selected="true"]{color:#2e382e}
html[data-fk-mode="real"] .notification-tabs button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background-color:#4d5c47;transform:scaleX(0);transition:transform var(--fkc-slow) var(--fkc-glide)}
html[data-fk-mode="real"] .notification-tabs button[aria-selected="true"]::after{transform:scaleX(1)}

/* ======================================================================================================== 9. toggle rows and the switch
   The knob is lifted white over a track with a whisper of depth; it slides with a spring. Pressing the row stretches
   the knob toward where it will go, as a switch does on a phone, and it lets go as the row is released. */
html[data-fk-mode="real"] .fk-switch i{
  box-shadow:var(--fkc-track);
  transition:background-color .2s var(--fkc-ease),box-shadow var(--fkc-mid) var(--fkc-ease);
}
html[data-fk-mode="real"] .fk-switch input:checked+i{box-shadow:var(--fkc-track-on)}
html[data-fk-mode="real"] .fk-switch i::after{
  box-shadow:var(--fkc-knob-light);
  transition:transform var(--fkc-slow) var(--fkc-knob),box-shadow var(--fkc-mid) var(--fkc-ease);
}
/* the stretch keeps the knob's resting edge in place: the 16px knob grows 16 * (stretch - 1) = 2.4px about its centre,
   so it shifts half of that, 1.2px, toward its travel (off: from 0; on: from the app's 14px) */
html[data-fk-mode="real"] :is(.fk-toggle,.fk-switch):active .fk-switch input:not(:checked)+i::after,
html[data-fk-mode="real"] .fk-switch:active input:not(:checked)+i::after{transform:translateX(calc(8px * (var(--fkc-stretch) - 1))) scaleX(var(--fkc-stretch));transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease)}
html[data-fk-mode="real"] :is(.fk-toggle,.fk-switch):active .fk-switch input:checked+i::after,
html[data-fk-mode="real"] .fk-switch:active input:checked+i::after{transform:translateX(calc(14px - 8px * (var(--fkc-stretch) - 1))) scaleX(var(--fkc-stretch));transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease)}
/* focus: the house ring around the track (the app's 3px #dbeadf ring is 1.2:1 on white) */
html[data-fk-mode="real"] .fk-switch input:focus-visible+i{outline:2px solid var(--fkc-focus);outline-offset:2px;box-shadow:var(--fkc-track)}
html[data-fk-mode="real"] .fk-switch input:focus-visible:checked+i{box-shadow:var(--fkc-track-on)}

/* ======================================================================================================== 10. builder tools
   Up, Down, Remove; the A to D answer keys (the chosen key's letter now 6.9:1); the dashed add rows. */
html[data-fk-mode="real"] .fk-q-tools button{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);border-radius:var(--fkc-r);transition:scale var(--fkc-slow) var(--fkc-settle),background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease)}
html[data-fk-mode="real"] .fk-q-tools button:hover:not(:disabled){background-color:transparent;color:var(--fkc-quiet)}
html[data-fk-mode="real"] .fk-opt-key{
  border:0;color:var(--fkc-quiet);font-weight:var(--fkc-fw);box-shadow:var(--fkc-c-rest);
  transition:scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease);
}
html[data-fk-mode="real"] .fk-opt-key[aria-pressed="true"]{background-color:#e3f3ea;color:var(--fkc-good-text);box-shadow:var(--fkc-c-on)}
html[data-fk-mode="real"] .fk-opt input{color:var(--fkc-text)}
html[data-fk-mode="real"] .fk-add{color:var(--fkc-quiet);font-weight:var(--fkc-fw-quiet);transition:scale var(--fkc-slow) var(--fkc-settle),background-color var(--fkc-mid) var(--fkc-ease)}
html[data-fk-mode="real"] .fk-add:hover{background-color:transparent}
html[data-fk-mode="real"] :is(.fk-q-tools button,.fk-opt-key,.fk-add):focus-visible{outline:2px solid var(--fkc-focus);outline-offset:2px}

/* ======================================================================================================== 11. the date picker */
html[data-fk-mode="real"] .fk-date-pick{transition:scale var(--fkc-slow) var(--fkc-settle),background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease)}
html[data-fk-mode="real"] .fk-date-day span{transition:scale var(--fkc-slow) var(--fkc-settle),background-color .15s,color .15s,box-shadow .15s}
/* today in a green that reads 5.9:1 (the house green is 4.3:1 at 13px) */
html[data-fk-mode="real"] .fk-date-day.today:not([aria-selected="true"],[aria-disabled="true"]) span{color:#24724f}
html[data-fk-mode="real"] :is(.fk-date-nav button,.fk-date-pick):focus-visible{outline-color:var(--fkc-focus)}
html[data-fk-mode="real"] .fk-date-day:focus-visible span{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--fkc-focus)}

/* ======================================================================================================== 12. navigation
   The sidebar keeps every height (its scroll threshold). Pressing an item fills it a step darker at once; the
   profile button and its menu the same. At phone width the menu's items reach 44px. */
html[data-fk-mode="real"] .nav a:not(.sonar),
html[data-fk-mode="real"] .nav>button,
html[data-fk-mode="real"] #profile-button,
html[data-fk-mode="real"] .profile-menu button{transition:background-color var(--fkc-mid) var(--fkc-ease),color var(--fkc-mid) var(--fkc-ease)}
@media (max-width:650px){html[data-fk-mode="real"] .profile-menu button{padding-top:13px;padding-bottom:13px}}
html[data-fk-mode="real"] :is(.nav a:not(.sonar),.nav>button,#profile-button):focus-visible{outline-color:var(--fkc-focus);outline-offset:1px}
/* the palette pill: its ⌘ K hint and its placeholder in the house's quiet and muted (they were 3.6:1 and 3.2:1) */
html[data-fk-mode="real"] .cmd-kbd span{color:var(--fkc-quiet)}
html[data-fk-mode="real"] .cmd .row-in input::placeholder{color:var(--fkc-muted)}
html[data-fk-mode="real"] .notice{transition:opacity var(--fkc-slow) var(--fkc-ease)}
html[data-fk-mode="real"] .notice:hover .notice-title{text-decoration:none}

/* ======================================================================================================== 13. rows
   A row is pressed by its fill (a step darker, at once), never by a scale: a full width row that shrinks reads as a
   jolt. Their arrows slide with the release curve. */
html[data-fk-mode="real"] :is(.fk-row,.fk-real-row,.fk-pp-row,.fk-access-row) .row-arrow{transition:transform var(--fkc-slow) var(--fkc-settle),opacity .15s}
html[data-fk-mode="real"] .fk-pp-trow .fk-chev{transition:background-color var(--fkc-mid) var(--fkc-ease)}

/* ======================================================================================================== 14. the sign in card
   Continue with Google: the secondary's material, full width at 44. Continue with email is the primary. */
html.fk-signed-out #signin .si-btn{
  border:0;border-radius:var(--fkc-r);background-color:var(--fkc-surface);font-weight:var(--fkc-fw);box-shadow:var(--fkc-s-rest);
  transition:translate var(--fkc-slow) var(--fkc-settle),scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease),background-color var(--fkc-mid) var(--fkc-ease);
}
html.fk-signed-out #signin .si-btn:hover{background-color:var(--fkc-surface)}
html.fk-signed-out #signin :is(.si-btn,.primary,.secondary):focus-visible{outline:2px solid var(--fkc-focus);outline-offset:3px}

/* ======================================================================================================== 15. the lesson (dark Ink stage)
   Its own look stays: the light gradient primary, the answer cards. Only the physics join the system: hover inside
   (hover:hover), a pixel of lift, a .97 press that lands at once, the release curve, 120 to 220ms. */
html[data-fk-mode="real"] body.course-mode .primary{
  transition:opacity var(--fkc-slow) var(--fkc-ease),transform var(--fkc-slow) var(--fkc-settle),translate var(--fkc-slow) var(--fkc-settle),
    scale var(--fkc-slow) var(--fkc-settle),box-shadow var(--fkc-mid) var(--fkc-ease);
}
/* the stage's hover lift reached phones, where it stuck after a tap */
html[data-fk-mode="real"] body.course-mode .primary:hover:not(:disabled){transform:none;box-shadow:inset 0 1px #fff,0 4px 10px #071d2620}
html[data-fk-mode="real"] body.quiz-mode .answer-option{transition:color 600ms var(--ease),background 600ms var(--ease),transform var(--fkc-slow) var(--fkc-settle),translate var(--fkc-slow) var(--fkc-settle),scale var(--fkc-slow) var(--fkc-settle)}
html[data-fk-mode="real"] body.quiz-mode .answer-option:hover:not(:has(input:disabled)){transform:none;background:#344950}
html[data-fk-mode="real"] body.course-mode .sheet .stage-close{color:#b4c4c8}

/* ======================================================================================================== hover
   Pointers only: a phone never keeps a hover look after a tap. */
@media (hover:hover){
  /* primary: up a pixel, the ink a breath lighter, the ambient deeper */
  html[data-fk-mode="real"] body:not(.course-mode) .primary:hover:not(:disabled,[aria-disabled="true"]),
  html.fk-signed-out #signin .primary:hover:not(:disabled,[aria-disabled="true"]){translate:0 var(--fkc-lift);background-color:var(--fkc-ink-hover);box-shadow:var(--fkc-p-hover)}
  /* secondary: up a pixel, the light longer (a switched on one stays settled) */
  html[data-fk-mode="real"] body:not(.course-mode) .secondary:hover:not(:disabled,[aria-disabled="true"],[aria-pressed="true"],[aria-expanded="true"]),
  html.fk-signed-out #signin :is(.secondary,.si-btn):hover:not(:disabled,[aria-disabled="true"]){translate:0 var(--fkc-lift);box-shadow:var(--fkc-s-hover)}
  html[data-fk-mode="real"] body:not(.course-mode) .secondary:is([aria-pressed="true"],[aria-expanded="true"]):hover:not(:disabled){background-color:var(--fkc-fill-3)}
  html[data-fk-mode="real"] body:not(.course-mode) :is(.primary,.secondary):hover:not(:disabled,[aria-disabled="true"])>svg:has(>use[href="#i-arrow"]){translate:var(--fkc-nudge) 0}
  /* destructive: the confirm lifts with a red hairline; an ask's words turn red */
  html[data-fk-mode="real"] body:not(.course-mode) .fk-confirm-text+.fk-actions>.primary:hover:not(:disabled,[aria-disabled="true"]){background-color:var(--fkc-surface);box-shadow:var(--fkc-d-hover)}
  html[data-fk-mode="real"] :is([data-member-remove-ask],[data-team-delete-ask],[data-si-off-ask],#fk-discard-ask,[data-en-end-ask],[data-set-close-ask],[data-set-miro-ask],[data-miro-disconnect-ask],[data-varchive],[data-vbulk="archive"]):hover:not(:disabled){color:var(--fkc-red)}
  /* text buttons: the underline draws in; a trailing arrow nudges forward, a back arrow back */
  html[data-fk-mode="real"] :is(.text-btn,.fk-tlink):hover:not(:disabled)::after,
  html.fk-signed-out #signin .si-back:hover::after{transform:scaleX(1)}
  html[data-fk-mode="real"] .fk-tlink:hover{color:var(--fkc-text)}
  html[data-fk-mode="real"] :is(.text-btn,.fk-tlink):hover:not(:disabled)>svg:not(.fk-back):has(>use[href="#i-arrow"]){translate:var(--fkc-nudge) 0}
  html[data-fk-mode="real"] :is(.back:hover>svg,.fk-tlink:hover>svg.fk-back){translate:calc(var(--fkc-nudge) * -1) 0}
  html[data-fk-mode="real"] .back:hover,html[data-fk-mode="real"] body:not(.course-mode) .stage-close:hover,
  html.fk-signed-out #signin .si-card .si-back:hover{color:var(--fkc-text)}
  html[data-fk-mode="real"] body.course-mode .sheet .stage-close:hover{color:#edf3f4}
  /* icon buttons: a soft fill */
  html[data-fk-mode="real"] :is(.notification-header button,.fk-vtree-toggle):hover{background-color:var(--fkc-fill-2)}
  /* chips: the ring firms up */
  html[data-fk-mode="real"] :is(.fk-team,.fk-vchip):not([aria-pressed="true"],.fk-vdrop):hover:not(:disabled){box-shadow:var(--fkc-c-hover)}
  html[data-fk-mode="real"] :is(.fk-team,.fk-vchip)[aria-pressed="true"]:not(.fk-vdrop):hover:not(:disabled){box-shadow:var(--fkc-c-on-hover)}
  /* segments, tabs, steps: the unchosen ones take a faint fill and ink words */
  html[data-fk-mode="real"] .fk-seg button:not([aria-pressed="true"]):hover:not(:disabled){background-color:var(--fkc-veil);color:var(--fkc-text)}
  html[data-fk-mode="real"] .fk-pdf .tab:not([aria-pressed="true"]):hover{background-color:var(--fkc-fill-1);color:var(--fkc-text)}
  html[data-fk-mode="real"] .fk-steps button:not([aria-current="step"]):hover:not(:disabled){background-color:var(--fkc-fill-1);color:var(--fkc-text)}
  html[data-fk-mode="real"] .notification-tabs button:not([aria-selected="true"]):hover{color:var(--fkc-text)}
  /* the switch: the knob's light deepens while the pointer is on its row */
  html[data-fk-mode="real"] .fk-toggle:hover .fk-switch i::after{box-shadow:var(--fkc-knob-light-hover)}
  /* builder tools */
  html[data-fk-mode="real"] .fk-q-tools button:hover:not(:disabled){background-color:var(--fkc-fill-2);color:var(--fkc-text)}
  html[data-fk-mode="real"] .fk-opt-key:not([aria-pressed="true"]):hover{box-shadow:var(--fkc-c-hover);color:var(--fkc-text)}
  html[data-fk-mode="real"] .fk-opt-key[aria-pressed="true"]:hover{box-shadow:var(--fkc-c-on-hover)}
  html[data-fk-mode="real"] .fk-add:hover{background-color:var(--fkc-fill-1)}
  /* notifications: the title's underline, now on pointers only */
  html[data-fk-mode="real"] .notice:hover .notice-title{text-decoration:underline;text-underline-offset:3px}
  /* sign in */
  html.fk-signed-out #signin .si-btn:hover{background-color:var(--fkc-surface)}
  /* the lesson */
  html[data-fk-mode="real"] body.course-mode .primary:hover:not(:disabled){translate:0 var(--fkc-lift);box-shadow:inset 0 1px #fff,0 5px 18px #071d2640}
  html[data-fk-mode="real"] body.quiz-mode .answer-option:hover:not(:has(input:disabled)){translate:0 calc(var(--fkc-lift) * 2);background:#3a5159}
}

/* ======================================================================================================== pressed
   After hover in the sheet, so a held press wins over a hover. The press lands in 120ms on a curve that puts half of
   it on the first frame; the release (each control's own transition) takes 220ms and eases back. The app's global
   scale(.98) snap is replaced, never stacked (transform:none). */
html[data-fk-mode="real"] body:not(.course-mode) .primary:active:not(:disabled,[aria-disabled="true"]),
html.fk-signed-out #signin .primary:active:not(:disabled,[aria-disabled="true"]){
  transform:none;translate:0 0;scale:var(--fkc-sink);background-color:var(--fkc-ink-press);box-shadow:var(--fkc-p-press);
  transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease),var(--fkc-ease);
}
html[data-fk-mode="real"] body:not(.course-mode) .secondary:active:not(:disabled,[aria-disabled="true"]),
html.fk-signed-out #signin :is(.secondary,.si-btn):active:not(:disabled,[aria-disabled="true"]){
  transform:none;translate:0 0;scale:var(--fkc-sink);background-color:var(--fkc-surface-press);box-shadow:var(--fkc-s-press);
  transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease),var(--fkc-ease);
}
/* switched on (Select, Find, Tags), pressed: a step deeper and still flat. Before the review it went to the lighter
   pressed white and gained light under a touch, which reads as letting go, not pressing */
html[data-fk-mode="real"] body:not(.course-mode) .secondary:is([aria-pressed="true"],[aria-expanded="true"]):active:not(:disabled,[aria-disabled="true"]){background-color:var(--fkc-fill-4);box-shadow:var(--fkc-s-on)}
html[data-fk-mode="real"] body:not(.course-mode) .fk-confirm-text+.fk-actions>.primary:active:not(:disabled,[aria-disabled="true"]){background-color:var(--fkc-red-wash);box-shadow:var(--fkc-d-press)}
html[data-fk-mode="real"] :is([data-member-remove-ask],[data-team-delete-ask],[data-si-off-ask],#fk-discard-ask,[data-en-end-ask],[data-set-close-ask],[data-set-miro-ask],[data-miro-disconnect-ask],[data-varchive],[data-vbulk="archive"]):active:not(:disabled){color:var(--fkc-red)}
/* words: they dim at once */
html[data-fk-mode="real"] :is(.text-btn,.fk-tlink,.back,.stage-close):active:not(:disabled),
html.fk-signed-out #signin .si-back:active{transform:none;opacity:.55;transition:opacity var(--fkc-fast) var(--fkc-ease)}
/* icon buttons */
html[data-fk-mode="real"] :is(.collapse-toggle,.notification-header button,.fk-vtree-toggle,.fk-date-nav button):active:not(:disabled,[aria-disabled="true"]){
  transform:none;scale:var(--fkc-sink-small);background-color:var(--fkc-fill-4);
  transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease),ease;
}
@media (max-width:650px){html[data-fk-mode="real"] .menu-toggle:active::before{opacity:1;scale:1;transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-ease),var(--fkc-press-curve)}}
html[data-fk-mode="real"] .fk-vcheck:active:not(:disabled) .fk-vbox{scale:var(--fkc-sink-small);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),ease,ease}
html[data-fk-mode="real"] .fk-vcheck:active:not(:disabled){transform:none}
/* chips, segments, tabs, steps */
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip,.fk-seg button,.fk-pdf .tab,.fk-steps button):active:not(:disabled){
  transform:none;scale:var(--fkc-sink);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease),var(--fkc-ease);
}
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip):not([aria-pressed="true"]):active:not(:disabled){background-color:var(--fkc-surface-press)}
html[data-fk-mode="real"] .fk-seg button:not([aria-pressed="true"]):active:not(:disabled){background-color:var(--fkc-veil-press)}
html[data-fk-mode="real"] .fk-pdf .tab:not([aria-pressed="true"]):active{background-color:var(--fkc-fill-2)}
html[data-fk-mode="real"] .view-switch button:not([aria-pressed="true"]):active{transform:none;opacity:.55;transition:color .2s ease,opacity var(--fkc-fast) var(--fkc-ease)}
html[data-fk-mode="real"] .view-switch button[aria-pressed="true"]:active{transform:none}
html[data-fk-mode="real"] .notification-tabs button:active{transform:none;opacity:.55;transition-duration:var(--fkc-fast)}
/* builder tools */
html[data-fk-mode="real"] .fk-q-tools button:active:not(:disabled){transform:none;scale:var(--fkc-sink-small);background-color:var(--fkc-fill-4);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease)}
html[data-fk-mode="real"] .fk-opt-key:active:not(:disabled){transform:none;scale:var(--fkc-sink-small);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease),var(--fkc-ease)}
html[data-fk-mode="real"] .fk-add:active:not(:disabled){transform:none;scale:var(--fkc-sink-wide);background-color:var(--fkc-fill-2);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease)}
/* the date picker */
html[data-fk-mode="real"] .fk-date-pick:active:not([aria-disabled="true"]){transform:none;scale:var(--fkc-sink);background-color:var(--fkc-fill-3);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),var(--fkc-ease),var(--fkc-ease)}
html[data-fk-mode="real"] .fk-date-day:active:not([aria-disabled="true"]) span{scale:var(--fkc-sink-small);transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-press-curve),ease,ease,ease}
/* navigation */
html[data-fk-mode="real"] .nav a:not(.sonar):active{background-color:var(--fkc-fill-4);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] .nav>button:active{transform:none;background-color:var(--fkc-fill-4);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] #profile-button:active,
html[data-fk-mode="real"] .profile-menu button:active{transform:none;background-color:var(--fkc-fill-4);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] .cmd .item:active{transform:none}
html[data-fk-mode="real"] .notice:active{transform:none;opacity:.7;transition-duration:var(--fkc-fast)}
/* rows: a fill, never a scale */
html[data-fk-mode="real"] :is(.fk-row:not(.fk-static),button.fk-real-row:not(.fk-access-row,.fk-real-static),.fk-access-row,.fk-vrow-main,.fk-vfind-item,.fk-tagopt,.fk-pp-trow):active{transform:none}
html[data-fk-mode="real"] :is(.fk-row:not(.fk-static),button.fk-real-row:not(.fk-access-row,.fk-real-static),.fk-vrow-main):active{background-color:var(--fkc-fill-2);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] .fk-access-row:active,html[data-fk-mode="real"] #fk-people .fk-pp-row:active{transform:none;background-color:var(--fkc-fill-2);transition-duration:var(--fkc-fast)}
/* list options (the palette's rows, Case Vault's finder and tag options) had no transition, so a pressed fill popped
   off on release. The press is an ink veil drawn as an inset shadow: it lands at once and eases off, while their own
   highlight (the keyboard's, a background) still moves at once */
html[data-fk-mode="real"] :is(.cmd .item,.fk-vfind-item,.fk-tagopt){box-shadow:inset 0 0 0 100vmax transparent;transition:box-shadow var(--fkc-slow) var(--fkc-ease)}
html[data-fk-mode="real"] :is(.cmd .item,.fk-vfind-item,.fk-tagopt):active{box-shadow:inset 0 0 0 100vmax var(--fkc-ink-veil);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] .fk-pp-trow:active .fk-chev{background-color:var(--fkc-fill-4);transition-duration:var(--fkc-fast)}
html[data-fk-mode="real"] .fk-vrow.lifted .fk-vrow-main:active{background-color:transparent}
/* the switch: see 9 */
/* sign in */
html.fk-signed-out #signin .si-account:active{transform:none;background-color:var(--fkc-fill-2)}
/* the lesson */
html[data-fk-mode="real"] body.course-mode .primary:active:not(:disabled){
  transform:none;translate:0 0;scale:var(--fkc-sink);box-shadow:inset 0 1px #fff,0 2px 5px #071d2626;
  transition-duration:var(--fkc-fast);transition-timing-function:var(--fkc-ease),var(--fkc-press-curve),var(--fkc-press-curve),var(--fkc-press-curve),var(--fkc-ease);
}
html[data-fk-mode="real"] body.quiz-mode .answer-option:active:not(:has(input:disabled)){transform:none;translate:0 0;scale:var(--fkc-sink-wide);transition-duration:600ms,600ms,var(--fkc-fast),var(--fkc-fast),var(--fkc-fast);transition-timing-function:var(--ease),var(--ease),var(--fkc-press-curve),var(--fkc-press-curve),var(--fkc-press-curve)}

/* ======================================================================================================== focus
   One ring: the house's 2px #4b5b6a, 3px out on drawn buttons (it follows their radius), closer on words and small
   controls. In the PDF bar it sits 1px out, as the app has it, so the frame's rounded clip never cuts it. */
html[data-fk-mode="real"] body:not(.course-mode) :is(.primary,.secondary):focus-visible{outline:2px solid var(--fkc-focus);outline-offset:3px}
html[data-fk-mode="real"] .fk-vfile-input:focus-visible+.fk-vfile-btn{outline:2px solid var(--fkc-focus);outline-offset:3px}
html[data-fk-mode="real"] body:not(.course-mode) .fk-pdf .fk-pdf-bar :is(.primary,.secondary,.tab,select):focus-visible{outline-offset:1px}
html[data-fk-mode="real"] .fk-pdf .tab:focus-visible{outline:2px solid var(--fkc-focus)}
html[data-fk-mode="real"] :is(.collapse-toggle,.notification-header button,.fk-vtree-toggle,.menu-toggle,.fk-vcheck):focus-visible{outline:2px solid var(--fkc-focus);outline-offset:2px}

/* ======================================================================================================== disabled
   Not available is not lifted: flat, at the app's own opacity, and no hover or press (those rules all skip it). */
html[data-fk-mode="real"] body:not(.course-mode) .primary:is(:disabled,[aria-disabled="true"]),
html.fk-signed-out #signin .primary:is(:disabled,[aria-disabled="true"]){box-shadow:none;cursor:default}
html[data-fk-mode="real"] body:not(.course-mode) .secondary:is(:disabled,[aria-disabled="true"]),
html[data-fk-mode="real"] body:not(.course-mode) .fk-confirm-text+.fk-actions>.primary:is(:disabled,[aria-disabled="true"]){box-shadow:var(--fkc-ring),0 0 0 0 transparent,0 0 0 0 transparent;cursor:default}
html[data-fk-mode="real"] :is(.fk-team,.fk-vchip,.fk-opt-key):disabled{box-shadow:var(--fkc-ring),0 0 0 0 transparent}
/* a button that is aria-disabled (the date picker's Clear with no date, the iPhone PDF icons while the file loads) is
   not :disabled, so the app's global press still snapped it to .98: it does not move */
html[data-fk-mode="real"] button[aria-disabled="true"]:active{transform:none}

/* ======================================================================================================== reduced motion
   The app already stops every transition. Here the movement goes too: no lift, no sink, no squeeze, no stretch, no
   nudge. Every travel above reads a token, so this only sets the tokens to rest (review: this replaced a
   translate:none!important / scale:none!important on every element). Every state still shows, by its light and fill. */
@media (prefers-reduced-motion:reduce){
  html[data-fk-mode="real"],
  html.fk-signed-out #signin{--fkc-lift:0px;--fkc-nudge:0px;--fkc-sink:1;--fkc-sink-wide:1;--fkc-sink-small:1;--fkc-squeeze:1;--fkc-stretch:1}
  html[data-fk-mode="real"] :is(.text-btn,.fk-tlink)::after,html.fk-signed-out #signin .si-back::after{transition:none}
}
