/* METeam stage and folder rack (v8, 2026-11-15; soft look: no grid, no corner marks, no rings or ruler). A dark stage in both themes: what needs the person now, the quick task field,
   and a rack of glass folders (js/deck.js) — one per screen they can open — that they swipe through and pick from.
   Readable first: text sits on solid or near-solid surfaces, glass is drawn with gradients (no backdrop blur behind words),
   glow is only light behind things. Low motion turns the rack into a flat row. */

@property --dg { syntax: '<color>'; inherits: true; initial-value: #7EA2FF; }
@property --df { syntax: '<color>'; inherits: true; initial-value: #2452E6; }

/* ---------- stage ---------- */
.stg { color-scheme: dark;
  --ink: #F3F6FC; --ink-2: #CBD2E0; --ink-3: #9CA6B9; --ink-4: #7E889B;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17); --hover: rgba(255, 255, 255, .07);
  /* glow (light on dark) and fill (carries white text, 4.5:1 or better) per department */
  --dg-mgmt: #7EA2FF; --dg-fin: #3FD68A; --dg-ops: #F5B544; --dg-svc: #35D6E3; --dg-sal: #FF8A65; --dg-mkt: #B893FF; --dg-cmp: #A3B1C6;
  --df-mgmt: #2452E6; --df-fin: #0C7F43; --df-ops: #A86500; --df-svc: #0A7B86; --df-sal: #C8421C; --df-mkt: #7438D0; --df-cmp: #4F5F78;
  --dg: var(--dg-mgmt); --df: var(--df-mgmt);
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); grid-template-rows: 1fr auto auto; grid-template-areas: "t dk" "q dk" "dock dock"; gap: 16px 28px;
  padding: 28px 30px 26px; border-radius: 28px; color: var(--ink);
  background: linear-gradient(160deg, #1C1F2E, #11131C 72%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 2px 6px rgba(8, 12, 24, .18), 0 34px 60px -34px rgba(8, 12, 24, .62), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: --dg 700ms var(--ease-out), --df 520ms var(--ease-out); }

.stg-t { grid-area: t; display: grid; gap: 6px; align-content: start; min-width: 0; padding-top: 4px; }
.stg-greet { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.stg-say { font-size: 36px; line-height: 1.08; font-weight: 680; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.stg-say b { font-weight: 700; }
.stg-sub { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.stg-sub span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.stg-sub b { font-weight: 650; color: #fff; }

.stg form.quick { grid-area: q; align-self: end; padding: 6px 6px 6px 14px; gap: 8px; border-radius: 15px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); box-shadow: none; }
.stg form.quick:focus-within { border-color: color-mix(in oklab, var(--dg) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--dg) 24%, transparent); }
.stg form.quick .in { color: var(--ink); }
.stg form.quick .in::placeholder { color: var(--ink-3); }
.stg form.quick .in.qd { width: 138px; color: var(--ink-2); }
/* beside the rack the column is narrow: the title gets its own line, the date and the button share the next */
@media (min-width: 981px) { .stg:not(.nodeck) form.quick { flex-wrap: wrap; padding: 8px 8px 8px 14px; } .stg:not(.nodeck) form.quick .in:not(.qd) { flex: 1 1 calc(100% - 40px); } .stg:not(.nodeck) form.quick .in.qd { flex: 1 1 auto; margin-left: 26px; } }
.stg .q-box { border-color: var(--ink-4); }
.stg form.quick .btn.pri { background: #fff; color: #0E1422; border-color: transparent; box-shadow: none; }
.stg form.quick .btn.pri:hover { background: #E4E9F4; }
.stg .form-err { grid-column: 1 / -1; }

.stg.nodeck { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "q"; gap: 22px; }
.stg.nodeck form.quick { max-width: 640px; }

/* ---------- the rack ---------- */
.dk { --fw: 136px; --fh: 190px; --g: 50px; --cg: 82px; --cl: 20px; --ry: 49; --pick: 43%;
  grid-area: dk; position: relative; height: 312px; min-width: 0; outline: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dk:focus-visible { box-shadow: none; }
.dk:focus-visible .fd.lit .fd-in, .dk.flat:focus-visible .fd.on .fd-in { outline: 2px solid #fff; outline-offset: 3px; }
.dk-rail { position: absolute; inset: 0; perspective: 1150px; perspective-origin: var(--pick) 44%; cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 86%, transparent 100%); }
.dk.drag .dk-rail { cursor: grabbing; }
.dk-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: var(--pick) 72%; transform: rotateX(5deg); }
/* light on the floor under the picked folder */
.dk-floor { position: absolute; left: calc(var(--pick) - 210px); bottom: 2px; width: 420px; height: 64px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--dg) 46%, transparent), transparent); filter: blur(6px); opacity: .9; }

.fd { position: absolute; left: var(--pick); bottom: 40px; width: var(--fw); height: var(--fh); margin-left: calc(var(--fw) / -2); border-radius: 18px; cursor: pointer; will-change: transform; transform-origin: 50% 60%; backface-visibility: hidden; }
.fd-in { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; color: #10182A;
  background: linear-gradient(172deg, rgba(255, 255, 255, .88), rgba(244, 247, 252, .66) 44%, rgba(226, 232, 244, .30));
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -30px 40px -30px rgba(10, 14, 26, .35), -14px 22px 30px -18px rgba(0, 0, 0, .85);
  transition: color 160ms; }
/* the folder's own colour floods in as it comes to the front (--a from the rack: 0 … 1) */
.fd-in::before { content: ""; position: absolute; inset: 0; opacity: var(--a, 0);
  background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .34), transparent 60%), linear-gradient(168deg, color-mix(in oklab, var(--df) 84%, #fff), var(--df) 50%, color-mix(in oklab, var(--df) 80%, #000)); }
.fd.lit .fd-in, .dk.flat .fd.on .fd-in { color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px color-mix(in oklab, var(--dg) 40%, transparent), 0 26px 44px -18px color-mix(in oklab, var(--df) 80%, #000), 0 0 54px -6px color-mix(in oklab, var(--dg) 55%, transparent); }
.dk.flat .fd.on { --a: 1; }
/* the sheets inside */
.fd-sh { position: absolute; left: 30%; right: 9%; top: 9%; height: 46%; border-radius: 9px 9px 0 0; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7); border-bottom: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 12px, color-mix(in oklab, currentColor 20%, transparent) 12px 17px); background-size: 62% 100%; background-position: 22% 8px; background-repeat: no-repeat; }
.fd-sh.s2 { left: 38%; right: 15%; top: 14%; opacity: .7; }
.fd.lit .fd-sh, .dk.flat .fd.on .fd-sh { background-color: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); }
/* the pocket in front of the sheets, with its tab */
.fd-pk { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 62%; border-radius: 0 14px 0 0; border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(240, 244, 251, .54) 60%, rgba(226, 232, 244, .32)); box-shadow: 0 -10px 18px -12px rgba(10, 14, 26, .4); }
.fd-tab { position: absolute; left: -1px; top: -14px; width: 48%; height: 15px; border-radius: 12px 14px 0 0; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .78); border-bottom: 0; }
.fd.lit .fd-pk, .dk.flat .fd.on .fd-pk { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .36); }
.fd.lit .fd-tab, .dk.flat .fd.on .fd-tab { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .36); }
/* spine: the name runs up the left edge, the mark and the number sit beside it — the part of every folder that stays in view */
.fd-name { position: absolute; left: 11px; bottom: 14px; max-height: calc(100% - 30px); writing-mode: vertical-rl; transform: rotate(180deg); font: 660 16px/1.15 var(--font); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-n { position: absolute; left: 39px; bottom: 14px; display: grid; gap: 5px; justify-items: start; }
.fd-n .i { width: 19px; height: 19px; stroke-width: 1.9; }
.fd-n b { font: 650 15px/1 var(--mono); letter-spacing: -.02em; min-height: 15px; }
/* needs someone now: the one red on the rack */
.fd.hot .fd-n::before { content: ""; position: absolute; left: 15px; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px rgba(255, 255, 255, .92); }
.fd.hot.lit .fd-n::before, .dk.flat .fd.hot.on .fd-n::before { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
@media (hover: hover) and (pointer: fine) { .dk:not(.drag) .fd:not(.lit):hover .fd-in { background: linear-gradient(172deg, #fff, rgba(248, 250, 254, .82) 44%, rgba(232, 238, 248, .46)); } }

/* the card that floats over the picked folder: what it is, and its one number */
.dk-card { position: absolute; z-index: 5; left: calc(var(--pick) - var(--fw) / 2 - 172px); top: 18px; width: 214px; display: grid; gap: 1px; padding: 14px 16px 15px; border-radius: 18px; overflow: hidden; color: #10182A; text-decoration: none;
  background: linear-gradient(150deg, #FFFFFF, #EEF2F9); border: 1px solid #fff; box-shadow: 0 26px 44px -22px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 255, 255, .9) inset; transition: transform var(--t-3) var(--ease-spring), box-shadow var(--t-2); }
.dk-card:hover { text-decoration: none; transform: translateY(-3px); }
.dc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dc-h b { font-size: 16.5px; font-weight: 640; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-h .i { width: 17px; height: 17px; flex: none; color: #4A556B; transition: transform var(--t-3) var(--ease-out); }
.dk-card:hover .dc-h .i { transform: translate(2px, -2px); color: #10182A; }
.dk-card small { font-size: 12.5px; color: #4A556B; }
.dc-f { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; min-height: 42px; }
.dc-fig { font: 380 44px/.9 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.dc-sp { display: flex; align-items: flex-end; gap: 2.5px; height: 30px; padding-bottom: 2px; }
.dc-sp i { display: block; width: 4px; height: var(--h); border-radius: 2px; background: color-mix(in oklab, var(--df) 85%, #fff); opacity: .5; }
.dc-sp i:last-child { opacity: 1; }
.dc-blob { position: absolute; right: -34px; bottom: -44px; width: 150px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--dg) 70%, transparent), transparent); opacity: .7; pointer-events: none; }


.dk-ctl { position: absolute; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 6px; }
.dk-b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); cursor: pointer; transition: background var(--t-1), color var(--t-1), transform var(--t-2) var(--ease-out); }
.dk-b:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dk-b:active { transform: scale(.92); }
.dk-b .i { width: 15px; height: 15px; }

/* ---------- dock: the picked folder's numbers and the way in ---------- */
.dock { grid-area: dock; position: relative; display: flex; align-items: center; gap: 14px 22px; padding: 14px 16px 14px 14px; border-radius: 18px; color: #fff; min-width: 0;
  background: radial-gradient(420px 140px at 12% -40%, rgba(255, 255, 255, .26), transparent 70%), linear-gradient(120deg, color-mix(in oklab, var(--df) 90%, #fff), var(--df) 46%, color-mix(in oklab, var(--df) 76%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 34px -22px var(--df); }
.dock-i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.dock-i .i { width: 21px; height: 21px; stroke-width: 1.8; }
.dock-t { display: grid; gap: 1px; min-width: 0; flex: 0 1 auto; }
.dock-t b { font-size: 17px; font-weight: 650; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-t small { font-size: 13px; color: rgba(255, 255, 255, .88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-f { flex: 1 1 auto; display: flex; justify-content: flex-end; gap: 0; min-width: 0; }
.dfx { display: grid; gap: 3px; padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .22); min-width: 0; }
.dfx b { font: 600 20px/1 var(--mono); letter-spacing: -.03em; }
.dfx span { font-size: 12.5px; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.dfx.wait b { opacity: .5; }
.dock-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 620; color: #10182A; background: #fff; text-decoration: none; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .6); transition: transform var(--t-3) var(--ease-spring), background var(--t-1); }
.dock-go:hover { text-decoration: none; transform: translateY(-2px); background: #F1F4FA; }
.dock-go:active { transform: scale(.97); }
.dock-go .i { width: 16px; height: 16px; transition: transform var(--t-3) var(--ease-out); }
.dock-go:hover .i { transform: translate(2px, -2px); }

/* ---------- motion ---------- */
@keyframes dk-swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); filter: blur(3px); } }
@keyframes dk-card-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes dk-float { 50% { transform: translateY(-4px); } }
@keyframes dk-ring-in { from { opacity: 0; transform: scale(.7) rotate(-40deg); } }
@keyframes dk-spin { to { transform: rotate(360deg); } }
@keyframes dk-rise { from { opacity: 0; transform: translateY(14px); } }
:root:not([data-motion="low"]) .dk-card.dk-sw > :not(.dc-blob), :root:not([data-motion="low"]) .dock.dk-sw > :not(.dock-go) { animation: dk-swap 300ms var(--ease-out) both; }
:root:not([data-motion="low"]) .dock.dk-sw > .dock-f { animation-delay: 50ms; }
:root[data-motion="high"] .dk-card { animation: dk-float 6.5s ease-in-out infinite; }
:root[data-motion="high"] .dk-card:hover { animation-play-state: paused; }
/* first arrival on Home: the stage rises, the rack is dealt out (js), then the card, the arc and the dock follow */
:root[data-motion="high"] .enter .stg { animation: dk-rise 520ms var(--ease-out) both; }
:root[data-motion="high"] .dk.deal .dk-card { animation: dk-card-in 620ms var(--ease-spring) both 520ms; }
:root[data-motion="high"] .dk.deal .dk-halo, :root[data-motion="high"] .dk.deal .dk-ctl { animation: fade 600ms linear both 500ms; }
:root[data-motion="high"] .enter .dock { animation: dk-rise 560ms var(--ease-out) both 380ms; }
:root[data-motion="high"] .enter .stg-t > *, :root[data-motion="high"] .enter .stg form.quick { animation: dk-rise 520ms var(--ease-out) both; animation-delay: calc(80ms + var(--k, 0) * 60ms); }
.stg-t > :nth-child(2) { --k: 1; } .stg-t > :nth-child(3) { --k: 2; } .stg-t > :nth-child(4) { --k: 3; } .stg form.quick { --k: 4; }
/* opening: the picked folder comes at the viewer while the rest lets go */
.dk.opening .fd { transition: opacity 160ms linear; opacity: 0 !important; }
.dk.opening .fd.lit { opacity: 1 !important; transition: scale 240ms var(--ease-out); scale: 1.16; }
.dk.opening .dk-card { transition: opacity 140ms linear, transform 200ms var(--ease-out); opacity: 0; transform: translateY(-10px); }

/* ---------- low motion: a flat row that scrolls ---------- */
.dk.flat { height: auto; touch-action: auto; display: grid; align-content: center; gap: 8px; }
.dk.flat .dk-ctl { position: static; justify-content: flex-end; }
.dk.flat .dk-rail { position: static; perspective: none; cursor: default; -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; padding: 6px 2px 12px; }
.dk.flat .dk-tilt { position: static; display: flex; gap: 10px; transform: none; }
.dk.flat .fd { position: relative; left: auto; bottom: auto; margin: 0; flex: none; width: 108px; height: 150px; scroll-snap-align: center; transform: none !important; opacity: 1 !important; }
.dk.flat .dk-card, .dk.flat .dk-halo, .dk.flat .dk-floor { display: none; }

/* ---------- widths ---------- */
@media (max-width: 1280px) {
  .stg { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 16px 20px; padding: 24px 24px 22px; }
  .stg-say { font-size: 31px; }
  .dk { --fw: 124px; --fh: 174px; --g: 44px; --cg: 76px; height: 292px; }
  .dk-card { width: 196px; left: calc(var(--pick) - var(--fw) / 2 - 150px); }
  .dc-fig { font-size: 40px; }
  .dfx { padding: 0 16px; }
}
@media (max-width: 980px) {
  .stg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "dk" "dock" "q"; }
  .dk { --pick: 46%; }
}
@media (max-width: 720px) {
  .stg { padding: 18px 16px 16px; border-radius: 22px; gap: 14px; }
  .stg-greet { display: none; }
  .stg-k { margin-bottom: 6px; }
  .stg-say { font-size: 27px; }
  .stg-sub { margin-top: 6px; }
  .dk { --fw: 112px; --fh: 158px; --g: 40px; --cg: 68px; --cl: 14px; --pick: 50%; height: 270px; margin: 0 -16px; }
  .dk-card { width: 172px; left: 16px; top: 10px; padding: 12px 14px 13px; border-radius: 16px; }
  .dc-h b { font-size: 15.5px; }
  .dc-fig { font-size: 34px; }
  .dc-f { margin-top: 8px; min-height: 34px; }
  .dk-ctl { right: 16px; }
  .dk-b { width: 40px; height: 40px; }
  .dock { flex-wrap: wrap; padding: 14px; border-radius: 16px; }
  .dock-t { flex: 1 1 0; }
  .dock-t b { font-size: 16px; white-space: normal; line-height: 1.15; }
  .dock-go { height: 44px; }
  .dock-f { order: 3; flex: 1 1 100%; justify-content: flex-start; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
  .dfx { flex: 1 1 0; padding: 0 12px; }
  .dfx:first-child { padding-left: 0; border-left: 0; }
  .dfx span { white-space: normal; line-height: 1.2; }
  .dk.flat { margin: 0 -16px; }
  .dk.flat .dk-rail { padding: 6px 16px 14px; }
  .stg form.quick .in.qd { width: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .fd-in { background: #E9EDF5; } .fd-pk, .fd-tab { background: #F4F6FA; }
}
@media (forced-colors: active) {
  .fd-in, .dock, .dk-card { border: 1px solid CanvasText; } .fd.lit .fd-in, .dk.flat .fd.on .fd-in { outline: 2px solid Highlight; }
}

/* ---------- v8: soft light instead of instruments ---------- */
/* colour drifts slowly behind everything on the stage; nothing sharp, nothing that blinks */
.stg::before { content: ""; position: absolute; inset: -18%; z-index: -1; pointer-events: none; filter: blur(64px); opacity: .8;
  background:
    radial-gradient(36% 44% at 76% 60%, color-mix(in oklab, var(--dg) 52%, transparent), transparent 70%),
    radial-gradient(32% 40% at 12% 6%, rgba(156, 132, 255, .5), transparent 70%),
    radial-gradient(30% 34% at 48% 104%, rgba(94, 214, 200, .3), transparent 70%); }
@keyframes stg-drift { to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); } }
:root[data-motion="high"] .stg::before { animation: stg-drift 24s ease-in-out infinite alternate; }
/* the line above the title: a plain pill */
.stg-k { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 28px; margin-bottom: 12px; padding: 0 12px 0 10px; border-radius: 999px; font: 550 12.5px/1 var(--font); color: var(--ink-2); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .09); }
.stg-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dg); transition: background 600ms; }

/* a halo behind the picked folder */
.dk-halo { position: absolute; left: calc(var(--pick) - 200px); top: calc(50% - 214px); width: 400px; height: 400px; border-radius: 50%; pointer-events: none; opacity: .85;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--dg) 30%, transparent), transparent 74%); }
/* where the rack is: one dot per folder, the picked one stretches */
.dk-dots { display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.dk-dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .26); transition: width 420ms var(--ease-spring), background var(--t-2); }
.dk-dot.on { width: 20px; background: #fff; }
.dk-idx { min-width: 54px; text-align: center; font: 550 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.dk-idx b { font-weight: 650; color: #fff; }
.fd-n b { font: 650 15px/1 var(--font); font-variant-numeric: tabular-nums; }

/* folders: the sheets can come up out of the pocket */
.fd-in { overflow: visible; transition: color 160ms, transform 420ms var(--ease-spring); }
.fd-in::before { border-radius: inherit; }
.fd-pk { border-radius: 0 14px 17px 17px; }
.fd-sh { transform-origin: 50% 100%; transition: transform 460ms var(--ease-spring), background-color var(--t-2); }
/* the picked folder stands a little open */
.fd.lit .fd-sh, .dk.flat .fd.on .fd-sh { transform: translateY(-6px) rotate(-2deg); }
.fd.lit .fd-sh.s2, .dk.flat .fd.on .fd-sh.s2 { transform: translateY(-11px) rotate(3deg); }
/* under the pointer: the folder lifts and its sheets come up */
@media (hover: hover) and (pointer: fine) {
  :root:not([data-motion="low"]) .dk:not(.drag) .fd:hover .fd-in { transform: translateY(-9px); }
  :root:not([data-motion="low"]) .dk:not(.drag) .fd:hover .fd-sh { transform: translateY(-13px) rotate(-4deg); }
  :root:not([data-motion="low"]) .dk:not(.drag) .fd:hover .fd-sh.s2 { transform: translateY(-21px) rotate(5deg); }
}
/* under a finger (or a held mouse button): it gives a little, the sheets come up */
:root:not([data-motion="low"]) .fd.press .fd-in { transform: scale(.955); transition-duration: 140ms; }
:root:not([data-motion="low"]) .fd.press .fd-sh { transform: translateY(-13px) rotate(-4deg); }
:root:not([data-motion="low"]) .fd.press .fd-sh.s2 { transform: translateY(-21px) rotate(5deg); }
.dk-b { transition: background var(--t-1), color var(--t-1), transform 380ms var(--ease-spring); }
.dk-b:hover { transform: scale(1.08); }
.dk-b:active { transform: scale(.9); transition-duration: 90ms; }
