/* File Florist, live: the app's folder page rebuilt for the web, at the app's own sizes (a
   1320 × 840 point window, scaled to fit). Colours, type, radii and motion come from the app's
   Studio.swift; the artwork in art/ was drawn by the app itself (ArtExport.swift). */

.ff-stage {
  --canvasTop: #F6F2EA; --canvasBottom: #F1EBDF; --glow: #EFE2CC; --ink: #2A2723; --serif: #94602A;
  --accent: #A9692E; --accentText: #8E561F; --petalTip: #EED39A; --petalBase: #B27A2C; --muted: #6E675A;
  --card: #FBF9F4; --onInk: #FBF9F4; --cardBorder: #E4DCCB; --shadow: rgba(58, 42, 22, 0.07);
  --done: #186A45; --vermilion: #C8332A; --slot: #EDE6D7;
  --display: "Hiragino Mincho ProN", "Shippori Mincho", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --label: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Inter", -apple-system, system-ui, sans-serif;
  --snap: ease; --snap-d: 450ms; --settle: ease; --settle-d: 720ms; --float: ease; --float-d: 610ms;
  --gentle: ease; --gentle-d: 540ms; --bounce: ease; --bounce-d: 660ms;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}
.ff-stage * { box-sizing: border-box; }
.ff-stage :focus { outline: none; }
.ff-stage :focus-visible { outline: 2px solid rgba(169, 105, 46, 0.6); outline-offset: 2px; }
.ff-stage input:focus-visible { outline: none; }
.ff-panel:focus-visible, .ff-sheet:focus-visible { outline: none; }

.ff-window {
  position: absolute; left: 0; top: 0;
  width: 1320px; height: 840px;
  transform-origin: 0 0;
  border-radius: 17.5px;
  overflow: hidden;
  background: var(--canvasTop);
  box-shadow: 0 0 0 0.5px rgba(42, 30, 15, 0.22), 0 22px 70px rgba(70, 50, 25, 0.22), 0 6px 18px rgba(70, 50, 25, 0.10);
  font-family: var(--sans);
  color: var(--ink);
  font-size: 13px;
  line-height: normal;
  cursor: default;
  isolation: isolate;
}

/* SF Symbols, drawn by the app in black and tinted here. */
.sym {
  display: inline-block; flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-position: center; mask-position: center;
}

/* ---------- The paper (StudioCanvas) ---------- */
.ff-canvas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ff-canvas > div { position: absolute; inset: 0; }
.ff-canvas .base { background: linear-gradient(var(--canvasTop), var(--canvasBottom)); }
.ff-canvas .glow1 { background: radial-gradient(circle 520px at 82% 5%, rgba(239, 226, 204, 0.85) 1.9%, rgba(239, 226, 204, 0) 100%); }
.ff-canvas .glow2 { background: radial-gradient(circle 460px at 5% 90%, rgba(239, 226, 204, 0.45) 2.2%, rgba(239, 226, 204, 0) 100%); }
.ff-canvas .seigaiha {
  background-size: 52px 26px; opacity: 0.11;
  -webkit-mask-image: linear-gradient(transparent 62%, #000 100%); mask-image: linear-gradient(transparent 62%, #000 100%);
}
.ff-canvas .washi { background-size: 160px 160px; opacity: 0.85; mix-blend-mode: multiply; }

/* ---------- Sidebar ---------- */
.ff-sidebar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 236px; z-index: 5;
  background: linear-gradient(rgba(242, 238, 231, 0.96), rgba(240, 234, 224, 0.97));
  box-shadow: inset -0.5px 0 0 rgba(120, 100, 70, 0.05);
}
.ff-lights { position: absolute; left: 0; top: 0; }
.ff-lights i { position: absolute; top: 19px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.ff-lights i:nth-child(1) { left: 18.75px; background: #FF5F57; }
.ff-lights i:nth-child(2) { left: 41.75px; background: #FEBC2E; }
.ff-lights i:nth-child(3) { left: 64.75px; background: #28C840; }

.ff-glass {
  position: absolute; display: flex; align-items: center; justify-content: space-around;
  height: 36.5px; border-radius: 18.25px;
  background: rgba(246, 243, 238, 0.72);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(60, 45, 25, 0.10), 0 1px 4px rgba(60, 45, 25, 0.06);
  color: #5d574f;
}
.ff-glass .sym { opacity: 0.85; }

.ff-search {
  position: absolute; left: 9.5px; top: 60.5px; width: 216.5px; height: 28.5px; border-radius: 14.25px;
  background: rgba(225, 219, 209, 0.55);
  box-shadow: inset 0 0 0 0.5px rgba(80, 60, 30, 0.08);
  display: flex; align-items: center;
}
.ff-search .sym { margin-left: 9px; color: #6d675f; }
.ff-search input {
  appearance: none; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px;
  color: var(--ink); flex: 1; min-width: 0; height: 100%; padding: 0 6px 0 5px; letter-spacing: 0;
  user-select: text; -webkit-user-select: text; cursor: text;
}
.ff-search input::placeholder { color: #8b857b; }
.ff-search .clear { width: 16px; height: 16px; margin-right: 6px; color: #a39d93; cursor: pointer; display: none; }
.ff-search.has-text .clear { display: block; }
.ff-search.focused { box-shadow: inset 0 0 0 0.5px rgba(80, 60, 30, 0.10), 0 0 0 3px rgba(169, 105, 46, 0.28); }

.ff-side-section { position: absolute; left: 14.5px; font-size: 11px; font-weight: 600; color: #a29b91; letter-spacing: 0.06px; }
.ff-row {
  position: absolute; left: 10px; width: 216px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; padding: 0 6px 0 8.5px; font-size: 13px; color: #6e675d;
}
.ff-row.selected { background: rgba(214, 207, 196, 0.48); color: #6a645b; font-weight: 600; }
.ff-row .icon { width: 20px; display: flex; justify-content: center; margin-right: 7.5px; color: var(--serif); }
.ff-row .ff-lbl { flex: 1; }
.ff-pill {
  font: 600 10.5px/1 ui-rounded, "SF Pro Rounded", var(--sans); font-variant-numeric: tabular-nums;
  color: var(--accentText); background: rgba(169, 105, 46, 0.15); border-radius: 8px;
  min-width: 18px; height: 16px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
}
.ff-row .ring { width: 12px; height: 12px; }

.ff-side-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.ff-add { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; padding-left: 0; margin-top: -1.5px; margin-bottom: 1.5px; }
.ff-auto {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.04);
}
.ff-auto .bolt { width: 16px; display: flex; justify-content: center; color: #8a8379; }
.ff-auto .texts { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-top: -1.5px; margin-bottom: 1.5px; }
.ff-auto .t1 { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ff-auto .t2 { font-size: 11px; color: #8a8379; }
.ff-switch { width: 36px; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.09); position: relative; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.05); }
.ff-switch::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 22px; height: 13px; border-radius: 6.5px; background: #fff; box-shadow: 0 0.5px 2px rgba(0,0,0,0.22); }
.ff-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #7b756b; padding-left: 0; }
.ff-status .sym { color: var(--accentText); }

/* ---------- Toolbar and the page ---------- */
.ff-detail { position: absolute; left: 236px; top: 0; right: 0; bottom: 0; }
.ff-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.ff-page::-webkit-scrollbar { display: none; }
.ff-page.scrolled { -webkit-mask-image: linear-gradient(transparent 0, #000 64px); mask-image: linear-gradient(transparent 0, #000 64px); }
.ff-content { position: relative; margin: 72px 40px 44px; max-width: 1440px; }

.ff-topbar { display: flex; align-items: flex-end; gap: 24px; }
.ff-topbar .ff-tleft { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.ff-brand { display: flex; align-items: center; gap: 8px; height: 17px; }
.ff-brand .kanji { font-family: var(--display); font-weight: 300; font-size: 12.5px; color: var(--serif); }
.ff-caps { font-family: var(--label); font-weight: 500; font-size: 9.5px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.ff-title {
  font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.3px; color: var(--ink);
  white-space: nowrap; position: relative;
}
.ff-title .accent { font-weight: 300; font-size: 1.04em; color: var(--serif); }
.ff-statusline { display: flex; align-items: center; gap: 7px; margin-top: 1px; font-size: 13.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-statusline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--done); transition: background-color 300ms; }
.ff-statusline.working .dot { background: var(--accent); animation: ff-pulse 1.2s ease-in-out infinite; }
@keyframes ff-pulse { 50% { opacity: 0.3; } }
.ff-actions { display: flex; gap: 10px; padding-bottom: 4px; position: relative; }

.pill {
  font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0;
  height: 32px; padding: 0 16px; border-radius: 16px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--cardBorder), 0 2px 6px var(--shadow);
  transition: transform var(--snap-d) var(--snap), box-shadow var(--snap-d) var(--snap), opacity 200ms;
}
.pill.large { font-size: 14.5px; height: 40px; padding: 0 22px; border-radius: 20px; }
.pill.prominent { color: var(--onInk); background: var(--ink); box-shadow: 0 2px 6px var(--shadow); }
.pill:hover:not([disabled]) { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, 0.5), 0 4px 10px var(--shadow); }
.pill.prominent:hover:not([disabled]) { box-shadow: 0 4px 10px var(--shadow); }
.pill:active:not([disabled]) { transform: scale(0.96); box-shadow: inset 0 0 0 1px var(--cardBorder), 0 1px 2px var(--shadow); }
.pill[disabled] { opacity: 0.45; cursor: default; }
.pill .sym { color: currentColor; }

.ff-board { position: relative; display: grid; grid-template-columns: 319px 310px 319px; column-gap: 28px; margin-top: 28px; align-items: start; }
.ff-col { display: flex; flex-direction: column; gap: 8px; }
.ff-section { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.ff-section .name { font-family: var(--display); font-weight: 300; font-size: 18px; color: var(--serif); }
.ff-section .rule { width: 64px; height: 1.5px; border-radius: 1px; background: linear-gradient(90deg, rgba(169, 105, 46, 0.7), rgba(169, 105, 46, 0)); }
.ff-section.hidden { visibility: hidden; }
.ff-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-items: start; }

.ff-card {
  position: relative; padding: 13px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow);
  cursor: pointer; transform-origin: center;
  transition: box-shadow var(--snap-d) var(--snap), translate var(--snap-d) var(--snap), scale var(--snap-d) var(--snap), opacity 300ms;
}
.ff-card:hover { box-shadow: inset 0 0 0 1.5px rgba(169, 105, 46, 0.55), 0 6px 32px var(--shadow); translate: 0 -1.5px; }
.ff-card:active { scale: 0.98; }
.ff-card .ff-head { display: flex; align-items: center; gap: 7px; height: 16px; margin-bottom: 12px; }
.ff-card .glyph { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; position: relative; color: rgba(42, 39, 35, 0.7); }
.ff-card .title { font-family: var(--label); font-weight: 500; font-size: 12.5px; color: var(--ink); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; margin-top: -2px; }
.ff-card .count { font-family: var(--label); font-weight: 400; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); position: relative; height: 16px; line-height: 16px; margin-top: -2px; min-width: 8px; text-align: right; overflow: visible; }
.ff-card .count.landed { color: var(--ink); }
.ff-card .count span { display: block; }
.ff-slots { display: grid; grid-template-columns: repeat(12, 20px); gap: 4px; min-height: 20px; }
.ff-slots.ff-rowslots { grid-template-columns: repeat(9, 26px); gap: 5px; }
.ff-slot { width: 20px; height: 20px; border-radius: 4.8px; position: relative; }
.ff-slots.ff-rowslots .ff-slot { width: 26px; height: 26px; border-radius: 6.24px; }
.ff-slot.empty { background: var(--slot); }
.ff-slot.blank { background: transparent; }

/* A file's picture on a rounded tile (FileTile). */
.tile {
  position: relative; overflow: hidden; flex: none; background: var(--canvasBottom);
  box-shadow: inset 0 0 0 0.75px var(--cardBorder);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tile img.icon { object-fit: contain; padding: 12%; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.75px var(--cardBorder); pointer-events: none; }
.tile.pale { opacity: 0.42; filter: saturate(0.2); }

/* ---------- The pond ---------- */
.ff-stagecol { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ff-sphere { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ff-sphere .zone { position: relative; width: 100%; height: 340px; }
.ff-pond { position: absolute; left: calc(50% - 280px); top: -110px; width: 560px; height: 560px; pointer-events: none; isolation: isolate; }
.ff-pond .world, .ff-pond .tiles { position: absolute; inset: 0; transform-origin: 280px 280px; }
.ff-pond .water, .ff-pond .shimmer { position: absolute; background-size: 100% 100%; }
.ff-pond .shimmer { overflow: hidden; opacity: 0.62; }
.ff-pond .glint { position: absolute; background-size: 150px 150px; will-change: transform; }
.ff-pond .koi { position: absolute; width: 64px; height: 28px; left: 0; top: 0; opacity: 0.82; will-change: transform; }
.ff-pond .koi .body { position: absolute; left: 0.5px; top: 0; width: 63px; height: 28px; background-repeat: no-repeat; }
.ff-pond .koi .shadow { position: absolute; left: 11px; top: 12px; width: 48px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, 0.14); filter: blur(3px); }
.ff-pond .ptile { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.ff-pond .ptile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ff-pond .ring { position: absolute; border: 1.2px solid rgba(255, 255, 255, 0.95); border-radius: 50%; opacity: 0; }
.ff-pondwater { position: absolute; left: 0; top: 0; width: 400px; height: 224px; pointer-events: none; }
.ff-bloom { position: absolute; pointer-events: none; overflow: visible; }
.ff-caption { font-family: var(--display); font-weight: 300; font-size: 15px; color: var(--muted); height: 22px; line-height: 22px; margin-top: -1px; margin-bottom: 1px; transition: opacity 250ms; white-space: nowrap; }

/* ---------- Flights, petals, branch ---------- */
.ff-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.ff-flight { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.ff-flight img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ff-flight .shade { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; border-radius: 10%; }
.ff-ripple { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1.2px solid var(--accent); opacity: 0; will-change: transform, opacity; }
.ff-branch { position: absolute; top: 0; right: 0; width: 560px; height: 130px; pointer-events: none; }
.ff-branch div { position: absolute; background-size: 100% 100%; background-repeat: no-repeat; }
.ff-falling { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ff-falling img { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* ---------- The sorted bar ---------- */
.ff-sortedbar {
  position: absolute; left: 50%; bottom: 22px; height: 42px; border-radius: 21px; z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 14px; white-space: nowrap;
  background: rgba(251, 249, 244, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(60, 45, 25, 0.10), 0 7px 32px rgba(58, 42, 22, 0.084);
  font-size: 13px; transform: translate(-50%, 0); opacity: 0; visibility: hidden;
}
.ff-sortedbar .msg { font-weight: 500; color: var(--ink); }
.ff-sortedbar .div { width: 1px; height: 16px; background: var(--cardBorder); }
.ff-sortedbar button { appearance: none; border: 0; background: none; font: inherit; padding: 0; cursor: pointer; }
.ff-sortedbar .undo { font-weight: 600; color: var(--accentText); }
.ff-sortedbar .finder { font-weight: 500; color: rgba(42, 39, 35, 0.8); }
.ff-sortedbar .x { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ff-sortedbar .meter { position: absolute; left: 18px; bottom: 1px; height: 2px; border-radius: 1px; background: rgba(169, 105, 46, 0.85); }

/* ---------- The card panel ---------- */
.ff-veil {
  position: absolute; inset: 0; z-index: 8; opacity: 0; display: none;
  background: rgba(241, 235, 223, 0.42); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.ff-panel {
  position: absolute; z-index: 9; width: 780px; height: 620px; display: none; flex-direction: column;
  border-radius: 22px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow), 0 16px 68px var(--shadow);
}
.ff-panel .ff-head { display: flex; align-items: flex-start; padding: 26px 28px 18px; }
.ff-panel .ff-head .texts { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ff-panel .ff-head .name { font-family: var(--display); font-weight: 300; font-size: 30px; color: var(--serif); line-height: 1; }
.ff-panel .ff-head .sub { font-size: 12px; color: var(--muted); }
.ff-panel .list { flex: 1; overflow-y: auto; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.ff-panel .foot { display: flex; align-items: center; padding: 16px 28px; border-top: 1px solid var(--cardBorder); gap: 10px; }
.ff-panel .foot .ff-hint { flex: 1; font-size: 12px; color: var(--muted); }
.ff-prow {
  display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; position: relative;
  transition: background-color var(--snap-d) var(--snap), box-shadow var(--snap-d) var(--snap);
}
.ff-prow:hover { background: rgba(237, 230, 215, 0.6); }
.ff-prow.chosen { background: var(--slot); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, 0.45); }
.ff-prow .texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ff-prow .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-prow .was { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ff-prow .was .sym { color: rgba(110, 103, 90, 0.8); }
.ff-prow .tools { display: flex; gap: 5px; opacity: 0; transition: opacity 200ms; }
.ff-prow:hover .tools, .ff-prow.chosen .tools { opacity: 1; }
.ff-prow input.rename {
  font: 600 13.5px var(--sans); color: var(--ink); height: 24px; padding: 0 6px; border-radius: 6px; border: 0; outline: 0;
  background: var(--card); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, 0.7); width: 100%; user-select: text; -webkit-user-select: text;
}
.tbtn {
  width: 24px; height: 24px; border-radius: 12px; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(246, 242, 234, 0.85); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tbtn:hover { background: #fff; }
.why { display: flex; flex-direction: column; gap: 3px; }
.why .line { display: flex; align-items: baseline; gap: 4px; font-size: 10.5px; color: var(--serif); line-height: 1.25; }
.why .line .sym { color: var(--accentText); align-self: center; }
.why .line .ic { width: 11px; display: flex; justify-content: center; align-self: center; }

/* ---------- Why this name? ---------- */
.ff-sheet {
  position: absolute; z-index: 12; left: 50%; top: 52px; width: 480px; display: none; flex-direction: column; gap: 16px;
  padding: 26px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(42, 30, 15, 0.18), 0 24px 70px rgba(60, 40, 20, 0.22), 0 4px 14px rgba(60, 40, 20, 0.08);
  transform-origin: 50% 0;
}
.ff-sheet > * { position: relative; }
.ff-sheet .top { display: flex; gap: 16px; align-items: flex-start; }
.ff-sheet .top .texts { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ff-sheet .file { font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; line-height: 16.5px; }
.ff-sheet .file span { white-space: nowrap; }
.ff-sheet .was { font-size: 11.5px; color: var(--muted); }
.ff-sheet .body { display: flex; flex-direction: column; gap: 10px; }
.ff-sheet .kind { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accentText); }
.ff-sheet .saw { font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); line-height: 1; }
.ff-sheet .reading { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ff-sheet .buttons { display: flex; justify-content: space-between; }
.ff-sheet .why .line { font-size: 10.5px; }
.ff-dim { position: absolute; inset: 0; z-index: 11; display: none; background: rgba(40, 30, 20, 0.06); }

/* ---------- Search ---------- */
.ff-searchpage { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; overflow-y: auto; scrollbar-width: none; }
.ff-searchpage .inner { width: 900px; margin: 0 auto; padding: 77px 0 44px; display: flex; flex-direction: column; gap: 14px; }
.ff-searchpage .ff-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.ff-searchpage .titlerow { display: flex; align-items: flex-start; justify-content: space-between; }
.ff-searchpage .titlerow .pill { margin-top: 10.6px; }
.ff-searchpage .looking { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ff-searchpage .chip { font-size: 11.5px; font-weight: 600; color: var(--serif); padding: 0 9px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; background: rgba(239, 226, 204, 0.7); }
.ff-searchpage .caption { font-size: 13px; color: var(--muted); }
.ff-hit {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow); transition: box-shadow var(--snap-d) var(--snap);
}
.ff-hit:hover { box-shadow: inset 0 0 0 1.5px rgba(169, 105, 46, 0.55), 0 6px 32px var(--shadow); }
.ff-hit .texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ff-hit .names { display: flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
.ff-hit .old { font-size: 14px; font-weight: 600; color: var(--ink); flex: none; }
.ff-hit .new { font-size: 14px; font-weight: 500; color: var(--accentText); overflow: hidden; text-overflow: ellipsis; }
.ff-hit .sum { font-size: 12.5px; color: var(--muted); }
.ff-hit .reasons { display: flex; gap: 5px; }
.ff-hit .reason { font-size: 10.5px; font-weight: 500; color: var(--serif); height: 18px; padding: 0 7px; border-radius: 9px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--cardBorder); white-space: nowrap; }
.ff-folderchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink); height: 22px; padding: 0 9px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--cardBorder); white-space: nowrap; }
.ff-folderchip .sym { color: var(--accentText); }
.ff-hit .finder { color: var(--muted); opacity: 0.35; transition: opacity 200ms; }
.ff-hit:hover .finder { opacity: 1; }

/* ---------- Context menu ---------- */
.ff-menu {
  position: absolute; z-index: 20; min-width: 190px; padding: 5px; border-radius: 12px; display: none;
  background: rgba(250, 248, 244, 0.86); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 10px 32px rgba(0, 0, 0, 0.16);
  font-size: 13px; color: var(--ink);
}
.ff-menu div { height: 24px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; cursor: default; }
.ff-menu div:hover { background: rgba(169, 105, 46, 0.85); color: #fff; }
.ff-menu hr { border: 0; height: 1px; background: rgba(0, 0, 0, 0.1); margin: 4px 10px; }

@media (prefers-reduced-motion: reduce) {
  .ff-stage *, .ff-stage *::before, .ff-stage *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* v2: the light drifting on the water (two layers, back and forth, as in Pond.swift) */
.ff-pond .glint.g0 { animation: ff-drift0 11s ease-in-out infinite alternate; }
.ff-pond .glint.g1 { animation: ff-drift1 14.5s ease-in-out infinite alternate; }
@keyframes ff-drift0 { to { transform: translate(60px, 22px); } }
@keyframes ff-drift1 { to { transform: translate(-48px, 30px); } }
.tile .sheet { position: absolute; inset: 0; background-repeat: no-repeat; }

.ff-pondwater { left: calc(50% - 200px) !important; }
.ff-bloom { left: calc(50% - 95px) !important; }
.ff-stagecol > .ff-cards { width: 100% !important; grid-template-columns: 1fr; }

/* ---------- v2: toolbar buttons, the sidebar sliding away ---------- */
.ff-tb { appearance: none; border: 0; background: none; padding: 0; width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: inherit; cursor: default; }
.ff-tools .ff-tb:hover, .ff-toggle:hover { background: rgba(0, 0, 0, 0.05); }
.ff-toggle { display: flex; }
.ff-sidebar { transition: transform var(--settle-d) var(--settle); }
.ff-detail { transition: left var(--settle-d) var(--settle); }
.ff-toggle, .ff-tools { transition: left var(--settle-d) var(--settle), width var(--snap-d) var(--snap); }
.ff-collapsed .ff-sidebar { transform: translateX(-100%); }
.ff-collapsed .ff-detail { left: 0; }
.ff-collapsed .ff-toggle { left: 92px !important; }
.ff-collapsed .ff-tools { left: 144px !important; }

/* ---------- v2: pages ---------- */
.ff-pagebox { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: none; scrollbar-width: none; }
.ff-pagebox::-webkit-scrollbar { display: none; }
.ff-pagebox.scrolled { -webkit-mask-image: linear-gradient(transparent 0, #000 64px); mask-image: linear-gradient(transparent 0, #000 64px); }
.ff-pageinner { width: 900px; margin: 0 auto; padding: 78px 0 44px; display: flex; flex-direction: column; gap: 14px; }
.ff-pageinner.empty { min-height: 100%; justify-content: center; align-items: center; padding: 52px 0 0; }
.ff-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ff-empty .sub { font-size: 13.5px; color: var(--muted); max-width: 440px; }
.ff-pageinner .sub { font-size: 13.5px; color: var(--muted); }
.link { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }
.spacer { flex: 1; min-width: 8px; }

.ff-histhead { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 10px; }
.ff-histhead .texts { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ff-batch { background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow); overflow: hidden; }
.ff-batch .top { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ff-batch .ic { color: var(--done); display: flex; } .ff-batch .ic.undone { color: var(--muted); }
.ff-batch .texts { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ff-batch .when { font-family: var(--display); font-weight: 300; font-size: 18px; line-height: 1.2; color: var(--serif); }
.ff-batch .texts .sub { font-size: 12px; color: rgba(0, 0, 0, 0.5); }
.ff-batch .right { display: flex; align-items: center; gap: 7px; }
.ff-batch .muted { color: rgba(0, 0, 0, 0.5); font-size: 13px; }
.ff-batch .putting { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ff-batch .div { height: 1px; background: rgba(0, 0, 0, 0.1); margin-left: 16px; }
.ff-hrow { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; min-width: 0; }
.ff-hrow .old { color: rgba(0, 0, 0, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; flex: none; }
.ff-hrow .arrow { color: rgba(0, 0, 0, 0.26); }
.ff-hrow .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ff-hrow .nm .mid { color: var(--accentText); }
.ff-hrow.undone .nm { color: rgba(0, 0, 0, 0.5); text-decoration: line-through; }
.ff-hrow .muted { color: rgba(0, 0, 0, 0.5); }
.ff-hrow .ff-folderchip { flex: none; }
.hundo { appearance: none; width: 24px; height: 22px; border: 0; background: none; padding: 0; color: rgba(42, 39, 35, 0.75); opacity: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 200ms; }
.ff-hrow:hover .hundo { opacity: 1; }
.ff-batch .more { display: flex; gap: 14px; padding: 10px 16px; font-size: 12.5px; font-weight: 500; }

.ff-cuphead { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ff-cgroup { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ff-cgroup .gh { display: flex; align-items: baseline; gap: 12px; font-size: 13px; }
.ff-cgroup .gt .bold { font-size: 17px; font-weight: 700; color: var(--ink); }
.ff-cgroup .gt .disp { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.ff-cgroup .gt .accent { font-family: var(--display); font-weight: 300; font-size: 18px; color: var(--serif); }
.ff-crow, .ff-simrow { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--card); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow); transition: box-shadow var(--snap-d) var(--snap); }
.ff-crow:hover, .ff-simrow:hover { box-shadow: inset 0 0 0 1.5px rgba(169, 105, 46, 0.55), 0 6px 32px var(--shadow); }
.ff-crow .texts, .ff-simrow .texts { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ff-crow .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-crow .sub, .ff-simrow .sub { font-size: 12px; color: var(--muted); }
.ff-crow .aside { opacity: 0.85; } .ff-crow:hover .aside { opacity: 1; }
.ff-crow .trash { appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.ff-simrow { gap: 16px; }
.ff-simrow .texts { gap: 6px; }
.ff-simrow .best { position: relative; }
.ff-simrow .best .sel { position: absolute !important; left: -6px; top: -6px; }
.ff-simrow .nm { font-family: var(--label); font-weight: 500; font-size: 13px; }
.ff-simrow .others { display: flex; gap: 6px; align-items: center; }
.ff-simrow .plus { font-family: var(--label); font-size: 12px; color: var(--muted); }
.ff-watches { margin-top: 30px; padding: 18px; max-width: 520px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 0.5px var(--cardBorder); }
.ff-watches .wh { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 600; font-size: 13px; padding-bottom: 10px; }
.ff-watches .w { display: flex; gap: 12px; padding: 9px 0; border-top: 0.5px solid rgba(0, 0, 0, 0.06); }
.ff-watches .w:nth-child(2) { border-top: 0; }
.ff-watches .ic { width: 20px; color: var(--accentText); display: flex; justify-content: center; padding-top: 1px; }
.ff-watches .a { font-size: 13px; font-weight: 600; } .ff-watches .b { font-size: 12px; color: var(--muted); }

/* ---------- v2: an alert, as macOS presents one ---------- */
.ff-alert { position: absolute; z-index: 13; left: 50%; top: 200px; width: 260px; display: none; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 16px;
  border-radius: 18px; background: rgba(250, 248, 244, 0.95); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); text-align: center;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 20px 60px rgba(0, 0, 0, 0.22); transform: translate(-50%, 0); }
.ff-alert .at { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--ink); }
.ff-alert .am { font-size: 11px; color: rgba(0, 0, 0, 0.6); margin-bottom: 10px; }
.ff-alert .ab { appearance: none; width: 100%; height: 28px; border: 0; border-radius: 14px; background: rgba(0, 0, 0, 0.06); font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }
.ff-alert .ab:hover { background: rgba(0, 0, 0, 0.1); }
.ff-alert .ab.danger { color: #d70015; }

/* ---------- v2: the screen: a menu bar above the window, with the notch ---------- */
.ff-screen { position: absolute; left: 0; top: 0; width: 1320px; height: 881px; transform-origin: 0 0; font-family: var(--sans); color: var(--ink); font-size: 13px; line-height: normal; }
/* The screen's black top edge, the notch hanging from it, the menu bar below (notch.js BEZEL). */
.ff-bezel { position: absolute; left: 0; top: 0; width: 100%; height: 9px; background: #0b0b0b; border-radius: 8px 8px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.ff-menubar { position: absolute; left: 0; top: 8px; width: 1320px; height: 33px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  font: 500 13px var(--sans); color: rgba(42, 39, 35, 0.86); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.ff-menubar .mb-left, .ff-menubar .mb-right { display: flex; align-items: center; gap: 20px; }
.ff-menubar .mb-app { font-weight: 700; }
.ff-menubar .mb-right { gap: 16px; }
.ff-menubar .mb-extra { display: flex; color: var(--ink); }
.ff-menubar .mb-clock { font-variant-numeric: tabular-nums; }
.ff-island { position: absolute; left: 280px; top: 8px; width: 760px; height: 230px; z-index: 30; pointer-events: none; }
.ff-island svg, .ff-island .ff-icontent { position: absolute; left: 0; top: 0; transform-origin: 50% 0; transition: transform var(--snap-d) var(--snap); overflow: visible; }
.ff-island.hover svg, .ff-island.hover .ff-icontent { transform: scale(1.022); }
.ff-ihit { position: absolute; top: 0; pointer-events: auto; cursor: pointer; }
.ff-island .glow { opacity: 0; transition: opacity 0.6s ease-in-out; }
.ff-island .glow.on { opacity: 1; animation: ff-breathe 1.9s ease-in-out infinite alternate; }
@keyframes ff-breathe { from { opacity: 0.35; } to { opacity: 1; } }
.ff-ears { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(0.9); height: 33px; display: flex; align-items: center; opacity: 0; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.ff-ears.on { opacity: 1; transform: translateX(-50%) scale(1); }
.ff-ears .ear { width: 38px; height: 33px; display: flex; align-items: center; justify-content: center; position: relative; }
.ff-ears .gap { width: 186px; }
/* The ring, the turning arc and the blossom share one centre, as WorkingEars' ZStack centres them. */
.ff-ears .arc, .ff-ears .ring { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; }
.ff-ears .ring { border: 1.4px solid rgba(169, 105, 46, 0.18); }
.ff-ears .arc { border: 1.4px solid transparent; border-top-color: rgba(169, 105, 46, 0.9); border-right-color: rgba(169, 105, 46, 0.9); animation: ff-spin 1.4s linear infinite; -webkit-mask-image: conic-gradient(#000 0 30%, transparent 30%); mask-image: conic-gradient(#000 0 30%, transparent 30%); }
@keyframes ff-spin { to { transform: rotate(360deg); } }
.ff-ears .eb { width: 15px; height: 15px; flex: none; display: flex; align-items: center; justify-content: center; animation: ff-pulse2 0.9s ease-in-out infinite alternate; }
@keyframes ff-pulse2 { from { transform: scale(0.88); } to { transform: scale(1.06); } }
.ff-ears .count { font: 600 12.5px ui-rounded, "SF Pro Rounded", var(--sans); color: #D6A15E; font-variant-numeric: tabular-nums; }
.ff-icontent { width: 760px; height: 230px; pointer-events: none; }
.ff-icontent .irow { position: absolute; left: 74px; top: 30px; width: 612px; height: 92px; padding: 0 40px; display: flex; align-items: center; gap: 14px; }
.ff-icontent .ipic { position: relative; width: 44px; height: 44px; flex: none; transform: scale(0.7); opacity: 0; transition: transform 0.12s ease-in, opacity 0.12s ease-in; }
.ff-island.speaking .ipic { transform: scale(1); opacity: 1; transition: transform var(--speak-d) var(--speak), opacity var(--speak-d) var(--speak); }
.ff-icontent .ithumb { position: absolute; left: 3px; top: 0; width: 38px !important; height: 44px !important; border-radius: 6px !important; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.45); }
.ff-icontent .itexts { display: flex; flex-direction: column; gap: 2.5px; min-width: 0; }
.ff-icontent .ihead { font: 600 11.5px var(--sans); color: #D6A15E; white-space: nowrap; }
.ff-icontent .iname { font: 600 15px var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.ff-icontent .iname .rv { opacity: 0; }
.ff-island.speaking .iname .rv { animation: ff-rv 0.35s ease-out forwards; }
@keyframes ff-rv { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
.ff-icontent .iold { font: 11.5px var(--sans); color: rgba(255, 255, 255, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; text-decoration: line-through transparent; transition: text-decoration-color 0.3s ease-out; }
.ff-icontent .iold.crossed { text-decoration-color: rgba(255, 255, 255, 0.55); }
.ff-icontent .iright { display: flex; gap: 8px; align-items: center; flex: none; }
.ff-icontent .arriving { opacity: 0; filter: blur(7px); transform: translateY(7px); transition: opacity 0.12s ease-in, filter 0.12s ease-in, transform 0.12s ease-in; }
.ff-icontent .arriving.later { transform: translateX(10px); }
.ff-island.speaking .arriving { opacity: 1; filter: blur(0); transform: none; transition: opacity var(--speak-d) var(--speak) 0.05s, filter var(--speak-d) var(--speak) 0.05s, transform var(--speak-d) var(--speak) 0.05s; }
.ff-island.speaking .arriving.later { transition-delay: 0.12s; }
.ff-folderchip.dark { background: #26231F; box-shadow: inset 0 0 0 1px #393530; color: #EEE8DC; }
.ff-folderchip.dark .sym { color: #D6A15E; }
.ff-icontent .iundo { pointer-events: auto; height: 24px; padding: 0 11px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.62); font: 600 12px var(--sans); cursor: pointer; transition: background var(--snap-d) var(--snap), color var(--snap-d) var(--snap); }
.ff-island.hover .iundo { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.95); }

/* ---------- v2: the Auto-sort switch ---------- */
.ff-auto { transition: background-color var(--snap-d) var(--snap); }
.ff-auto.on { background: rgba(169, 105, 46, 0.1); }
.ff-auto.on .bolt { color: var(--accent); }
button.ff-switch { appearance: none; border: 0; padding: 0; cursor: pointer; transition: background-color 0.25s ease; }
.ff-switch::after { transition: transform var(--snap-d) var(--snap); }
.ff-auto.on .ff-switch { background: var(--accent); }
.ff-auto.on .ff-switch::after { transform: translateX(11px); }

/* ---------- v2: a Finder window (for Smart Rename) ---------- */
.ff-finder { position: absolute; z-index: 24; left: 150px; top: 120px; width: 820px; height: 470px; display: none; border-radius: 16px; overflow: hidden; outline: none;
  background: #fbfaf8; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 26px 80px rgba(40, 30, 20, 0.28); font: 13px var(--sans); color: #1d1d1f; }
.ff-finder .fside { width: 190px; flex: none; background: rgba(238, 234, 228, 0.92); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.ff-finder .flights { display: flex; gap: 9px; padding: 4px 6px 18px; } .ff-finder .flights i { width: 13px; height: 13px; border-radius: 50%; display: block; cursor: pointer; }
.ff-finder .fsec { font-size: 11px; font-weight: 600; color: #8e8a84; padding: 10px 8px 4px; }
.ff-finder .fitem { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 7px; color: #3a3632; }
.ff-finder .fitem .sym { color: #8e5a2b; } .ff-finder .fitem.on { background: rgba(0, 0, 0, 0.08); font-weight: 600; }
.ff-finder .fmain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ff-finder .ftool { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px; color: #555; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.ff-finder .ftool b { color: #1d1d1f; font-size: 14px; }
.ff-finder .frow { display: grid; grid-template-columns: 1fr 190px 70px 130px; align-items: center; height: 26px; padding: 0 16px; gap: 10px; font-size: 12.5px; cursor: default; }
.ff-finder .frow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-finder .frow .c0 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ff-finder .frow .c1, .ff-finder .frow .c2, .ff-finder .frow .c3 { color: #7a756e; }
.ff-finder .fhead { height: 28px; font-size: 11.5px; color: #8e8a84; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.ff-finder .flist { flex: 1; overflow-y: auto; padding: 4px 8px; }
.ff-finder .flist .frow { border-radius: 6px; padding: 0 8px; }
.ff-finder .flist .frow.alt { background: rgba(0, 0, 0, 0.025); }
.ff-finder .flist .frow.sel { background: #a9692e; color: #fff; }
.ff-finder .flist .frow.sel span { color: #fff; }
.ff-finder .ficon { box-shadow: none !important; }
.ff-finder .fstatus { height: 26px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #8e8a84; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.ff-fmenu { position: absolute; z-index: 40; display: none; min-width: 250px; padding: 5px; border-radius: 12px; font: 13px var(--sans); color: #1d1d1f;
  background: rgba(248, 246, 243, 0.92); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 12px 36px rgba(0, 0, 0, 0.18); }
.ff-fmenu .mi { height: 24px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; gap: 7px; }
.ff-fmenu .mi:hover { background: #a9692e; color: #fff; }
.ff-fmenu .mi.ff { font-weight: 500; }
.ff-fmenu hr { border: 0; height: 1px; background: rgba(0, 0, 0, 0.1); margin: 4px 10px; }

/* ---------- v2: the Smart Rename window (RenameWindow) ---------- */
.ff-rename { position: absolute; z-index: 26; left: 50%; top: 150px; width: 560px; display: none; border-radius: 22px; overflow: hidden; transform: translate(-50%, 0);
  box-shadow: 0 0 0 0.5px rgba(42, 30, 15, 0.2), 0 30px 90px rgba(50, 35, 20, 0.3); }
.ff-rename > .ff-canvas { position: absolute; }
.ff-rename .rlights { position: absolute; left: 16px; top: 14px; display: flex; gap: 8px; z-index: 2; } .ff-rename .rlights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.ff-rename .rlights i:first-child { cursor: pointer; }
.ff-rename .rinner { position: relative; height: 100%; padding: 30px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.ff-rename .rhead { display: flex; align-items: center; gap: 10px; }
.ff-rename .rht { display: flex; flex-direction: column; gap: 2px; }
.ff-rename .rrows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; scrollbar-width: none; }
.ff-rename .rrow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--cardBorder), 0 3px 18px var(--shadow); flex: none; }
.ff-rename .rtile { position: relative; flex: none; }
.ff-rename .rtile .rk { position: absolute !important; right: -5px; bottom: -5px; }
.ff-rename .rtx { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ff-rename .rwas { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-rename .rline { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 13px; color: var(--muted); }
.ff-rename .rfield { width: 100%; height: 26px; padding: 0 8px; border: 0; border-radius: 7px; outline: 0; font: 500 14px var(--label); color: var(--ink);
  background: var(--canvasTop); box-shadow: inset 0 0 0 1px var(--cardBorder); user-select: text; -webkit-user-select: text; }
.ff-rename .rfield:focus { box-shadow: inset 0 0 0 1px rgba(169, 105, 46, 0.6); }
.ff-rename .rfits { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ff-rename .rfoot { display: flex; align-items: center; gap: 10px; }
.ff-rename .rstatus { font-size: 11.5px; color: var(--muted); }

/* Phones: no layer per moving piece (iPhone Safari keeps each, and redraws all of them on every pinch-zoom). */
@media (hover: none) {
  .ff-pond .glint, .ff-pond .koi, .ff-pond .ptile, .ff-flight, .ff-ripple, .ff-falling img { will-change: auto; }
}
