/* THE GOD TERMINAL — the costume's file explorer, its viewers, Search Companion and Disk Defragmenter
 * (js/costume-files.js). Off-palette like the rest of the costume: Luna-beige chrome, the blue task pane,
 * white folder views that get darker the deeper you go into Important Stuff, and a vault at the bottom. */

.cs-files .cs-app-body, .cs-defrag .cs-app-body { background: var(--cs-face); }

.csf, .csd {
  color-scheme: light;
  --csf-spring: cubic-bezier(.2, 1.6, .4, 1);
  --csf-mono: 'Lucida Console', 'Courier New', var(--font-mono), monospace;
  --csf-hand: 'Segoe Print', 'Bradley Hand', 'Ink Free', 'Comic Sans MS', cursive;
  --csf-link: #1c4fc9;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--cs-face);
  font-size: 0.875rem;
  outline: none;
}
.csf {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}
.csf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.csf .csf-art, .csd .csf-art { display: block; width: 100%; height: 100%; overflow: visible; }
.csf .csf-svg, .csd .csf-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.csf input, .csd input { user-select: text; -webkit-user-select: text; }

/* ───────── menu bar, toolbar ───────── */
.csf-menubar, .csd-menubar {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.1rem 0 0.1rem 0.25rem;
  border-bottom: 1px solid #d8d4c4;
  background: linear-gradient(#fbfaf6, #ece9d8);
}
.csf-menu {
  min-height: 1.95rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #000;
  font-size: 0.875rem;
  transition: transform 120ms var(--csf-spring);
}
.csf-menu:hover, .csf-menu.is-open { background: var(--cs-select); color: #fff; }
.csf-menu.is-pressed { transform: scale(1.1); }
/* The logo box at the end of the menu bar: a duck that waddles while the computer is busy. */
.csf-brand {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 2.05rem;
  margin: -0.1rem 0 -0.1rem auto;
  border-left: 1px solid #c9c5b4;
  background: linear-gradient(180deg, #ffffff, #eef2fb 60%, #dfe6f7);
  box-shadow: inset 1px 0 0 #fff;
}
.csf-brand .csf-art { width: 1.75rem; height: 1.75rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); transform-origin: 50% 90%; }
.csf.is-busy .csf-brand .csf-art { animation: csf-waddle 0.42s ease-in-out infinite alternate; }
@keyframes csf-waddle { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-2px); } }

.csf-toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid #c9c5b4;
  background: linear-gradient(180deg, #fdfcf9 0%, #f3f1e8 55%, #e2dfd0 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.csf-tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.55rem 0.2rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: #1b1b1b;
  font-size: 0.875rem;
  transition: transform 120ms var(--csf-spring), background-color 120ms, border-color 120ms;
}
.csf-tool-icon { flex: none; width: 2.1rem; height: 2.1rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28)); }
.csf-tool-drop { flex: none; width: 0.9rem; height: 0.9rem; margin-left: -0.15rem; color: #333; }
.csf-tool:hover:not(:disabled) { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.csf-tool.is-pressed { transform: scale(1.1); background: linear-gradient(#e6e3d6, #f8f7f2); }
.csf-tool.is-on, .csf-tool.is-open {
  border-color: #b3ad95;
  background: linear-gradient(#e4e0d0, #f4f2ea);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.csf-tool:disabled { color: #9b9b9b; }
.csf-tool:disabled .csf-tool-icon { filter: grayscale(1) opacity(0.4); }
.csf-tool.is-tasks { display: none; }
.csf-sep { align-self: stretch; flex: none; width: 1px; margin: 0.35rem 0.25rem; background: #c9c5b4; box-shadow: 1px 0 0 #fff; }

/* ───────── address bar with breadcrumbs ───────── */
.csf-addr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid #c9c5b4;
  background: var(--cs-face);
}
.csf-addr-label { flex: none; color: #6b6b6b; font-size: 0.875rem; }
.csf-addr-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 2.2rem;
  border: 1px solid #7f9db9;
  background: #fff;
  cursor: text;
}
.csf-addr-field.is-editing { box-shadow: 0 0 0 2px rgba(49, 106, 197, 0.25); }
.csf-addr-icon { flex: none; width: 1.4rem; height: 1.4rem; margin: 0 0.25rem 0 0.35rem; }
.csf-crumbs {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}
.csf-crumbs::-webkit-scrollbar { display: none; }
.csf-crumbs.is-long { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.2rem); mask-image: linear-gradient(90deg, transparent 0, #000 2.2rem); }
.csf-crumb {
  flex: none;
  height: calc(100% - 4px);
  padding: 0 0.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  color: #1b1b1b;
  font-size: max(0.9375rem, 15px);
  transition: transform 120ms var(--csf-spring), background-color 120ms;
}
.csf-crumb:hover { border-color: #b6c9ec; background: linear-gradient(#f3f7ff, #dde8fb); }
.csf-crumb.is-here { font-weight: 700; }
.csf-crumb.is-pressed { transform: scale(1.08); }
.csf-crumb-sep { flex: none; padding: 0 0.05rem; color: #7d8aa3; font-size: 1.05rem; }
.csf-addr-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.2rem;
  border: 0;
  outline: 0;
  background: none;
  color: #000;
  font-family: var(--cs-font);
  font-size: max(0.9375rem, 16px);
}
.csf-addr-input::selection { background: var(--cs-select); color: #fff; }
.csf-addr-drop {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 100%;
  border: 0;
  border-left: 1px solid #c3d3fd;
  background: linear-gradient(#eef3fd, #c6d7fb);
  transition: transform 120ms var(--csf-spring);
}
.csf-addr-drop::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -5px; border: 5px solid transparent; border-top-color: #4d6185; }
.csf-addr-drop:hover, .csf-addr-drop.is-open { background: linear-gradient(#fdfeff, #d6e3fd); }
.csf-addr-drop.is-pressed { transform: scale(1.15); }
.csf-go {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  min-height: 2.2rem;
  padding: 0 0.55rem 0 0.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: #000;
  font-size: 0.875rem;
  transition: transform 120ms var(--csf-spring);
}
.csf-go-icon { flex: none; width: 1.5rem; height: 1.5rem; }
.csf-go:hover { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); }
.csf-go.is-pressed { transform: scale(1.12); }

/* ───────── body: task pane + folder view ───────── */
.csf-body {
  position: relative;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 0;
  margin: 0 2px;
  border: 1px solid #7f9db9;
  border-bottom: 0;
  background: #fff;
}
.csf-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  padding: 0.85rem 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #7ba2e7 0%, #6a8ae0 50%, #6375d6 100%);
  scrollbar-width: thin;
}
.csf-pg { flex: none; border-radius: 0.4rem 0.4rem 0 0; box-shadow: 0 1px 3px rgba(18, 38, 120, 0.35); }
.csf-pg-head {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2rem;
  padding: 0.2rem 0.35rem 0.2rem 0.75rem;
  border: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #c6d3f7 100%);
  color: #215dc6;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  transition: transform 120ms var(--csf-spring);
}
.csf-pg-head:hover { color: #428eff; }
.csf-pg-head.is-pressed { transform: scale(1.04); }
.csf-pg-title { flex: 1; min-width: 0; }
.csf-pg-chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0.15rem;
  border: 1px solid #b3c3ea;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff, #e6edfb);
  color: #3b67c9;
  box-shadow: 0 1px 1px rgba(30, 60, 140, 0.25);
  transition: rotate 220ms cubic-bezier(.3, 1.4, .5, 1);
}
.csf-pg:not(.is-collapsed) .csf-pg-chev { rotate: 180deg; }
.csf-pg-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.55rem 0.6rem;
  overflow: hidden;
  border: 1px solid #fff;
  border-top: 0;
  background: #d6dff7;
}
.csf-pg.is-collapsed .csf-pg-body { display: none; }
.csf-pl {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.15rem 0.25rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #0c2f8f;
  font-size: 0.875rem;
  text-align: left;
  transform-origin: 15% 50%;
  transition: transform 120ms var(--csf-spring), background-color 120ms;
}
.csf-pl:hover { background: rgba(255, 255, 255, 0.5); color: #1d5ff0; }
.csf-pl:hover .csf-pl-text { text-decoration: underline; }
.csf-pl.is-pressed { transform: scale(1.06); }
.csf-pl-icon { flex: none; width: 1.35rem; height: 1.35rem; }
.csf-pl-text { min-width: 0; }
.csf-det { display: flex; flex-direction: column; gap: 0.2rem; color: #000; font-size: 0.875rem; line-height: 1.35; overflow-wrap: anywhere; }
.csf-det b { font-size: 0.9375rem; }
.csf-det-type { color: #3c4a6e; }
.csf-det-pie { width: 8rem; margin: 0.15rem auto 0.3rem; }
.csf-pie { display: block; width: 100%; height: auto; overflow: visible; }

.csf-view {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  outline: none;
  transition: background-color 500ms;
}
.csf-view::-webkit-scrollbar, .csf-pane::-webkit-scrollbar { width: 17px; height: 17px; }
.csf-view::-webkit-scrollbar-track { background: #f4f3ee; box-shadow: inset 1px 0 0 #e3e1d6; }
.csf-view::-webkit-scrollbar-thumb { border: 1px solid #93a8d8; border-radius: 3px; background: linear-gradient(90deg, #d6e3fe, #bcd0fb 50%, #aac1f6); }
.csf-pane::-webkit-scrollbar-track { background: transparent; }
.csf-pane::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, 0.45) padding-box; }

/* ───────── items: tiles / icons / details ───────── */
.csf-items { position: relative; min-height: 100%; padding: 0.7rem 0.8rem 1.2rem; }
.csf-items.is-tiles, .csf-items.is-icons, .csf-group-items { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.3rem 0.5rem; }
.csf-group-items { flex-basis: 100%; margin-bottom: 0.6rem; }
.csf-group-title {
  flex-basis: 100%;
  margin: 0.35rem 0 0.15rem;
  padding: 0 0.2rem 0.25rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #7aa1e6, rgba(122, 161, 230, 0) 75%) 1;
  color: #1d3f9a;
  font-size: 0.9375rem;
  font-weight: 700;
}
.csf-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  width: 17rem;
  min-height: 4.7rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: #000;
  font-size: 0.875rem;
  text-align: left;
  transition: transform 140ms var(--csf-spring), background-color 120ms;
}
.csf-item:hover { background: #eef3fc; border-color: #d3e0f6; }
.csf-item.is-pressed { transform: scale(1.06); }
.csf-item:focus { outline: none; }
.csf-item:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.csf-item-art { width: 3.4rem; height: 3.4rem; justify-self: center; filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.28)); }
.csf-item-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; line-height: 1.25; }
.csf-item-name { width: fit-content; max-width: 100%; padding: 0 0.15rem; border-radius: 2px; font-weight: 400; font-size: 0.9375rem; overflow-wrap: anywhere; }
.csf-item-type, .csf-item-size, .csf-item-date, .csf-cap-text { padding: 0 0.15rem; color: #6d6d6d; font-size: 0.875rem; }
.csf-item-date { display: none; }
/* Search results say where things were found (it's the punchline): "In: the fridge". */
.csf-items.is-tiles .csf-item.is-result .csf-item-date, .csf-items.is-tiles .csf-group-items .csf-item.is-result .csf-item-date { display: block; color: #1d3f9a; }
.csf-items.is-tiles .csf-item.is-result .csf-item-date::before { content: 'In: '; color: #6d6d6d; }
.csf-items.is-tiles .csf-item.is-result .csf-item-size:empty { display: none; }
.csf-item.is-selected { background: #e4ecfb; border-color: #9fbbea; }
.csf-item.is-selected .csf-item-name { background: var(--cs-select); color: #fff; }
.csf-item.is-selected .csf-item-art .csf-art { filter: url(#cs-tint); }
.csf-item-cap { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.1rem 0.15rem 0; }
.csf-cap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 11rem;
  height: 0.85rem;
  overflow: hidden;
  border: 1px solid #8a99b8;
  border-radius: 2px;
  background: linear-gradient(#e9ecf2, #f7f8fb);
}
.csf-cap i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--used, 0) * 100%);
  background: linear-gradient(180deg, #8fd0ff 0%, #2f8ef0 45%, #1e6fd6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.csf-cap.is-full i { background: linear-gradient(180deg, #ff9d8f 0%, #e5402e 45%, #b8261a 100%); }
.csf-cap-text { padding: 0; }

/* Icons view: big icon over its name. */
.csf-items.is-icons .csf-item, .csf-items.is-icons .csf-group-items .csf-item {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  width: 7.4rem;
  min-height: 6.6rem;
  gap: 0.3rem;
  padding: 0.4rem 0.2rem;
  text-align: center;
}
.csf-items.is-icons .csf-item-text { align-items: center; }
.csf-items.is-icons .csf-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.csf-items.is-icons .csf-item.is-selected .csf-item-name { -webkit-line-clamp: 4; }
.csf-items.is-icons .csf-item-type, .csf-items.is-icons .csf-item-size, .csf-items.is-icons .csf-item-cap { display: none; }
.csf-items.is-icons .csf-item.is-selected { background: none; border-color: transparent; }

/* Details view: one row per item, columns. */
.csf-items.is-details { display: flex; flex-direction: column; padding: 0 0 1rem; }
.csf-dhead, .csf-items.is-details .csf-item {
  display: grid;
  grid-template-columns: minmax(11rem, 2.6fr) minmax(6rem, 1.3fr) minmax(5rem, 0.9fr) minmax(7rem, 1.4fr);
  align-items: center;
}
.csf-dhead {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #c9c5b4;
  background: linear-gradient(#fdfdfb, #ebe9df);
  color: #000;
  font-size: 0.875rem;
}
.csf-dhead span { padding: 0.35rem 0.6rem; border-right: 1px solid #d6d2c2; box-shadow: 1px 0 0 #fff; }
.csf-items.is-details .csf-item {
  width: 100%;
  min-height: 2.3rem;
  gap: 0;
  padding: 0 0 0 0.45rem;
  border-radius: 0;
  border-width: 0 0 1px;
  border-color: #f1f0ea;
}
.csf-items.is-details .csf-item-art { position: absolute; left: 0.45rem; width: 1.6rem; height: 1.6rem; filter: none; }
.csf-items.is-details .csf-item-text { display: contents; }
.csf-items.is-details .csf-item-name { padding-left: 2.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csf-items.is-details .csf-item.is-selected .csf-item-name { background: none; color: inherit; }
.csf-items.is-details .csf-item.is-selected { background: var(--cs-select); color: #fff; border-color: var(--cs-select); }
.csf-items.is-details .csf-item.is-selected .csf-item-type,
.csf-items.is-details .csf-item.is-selected .csf-item-size,
.csf-items.is-details .csf-item.is-selected .csf-item-date,
.csf-items.is-details .csf-item.is-selected .csf-cap-text { color: #fff; }
.csf-items.is-details .csf-item-type, .csf-items.is-details .csf-item-size, .csf-items.is-details .csf-item-date, .csf-items.is-details .csf-item-cap { display: block; padding: 0 0.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csf-items.is-details .csf-cap { display: none; }
.csf-items.is-details .csf-item.is-pressed { transform: scale(1.015); }

/* Empty folders, the WINDOWS warning and the search placeholder. */
.csf-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 2.2rem auto 0;
  padding: 0 1rem;
  color: #3b3b3b;
  font-size: 0.9375rem;
  text-align: center;
}
.csf-panel p { margin: 0; line-height: 1.45; }
.csf-panel h3 { margin: 0; color: #1d3f9a; font-size: 1.1rem; }
.csf-panel-art { width: 4rem; height: 4rem; opacity: 0.9; }
.csf-panel.is-search .csf-panel-art { opacity: 0.35; width: 5rem; height: 5rem; }
.csf-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.2rem 0.9rem 0.2rem 0.6rem;
  border: 1px solid #b6c9ec;
  border-radius: 4px;
  background: linear-gradient(#fff, #e8effc);
  color: var(--csf-link);
  font-size: 0.9375rem;
  transition: transform 140ms var(--csf-spring);
}
.csf-panel-btn:hover { text-decoration: underline; }
.csf-panel-btn.is-pressed { transform: scale(1.08); }
.csf-panel.is-empty { position: absolute; inset: 0; max-width: none; margin: 0; padding-top: 2.4rem; overflow: hidden; color: #6d6d6d; }
/* A tumbleweed rolls through an empty folder. */
.csf-tumble { position: absolute; left: 0; bottom: 22%; width: 100%; height: 3.2rem; pointer-events: none; }
.csf-tumble i {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(150, 105, 50, 0.85) 31%, transparent 34%, transparent 46%, rgba(150, 105, 50, 0.8) 47%, transparent 50%),
    repeating-conic-gradient(from 10deg, rgba(160, 112, 52, 0.9) 0 6deg, transparent 6deg 29deg),
    radial-gradient(circle, rgba(196, 150, 85, 0.35) 0 60%, transparent 62%);
  animation: csf-tumble 5.5s linear infinite;
}
@keyframes csf-tumble {
  0% { transform: translate(-4rem, 0) rotate(0); }
  12% { transform: translate(calc(var(--csf-w, 40rem) * 0.12), -1.4rem) rotate(150deg); }
  24% { transform: translate(calc(var(--csf-w, 40rem) * 0.24), 0) rotate(300deg); }
  40% { transform: translate(calc(var(--csf-w, 40rem) * 0.4), -0.8rem) rotate(500deg); }
  55% { transform: translate(calc(var(--csf-w, 40rem) * 0.55), 0) rotate(700deg); }
  100% { transform: translate(calc(var(--csf-w, 40rem) + 4rem), 0) rotate(1240deg); }
}

/* ───────── the descent: each level of Important Stuff is a little darker ───────── */
.csf-view[data-depth="3"] { background: #fafbfe; }
.csf-view[data-depth="4"] { background: radial-gradient(120% 90% at 50% 30%, #f6f7fb, #e3e6ef); }
.csf-view[data-depth="5"] { background: radial-gradient(120% 90% at 50% 30%, #e8eaf2, #c9cede); }
.csf-view[data-depth="6"] { background: radial-gradient(120% 90% at 50% 30%, #4a5370, #262c41); }
.csf-view[data-depth="7"] { background: radial-gradient(110% 85% at 50% 35%, #2a3048, #0c0f19); }
.csf-view[data-depth="6"] .csf-item, .csf-view[data-depth="7"] .csf-item, .csf-view.is-vault .csf-item { color: #fff; }
.csf-view[data-depth="6"] .csf-item-type, .csf-view[data-depth="6"] .csf-item-size, .csf-view[data-depth="6"] .csf-item-date,
.csf-view[data-depth="7"] .csf-item-type, .csf-view[data-depth="7"] .csf-item-size, .csf-view[data-depth="7"] .csf-item-date { color: #b9c2dc; }
.csf-view[data-depth="6"] .csf-item:hover, .csf-view[data-depth="7"] .csf-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.csf-view[data-depth="6"] .csf-item.is-selected, .csf-view[data-depth="7"] .csf-item.is-selected { background: rgba(49, 106, 197, 0.35); border-color: #6f9be6; }
.csf-view[data-depth="6"] .csf-dhead, .csf-view[data-depth="7"] .csf-dhead { background: linear-gradient(#3b4360, #2b3149); color: #dfe5f7; border-color: #11141f; }
.csf-view[data-depth="7"]::after {
  content: '';
  position: sticky;
  left: 0;
  bottom: 0;
  display: block;
  height: 0;
  box-shadow: 0 0 6rem 3rem rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* The Vault: lights out, then one spotlight on one file. */
.csf-view.is-vault { background: #030405; }
.csf-view.is-vault::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(36rem, 120%);
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 34% 14% at 50% 70%, rgba(255, 238, 190, 0.32), transparent 72%),
    linear-gradient(180deg, rgba(255, 246, 214, 0.22), rgba(255, 238, 190, 0.07) 75%, transparent);
  clip-path: polygon(44% 0, 56% 0, 86% 80%, 14% 80%);
  opacity: 0;
  transition: opacity 600ms ease-out;
  pointer-events: none;
}
.csf-view.is-vault.is-lit::before { opacity: 1; }
.csf-view.is-vault .csf-items { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; align-content: center; justify-content: center; min-height: 100%; padding: 1rem; }
.csf-view.is-vault .csf-dhead { display: none; }
.csf-view.is-vault .csf-item {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 12rem;
  min-height: 0;
  margin-top: 6%;
  gap: 0.5rem;
  padding: 0.6rem;
  text-align: center;
  animation: csf-bob 3.2s ease-in-out infinite;
}
.csf-view.is-vault .csf-item-art { position: static; width: 5.6rem; height: 5.6rem; filter: drop-shadow(0 0 14px rgba(255, 226, 140, 0.55)) drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.csf-view.is-vault .csf-item-text { display: flex; align-items: center; }
.csf-view.is-vault .csf-item-name { padding: 0.05rem 0.35rem; font-size: 1.05rem; white-space: normal; text-shadow: 0 1px 3px #000; }
.csf-view.is-vault .csf-item-type, .csf-view.is-vault .csf-item-size, .csf-view.is-vault .csf-item-date, .csf-view.is-vault .csf-item-cap { display: none; }
.csf-view.is-vault .csf-item:hover, .csf-view.is-vault .csf-item.is-selected { background: rgba(255, 236, 180, 0.08); border-color: rgba(255, 236, 180, 0.3); }
.csf-view.is-vault .csf-item.is-selected .csf-item-name { background: var(--cs-select); }
.csf-view.is-vault:not(.is-lit) .csf-item { visibility: hidden; }
@keyframes csf-bob { 50% { translate: 0 -5px; } }
.csf-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.csf-motes i {
  position: absolute;
  left: var(--x, 50%);
  bottom: 18%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff3c8;
  box-shadow: 0 0 6px 2px rgba(255, 236, 170, 0.6);
  opacity: 0;
  animation: csf-mote var(--d, 5s) linear var(--delay, 0s) infinite;
}
.csf-view.is-vault:not(.is-lit) .csf-motes { display: none; }
@keyframes csf-mote {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.9; }
  50% { transform: translate(10px, -9rem); opacity: 0.6; }
  100% { transform: translate(-6px, -18rem); opacity: 0; }
}

/* ───────── status bar ───────── */
.csf-status, .csd-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2rem;
  padding: 0 0.45rem;
  border-top: 1px solid #fff;
  background: var(--cs-face);
  color: #222;
  font-size: 0.875rem;
}
.csf-status-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csf-status-size { flex: none; padding-left: 0.6rem; border-left: 1px solid #c9c5b4; box-shadow: inset 1px 0 0 #fff; }
.csf-status-size:empty { display: none; }
.csf-zone { display: flex; align-items: center; gap: 0.35rem; flex: none; padding-left: 0.6rem; border-left: 1px solid #c9c5b4; box-shadow: inset 1px 0 0 #fff; }
.csf-zone-icon { width: 1.15rem; height: 1.15rem; }

/* ───────── menus ───────── */
.csf-dd {
  position: absolute;
  z-index: 60;
  min-width: 13rem;
  padding: 2px;
  border: 1px solid #aca899;
  background: #fff;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
}
.csf-dd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.2rem 1.1rem 0.2rem 0.45rem;
  border: 0;
  background: none;
  color: #000;
  font-size: 0.875rem;
  text-align: left;
  white-space: nowrap;
  transform-origin: 15% 50%;
  transition: transform 120ms var(--csf-spring);
}
.csf-dd-item:hover:not(:disabled) { background: var(--cs-select); color: #fff; }
.csf-dd-item:disabled { color: #a0a0a0; }
.csf-dd-item:disabled .csf-dd-icon { filter: grayscale(1) opacity(0.5); }
.csf-dd-item.is-pressed { transform: scale(1.05); }
.csf-dd-item.is-bold { font-weight: 700; }
.csf-dd-icon { display: grid; place-items: center; flex: none; width: 1.3rem; height: 1.3rem; }
.csf-dd-check { font-size: 0.7rem; }
.csf-dd-sep { margin: 2px; border: 0; border-top: 1px solid #ccc8b8; }

/* ───────── narrow windows (phones) ───────── */
.csf-scrim { display: none; }
.csf.is-narrow .csf-tool.is-tasks { display: flex; }
.csf.is-narrow .csf-tool { justify-content: center; min-width: 2.75rem; padding: 0.2rem; }
.csf.is-narrow .csf-tool-label, .csf.is-narrow .csf-addr-label, .csf.is-narrow .csf-go-label, .csf.is-narrow .csf-zone, .csf.is-narrow .csf-status-size { display: none; }
.csf.is-narrow .csf-toolbar { gap: 0; }
.csf.is-narrow .csf-sep { margin-inline: 0.15rem; }
.csf.is-narrow .csf-body { grid-template-columns: minmax(0, 1fr); }
.csf.is-narrow .csf-pane {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: min(18rem, 86%);
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35);
  transform: translateX(-105%);
  transition: transform 260ms cubic-bezier(.2, .9, .3, 1);
}
.csf.is-narrow.is-pane-open .csf-pane { transform: none; }
.csf.is-narrow.is-pane-open .csf-scrim { display: block; position: absolute; inset: 0; z-index: 7; background: rgba(10, 20, 50, 0.3); }
.csf.is-narrow .csf-item { width: 100%; }
.csf.is-narrow .csf-items.is-icons .csf-item { width: calc(33.3% - 0.4rem); }
.csf.is-narrow .csf-dhead, .csf.is-narrow .csf-items.is-details .csf-item { grid-template-columns: minmax(0, 1fr) 6.5rem; }
.csf.is-narrow .csf-dhead span:nth-child(n+3), .csf.is-narrow .csf-items.is-details .csf-item-size, .csf.is-narrow .csf-items.is-details .csf-item-date, .csf.is-narrow .csf-items.is-details .csf-item-cap { display: none; }

@media (pointer: coarse) {
  .csf-menu { min-height: 2.5rem; }
  .csf-dd-item { min-height: 2.75rem; }
  .csf-addr-field { height: 2.75rem; }
  .csf-addr-drop { width: 2.6rem; }
  .csf-go { min-height: 2.75rem; }
  .csf-pl { min-height: 2.75rem; }
  .csf-pg-head { min-height: 2.6rem; }
  .csf-crumb { padding: 0 0.55rem; }
  .csf-items.is-details .csf-item { min-height: 3rem; }
}

/* ───────── shared in-window effects ───────── */
.csf-layer { position: absolute; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.csf-layer > .csf-v, .csf-layer > .csf-hit { pointer-events: auto; }
.csf-fx { position: absolute; inset: 0; z-index: 9990; width: 100%; height: 100%; pointer-events: none; }
.csf-spark {
  position: absolute;
  z-index: 10000;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 10px currentColor, 0 0 3px #fff, 0 0 2px #fff;
  will-change: transform, opacity;
}
.csf-shock {
  position: absolute;
  z-index: 9998;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor, inset 0 0 14px currentColor;
  pointer-events: none;
}
.csf-float {
  position: absolute;
  z-index: 10001;
  pointer-events: none;
  color: #1f5fd6;
  font: 900 2.1rem/1 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.3);
}
.csf-float.is-gold { color: #ffbf00; -webkit-text-stroke-color: #6b3a00; }
.csf-float.is-red { color: #e0261a; }
.csf-float.is-green { color: #23a43a; }
.csf-float.is-small { font-size: 1.35rem; -webkit-text-stroke-width: 2px; }

/* ───────── viewers: small windows inside the app ───────── */
.csf-v {
  --cs-frame: #0a3ed6;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  border: 3px solid var(--cs-frame);
  border-top: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--cs-face);
  box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.42);
}
.csf-v:not(.is-active) { --cs-frame: #7a96df; }
.csf-v-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  height: 2rem;
  margin: 0 -3px;
  padding: 0 0.3rem 0 0.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  background: linear-gradient(180deg, #0a5ef7 0%, #3d8cff 8%, #0b5ff2 22%, #0656ea 60%, #0353e8 85%, #0447c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  touch-action: none;
}
.csf-v:not(.is-active) .csf-v-bar { background: linear-gradient(180deg, #7b9fe8, #9db8ef 10%, #7f9ee4 60%, #7593db); }
.csf-v.is-dragging .csf-v-bar { cursor: move; }
.csf-v-icon { flex: none; width: 1.15rem; height: 1.15rem; }
.csf-v-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 0.9375rem; font-weight: 700; text-shadow: 1px 1px 1px #0f1a63; }
.csf-v-x {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #fff;
  border-radius: 3px;
  background: linear-gradient(180deg, #f28b6c, #e2502d 45%, #c83a1b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 120ms var(--csf-spring), filter 120ms;
}
.csf-v-x::before, .csf-v-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 2.5px;
  border-radius: 1px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.csf-v-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.csf-v-x:hover { filter: brightness(1.12); }
.csf-v-x.is-pressed { transform: scale(1.14); filter: brightness(0.9); }
.csf-v-body { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.csf-v-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; flex: none; padding: 0.4rem 0.8rem 0.85rem; }
.csf-btn {
  min-width: 5.5rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.9rem;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #f3f2ec 60%, #d6d0c0);
  color: #000;
  font-size: 0.875rem;
  transition: transform 120ms var(--csf-spring), box-shadow 120ms;
}
.csf-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #f8b636, inset 0 -2px 0 2px #e69a14; }
.csf-btn.is-default { box-shadow: inset 0 0 0 1px #5c8ee6, inset 0 0 0 2px #b9d1fa; }
.csf-btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.csf-btn.is-pressed { transform: scale(1.08); background: linear-gradient(180deg, #e4e0d2, #f2f0e8); }
.csf-btn:disabled { color: #9a9a9a; border-color: #b3b3b3; }
.csf-btn.is-red { border-color: #7a0f0f; background: linear-gradient(180deg, #ff8a7a, #e2402c 55%, #b5241a); color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }

.csf-msg { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1rem 0.6rem; }
.csf-msg-icon { flex: none; width: 2.6rem; height: 2.6rem; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25)); }
.csf-msg-main { flex: 1; min-width: 0; }
.csf-msg-text { margin: 0.2rem 0 0; font-size: 0.9375rem; line-height: 1.42; }

.csf-np { display: flex; flex-direction: column; min-height: 0; }
.csf-np-menu { display: flex; gap: 0.1rem; padding: 0.15rem 0.3rem; border-bottom: 1px solid #d8d4c4; background: linear-gradient(#fbfaf6, #ece9d8); }
.csf-np-menu span { padding: 0.15rem 0.5rem; font-size: 0.875rem; }
.csf-np-text {
  min-height: 7rem;
  max-height: 22rem;
  margin: 2px;
  padding: 0.6rem 0.75rem;
  overflow: auto;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #000;
  font: 0.9375rem/1.5 var(--csf-mono);
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  outline: none;
}

.csf-sys { display: flex; gap: 1rem; padding: 1rem 1.1rem 0.4rem; }
.csf-sys-art { flex: none; width: 5rem; height: 5rem; }
.csf-sys dl { margin: 0; font-size: 0.9375rem; line-height: 1.35; }
.csf-sys dt { margin-top: 0.4rem; color: #1d3f9a; font-weight: 700; }
.csf-sys dt:first-child { margin-top: 0; }
.csf-sys dd { margin: 0; }

/* ───────── viewers: what the files do ───────── */
.csf-pix { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.csf-msg-body { display: flex; flex-direction: column; gap: 0.6rem; }
.csf-inst-bar {
  height: 1.25rem;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #686868;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.csf-inst-fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #36b839 0 9px, transparent 9px 11px);
  box-shadow: inset 0 3px 2px -2px rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms cubic-bezier(.3, .9, .3, 1);
}

/* passwords.txt */
.csf-pw { position: relative; display: flex; flex-direction: column; gap: 0.15rem; max-height: none; }
.csf-pw-head { margin-bottom: 0.1rem; font-weight: 700; letter-spacing: 0.04em; }
.csf-pw-sub { margin-bottom: 0.55rem; color: #6a6a6a; font-style: italic; }
.csf-pw-row { display: grid; grid-template-columns: 7.6rem auto 1fr; align-items: center; gap: 0.5rem; min-height: 2.2rem; }
.csf-pw-key::after { content: ':'; }
.csf-pw-val {
  justify-self: start;
  min-height: 1.9rem;
  padding: 0.1rem 0.45rem;
  border: 1px dashed transparent;
  border-radius: 3px;
  background: none;
  color: #000;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 140ms var(--csf-spring), background-color 140ms;
}
.csf-pw-val:hover { border-color: #9fb3dd; background: #eef3fc; }
.csf-pw-val.is-pressed { transform: scale(1.12); }
.csf-pw-val.is-busy { color: #1f8f45; }
.csf-pw-val.is-shown { color: #1a4fc9; font-weight: 700; letter-spacing: 0; background: #fff7c2; }
.csf-pw-note { color: #7a7a7a; font-size: 0.875rem; }
.csf-pw-row.is-master { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px dashed #c9c9c9; }
.csf-pw-hint { grid-column: 2 / 4; color: #7a7a7a; font-style: italic; }
.csf-sticky {
  position: absolute;
  right: 1.4rem;
  bottom: 3.8rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 9.5rem;
  height: 8.5rem;
  padding: 0.8rem;
  background: linear-gradient(170deg, #fff8a8, #ffe866 70%, #f5d84a);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 3px 8px 12px -4px rgba(0, 0, 0, 0.4);
  color: #2a3a8c;
  font-family: var(--csf-hand);
  text-align: center;
  transform: rotate(-6deg);
  pointer-events: none;
}
.csf-sticky span { font-size: 0.95rem; }
.csf-sticky b { font-size: 1.55rem; }
.csf-sticky::before { content: ''; position: absolute; left: 30%; top: -0.55rem; width: 40%; height: 1.1rem; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transform: rotate(3deg); }

/* todo.txt */
.csf-todo { display: flex; flex-direction: column; gap: 0.1rem; max-height: none; }
.csf-todo-row { display: flex; align-items: center; gap: 0.4rem; }
.csf-todo-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.1rem 0.3rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #000;
  font: inherit;
  text-align: left;
  transform-origin: 10% 50%;
  transition: transform 140ms var(--csf-spring), background-color 120ms;
}
.csf-todo-line:hover { background: #f1f5fd; }
.csf-todo-line.is-pressed { transform: scale(1.04); }
.csf-todo-box {
  position: relative;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #4b5a78;
  border-radius: 2px;
  background: #fff;
}
.csf-todo-row.is-done .csf-todo-box { border-color: #1f8f45; background: #e9fbe9; }
.csf-todo-row.is-done .csf-todo-box::after {
  content: '';
  position: absolute;
  left: 0.32rem;
  top: -0.1rem;
  width: 0.38rem;
  height: 0.8rem;
  border: solid #1f8f45;
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.csf-todo-text { transition: color 200ms; }
.csf-todo-row.is-done .csf-todo-text { color: #8a8a8a; text-decoration: line-through 2px #1f8f45; }
.csf-todo-go {
  flex: none;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid #b6c9ec;
  border-radius: 999px;
  background: linear-gradient(#fff, #e6eefc);
  color: var(--csf-link);
  font: 700 0.875rem var(--cs-font);
  transition: transform 140ms var(--csf-spring);
}
.csf-todo-go.is-pressed { transform: scale(1.12); }

/* launch_codes.txt */
.csf-lc { display: flex; flex-direction: column; }
.csf-lc-codes { max-height: none; min-height: 0; }
.csf-lc-line { display: flex; align-items: baseline; gap: 0.4rem; }
.csf-lc-line i { flex: 1; border-bottom: 2px dotted #b0b0b0; transform: translateY(-0.25rem); }
.csf-lc-line:last-of-type b { color: #c3202b; }
.csf-lc-auth { margin-top: 0.4rem; color: #555; font-style: italic; }
.csf-lc-bay {
  position: relative;
  height: 10.5rem;
  margin: 0 2px;
  overflow: visible;
  background:
    linear-gradient(180deg, transparent 72%, #b8773a 72%, #d39556 75%, #a5652e 100%),
    repeating-linear-gradient(90deg, #d9ecf8 0 2.5rem, #cde4f3 2.5rem 5rem);
  border: 1px solid #7f9db9;
}
.csf-lc-toaster { position: absolute; left: 10%; bottom: 0.9rem; width: 12.5rem; height: 7.5rem; }
.csf-toaster { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; overflow: visible; }
.csf-toaster .csf-slot { transition: fill 300ms; }
.csf-lc-bay.is-heating .csf-toaster .csf-slot { fill: #ff7a1a; filter: drop-shadow(0 0 4px #ff8a2a); }
.csf-toaster .csf-lever { transition: transform 280ms cubic-bezier(.5, 0, .6, 1.4); }
.csf-lc-bay.is-heating .csf-toaster .csf-lever { transform: translateY(26px); }
.csf-toast-slice, .csf-toast-fly, .csf-toast-plated {
  position: absolute;
  display: block;
  border: 3px solid color-mix(in srgb, var(--toast, #e0a050) 55%, #3a1e08);
  border-radius: 38% 38% 6px 6px / 30% 30% 6px 6px;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--toast, #e0a050) 60%, #fff3d0), var(--toast, #e0a050));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.csf-toast-slice { bottom: 3.6rem; width: 24%; height: 3.2rem; transition: transform 500ms cubic-bezier(.3, 1.3, .5, 1); }
.csf-toast-slice.is-left { left: 24%; }
.csf-toast-slice.is-right { left: 57%; }
.csf-lc-bay.is-heating .csf-toast-slice { transform: translateY(2.3rem); }
.csf-toast-fly { z-index: 50; pointer-events: none; }
.csf-toast-fly.is-bagel, .csf-toast-plated.is-bagel {
  border-radius: 50%;
  background: radial-gradient(circle, transparent 20%, #3a2414 21%, #6b4424 45%, #3a2414 70%);
  border-color: #241408;
}
.csf-lc-plate {
  position: absolute;
  right: 9%;
  bottom: 1rem;
  width: 7.5rem;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0 55%, #e3e8ef 56% 70%, #b8c1cd 71%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}
.csf-toast-plated { left: 22%; bottom: 0.55rem; width: 2.6rem; height: 2rem; transform: rotate(-8deg); }
.csf-toast-plated.is-b { left: 44%; bottom: 0.75rem; transform: rotate(10deg); }
.csf-lc-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c3202b;
  font: 900 4.5rem/1 'Arial Black', Impact, sans-serif;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  pointer-events: none;
}
.csf-lc-ctrl { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem 0.8rem; flex-wrap: wrap; }
.csf-lc-label { font-weight: 700; }
.csf-lc-dial { display: flex; gap: 0.2rem; }
.csf-lc-set {
  min-width: 2.6rem;
  min-height: 2.4rem;
  border: 1px solid #7a7a7a;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff, #c9ced6);
  font: 700 0.9375rem var(--cs-font);
  transition: transform 140ms var(--csf-spring);
}
.csf-lc-set.is-on { border-color: #8a1414; background: radial-gradient(circle at 40% 30%, #ff9a8a, #d6331f 60%, #a3190c); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 2px rgba(226, 69, 46, 0.3); }
.csf-lc-set.is-pressed { transform: scale(1.15); }
.csf-lc-go { margin-left: auto; min-width: 7rem; min-height: 2.6rem; letter-spacing: 0.08em; }

/* taxes_2003.xls */
.csf-xl { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.csf-xl-bar { display: flex; gap: 0.25rem; padding: 0.3rem; border-bottom: 1px solid #c9c5b4; background: linear-gradient(#fdfcf9, #e8e5d8); }
.csf-xl-tool {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.3rem;
  padding: 0 0.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  font-size: 0.875rem;
  transition: transform 140ms var(--csf-spring);
}
.csf-xl-tool b { color: #1d6b1d; font-size: 1.15rem; }
.csf-xl-tool:hover { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); }
.csf-xl-tool.is-pressed { transform: scale(1.1); }
.csf-xl-chart-ico { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: conic-gradient(#3b5ce6 0 75%, #ff36ff 0 90%, #2fae4a 0); }
.csf-xl-fxbar { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.4rem; border-bottom: 1px solid #c9c5b4; background: var(--cs-face); }
.csf-xl-ref { min-width: 3rem; padding: 0.1rem 0.4rem; border: 1px solid #7f9db9; background: #fff; text-align: center; }
.csf-xl-fxbar i { color: #555; font-style: italic; font-weight: 700; }
.csf-xl-fx { flex: 1; min-width: 0; padding: 0.1rem 0.4rem; border: 1px solid #7f9db9; background: #fff; font-family: var(--csf-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.csf-xl-sheet { position: relative; overflow: auto; }
.csf-xl-grid { display: grid; grid-template-columns: 2.4rem minmax(12.5rem, 1.3fr) minmax(10.5rem, 1fr) minmax(5rem, 0.6fr) minmax(5rem, 0.6fr); min-width: 36rem; font-size: 0.9375rem; }
.csf-xl-corner, .csf-xl-col, .csf-xl-row { border: 1px solid #b9b5a6; border-width: 0 1px 1px 0; background: linear-gradient(#f7f6f1, #e3e0d4); color: #333; text-align: center; font-size: 0.875rem; }
.csf-xl-col, .csf-xl-row { padding: 0.15rem; }
.csf-xl-cell { min-height: 1.9rem; padding: 0.25rem 0.45rem; border: 1px solid #dad6cb; border-width: 0 1px 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf-xl-cell.is-b { text-align: right; }
.csf-xl-cell.is-bold { font-weight: 700; }
.csf-xl-cell.is-total { position: relative; font-weight: 700; outline: 3px solid #1b1b1b; outline-offset: -2px; transform-origin: 50% 50%; }
.csf-xl-cell.is-total::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; background: #1b1b1b; }
.csf-xl-cell.is-bad { color: #c3202b; }
.csf-xl-cell.is-good { background: #e3fbe3; color: #157a2a; }
.csf-xl-tabs { display: flex; gap: 0.15rem; padding: 0 0.4rem; border-top: 1px solid #b9b5a6; background: var(--cs-face); }
.csf-xl-tabs span { padding: 0.2rem 0.8rem; border: 1px solid #b9b5a6; border-top: 0; border-radius: 0 0 4px 4px; background: #ece9d8; font-size: 0.875rem; }
.csf-xl-tabs span.is-on { background: #fff; font-weight: 700; }
.csf-xl-pie {
  position: absolute;
  right: 0.6rem;
  top: 2.2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 12rem;
  padding: 0.5rem;
  border: 1px solid #7a7a7a;
  background: #fff;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.3);
}
.csf-xl-pie b { font-size: 0.875rem; }
.csf-xl-pie-art { width: 9.5rem; }
.csf-xl-legend { display: flex; flex-direction: column; gap: 0.1rem; align-self: stretch; font-size: 0.875rem; }
.csf-xl-legend span { display: flex; align-items: center; gap: 0.35rem; }
.csf-xl-legend i { width: 0.8rem; height: 0.8rem; border: 1px solid rgba(0, 0, 0, 0.3); }

/* cat_video.avi */
.csf-mp { display: flex; flex-direction: column; background: linear-gradient(#26324d, #121a2c); }
.csf-mp-screen { position: relative; margin: 0.5rem 0.5rem 0; overflow: hidden; border: 1px solid #000; background: #000; box-shadow: 0 0 0 1px #46567a; }
.csf-mp-video { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.csf-mp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.csf-mp-ctrl { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.6rem 0.65rem; }
.csf-mp-btn {
  position: relative;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #0d2a66;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #9fd0ff, #2d6fd6 55%, #123f98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform 140ms var(--csf-spring);
}
.csf-mp-btn.is-pressed { transform: scale(1.14); }
.csf-mp-btn.is-stop { width: 2.2rem; height: 2.2rem; background: radial-gradient(circle at 40% 30%, #e9edf3, #9aa4b2 60%, #5d6672); border-color: #3a414b; }
.csf-mp-btn::before { content: ''; position: absolute; left: 50%; top: 50%; }
.csf-mp-btn.is-pause::before { margin: -0.45rem 0 0 -0.25rem; border: 0.45rem solid transparent; border-left: 0.75rem solid #fff; border-right: 0; }
.csf-mp-btn.is-play::before { width: 0.75rem; height: 0.85rem; margin: -0.425rem 0 0 -0.375rem; border-left: 0.25rem solid #fff; border-right: 0.25rem solid #fff; }
.csf-mp-btn.is-stop::before { width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; background: #2b3038; }
.csf-mp-seek { position: relative; flex: 1; height: 2.6rem; touch-action: none; outline: none; cursor: pointer; }
.csf-mp-seek::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 0.5rem; margin-top: -0.25rem; border-radius: 999px; background: #0b1222; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, 0.15); }
.csf-mp-fill { position: absolute; left: 0; right: 0; top: 50%; height: 0.5rem; margin-top: -0.25rem; border-radius: 999px; background: linear-gradient(#8ff28a, #2fae4a); transform: scaleX(0); transform-origin: 0 50%; }
.csf-mp-thumb { position: absolute; top: 50%; left: calc(var(--k, 0) * 100%); width: 1.1rem; height: 1.1rem; margin: -0.55rem 0 0 -0.55rem; border: 1px solid #0d2a66; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #b9c9e6); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.csf-mp-seek:focus-visible .csf-mp-thumb { box-shadow: 0 0 0 3px rgba(143, 242, 138, 0.6); }
.csf-mp-time { flex: none; min-width: 5.6rem; color: #cfe3ff; font: 0.875rem var(--csf-mono); text-align: right; }

/* DO_NOT_OPEN.exe */
.csf-inst { display: flex; flex-direction: column; }
.csf-inst-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #c9c5b4; background: #fff; }
.csf-inst-head b { font-size: 1rem; }
.csf-inst-ico { width: 2.6rem; height: 2.6rem; }
.csf-inst-main { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 0.9rem 1.1rem; }
.csf-inst-line { margin: 0; font-size: 0.9375rem; }
.csf-duck { position: absolute; left: 0; z-index: 40; width: 3.2rem; height: 3.2rem; pointer-events: none; }
.csf-duck .csf-art { animation: csf-waddle 0.3s ease-in-out infinite alternate; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }
.csf-view.is-happy .csf-item-art { animation: csf-happy 0.46s ease-in-out infinite alternate; }
.csf-view.is-happy .csf-item:nth-child(even) .csf-item-art, .csf-view.is-happy .csf-group-items .csf-item:nth-child(even) .csf-item-art { animation-delay: -0.23s; }
@keyframes csf-happy { from { transform: translateY(0) rotate(-6deg) scale(1, 1); } to { transform: translateY(-8px) rotate(6deg) scale(1.04, .96); } }
.csf-party { position: absolute; z-index: 35; overflow: hidden; pointer-events: none; }
.csf-disco {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5.5rem;
  height: 9rem;
  transform: translateX(-50%);
  background:
    linear-gradient(#888, #888) 50% 0 / 2px 3.5rem no-repeat,
    radial-gradient(circle at 38% 30%, #fff 0 6%, transparent 9%) 0 3.5rem / 5.5rem 5.5rem no-repeat,
    repeating-conic-gradient(from 0deg, #e8ecf2 0 10deg, #9aa4b2 10deg 20deg, #ffffff 20deg 30deg) 0 3.5rem / 5.5rem 5.5rem no-repeat;
  -webkit-mask: linear-gradient(#000, #000) 50% 0 / 2px 3.5rem no-repeat, radial-gradient(circle, #000 69%, transparent 70%) 0 3.5rem / 5.5rem 5.5rem no-repeat;
  mask: linear-gradient(#000, #000) 50% 0 / 2px 3.5rem no-repeat, radial-gradient(circle, #000 69%, transparent 70%) 0 3.5rem / 5.5rem 5.5rem no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}
.csf-lights {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 60, 160, 0.38) 0 6%, transparent 9%),
    radial-gradient(circle at 70% 35%, rgba(60, 200, 255, 0.38) 0 6%, transparent 9%),
    radial-gradient(circle at 55% 70%, rgba(255, 230, 60, 0.38) 0 6%, transparent 9%),
    radial-gradient(circle at 25% 75%, rgba(120, 255, 120, 0.35) 0 5%, transparent 8%),
    radial-gradient(circle at 80% 65%, rgba(180, 110, 255, 0.38) 0 6%, transparent 9%);
  mix-blend-mode: screen;
  animation: csf-spin 4s linear infinite;
}
@keyframes csf-spin { to { transform: rotate(360deg); } }
.csf.is-party .csf-view { background: #1a1230; }
.csf.is-party .csf-item { color: #fff; }
.csf-bigduck {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(30rem, calc(100% - 1rem));
  transform: translate(-50%, -50%);
}
.csf-bigduck-art { flex: none; width: min(9rem, 30vw); height: min(9rem, 30vw); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.csf-bigduck-say {
  position: relative;
  flex: 1;
  padding: 0.9rem 1rem;
  border: 2px solid #1b1b1b;
  border-radius: 1rem;
  background: #ffffe8;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.25);
  font-size: 1rem;
  line-height: 1.4;
}
.csf-bigduck-say::before { content: ''; position: absolute; left: -0.9rem; top: 45%; border: 0.55rem solid transparent; border-right: 0.9rem solid #1b1b1b; }
.csf-bigduck-say p { margin: 0 0 0.5rem; }
.csf-view.is-dramatic { box-shadow: inset 0 0 7rem rgba(120, 0, 0, 0.55); }

/* sandwich.jpg: Picture Viewer */
.csf-pv { display: flex; flex-direction: column; min-height: 0; }
.csf-pv-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 19rem;
  padding: 1.2rem 1rem 0.9rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #3a4560, #151a26 75%);
}
.csf-pv-rays {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 46rem;
  height: 46rem;
  margin: -23rem 0 0 -23rem;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, 0.22) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%);
  mask: radial-gradient(circle, #000 0 18%, transparent 62%);
  opacity: 0;
  transition: opacity 600ms;
}
.csf-pv-stage.is-reveal .csf-pv-rays { opacity: 1; animation: csf-spin 22s linear infinite; }
.csf-pv-frame {
  position: relative;
  z-index: 1;
  width: min(22rem, 92%);
  padding: 0.45rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 226, 140, 0.25);
  transition: transform 380ms cubic-bezier(.3, 1.5, .5, 1);
}
.csf-pv-img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.csf-pv-stage.is-dark .csf-pv-frame, .csf-pv-stage.is-dark .csf-pv-cap { opacity: 0; }
.csf-pv-cap { position: relative; z-index: 1; margin: 0; color: #f3ead2; font-size: 0.9375rem; text-align: center; text-shadow: 0 1px 2px #000; }
.csf-pv-bar { display: flex; align-items: center; justify-content: center; gap: 0.3rem; flex-wrap: wrap; padding: 0.45rem 0.5rem; border-top: 1px solid #fff; background: linear-gradient(#f6f4ec, #e0dccd); }
.csf-pv-tool {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  transition: transform 140ms var(--csf-spring);
}
.csf-pv-tool:hover { border-color: #cbc6b2; background: radial-gradient(circle at 40% 30%, #fff, #ece8db); }
.csf-pv-tool.is-pressed { transform: scale(1.18); }
.csf-pv-ico { width: 1.7rem; height: 1.7rem; }
.csf-pv-eat { min-width: 9rem; min-height: 2.5rem; font-weight: 700; }

/* report previews */
.csf-wd { display: flex; flex-direction: column; min-height: 0; }
.csf-wd-ruler { height: 1.3rem; border-bottom: 1px solid #a9a594; background: repeating-linear-gradient(90deg, transparent 0 calc(1rem - 1px), #9a9684 calc(1rem - 1px) 1rem) 0 70% / 100% 35% no-repeat, linear-gradient(#fff, #f1efe6); }
.csf-wd-desk { padding: 1rem 1.1rem 1.2rem; overflow: auto; background: #8e98ac; }
.csf-wd-page {
  position: relative;
  min-height: 15rem;
  padding: 1.6rem 1.8rem 1.8rem;
  background: #fff;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.4);
  color: #111;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 1rem;
  line-height: 1.45;
}
.csf-wd-page h1 { margin: 0 0 0.6rem; font-size: 1.45rem; }
.csf-wd-page h2 { margin: 0.8rem 0 0.25rem; font-size: 1.1rem; }
.csf-wd-page p { margin: 0 0 0.45rem; }
.csf-wd-page .is-huge { margin-top: 3rem; font-size: 2.1rem; font-weight: 700; text-align: center; }
.csf-wd-page .is-dim { color: #777; font-style: italic; }
.csf-wd-comment {
  position: absolute;
  right: -0.6rem;
  top: 1.2rem;
  max-width: 11rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d2a528;
  border-radius: 4px;
  background: #fff7c8;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
  color: #4a3a00;
  font: 0.875rem/1.35 var(--cs-font);
  transform: rotate(2deg);
}
.csf-wd-page.is-real .csf-wd-comment { top: auto; bottom: 1.4rem; }
.csf-wd-stamp {
  position: absolute;
  left: 50%;
  top: 45%;
  padding: 0.25rem 0.8rem;
  border: 5px double #c3202b;
  border-radius: 6px;
  color: #c3202b;
  font: 900 2.2rem/1 'Arial Black', Impact, sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0.88;
  translate: -50% -50%;
  transform: rotate(-16deg);
  mix-blend-mode: multiply;
}
.csf-wd-star {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 13rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(#fff6c2, #ffe066);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #6b4a00;
  font: 700 0.875rem/1.25 var(--cs-font);
}
.csf-wd-star b { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #ffe98a, #e0a000); color: #fff; font-size: 1.4rem; text-shadow: 0 1px 1px #8a5a00; }
.csf-wd-status { padding: 0.25rem 0.6rem; border-top: 1px solid #fff; background: var(--cs-face); font-size: 0.875rem; }

/* drive properties */
.csf-pp { display: flex; flex-direction: column; padding: 0.6rem 0.6rem 0; }
.csf-pp-tabs { display: flex; gap: 2px; padding-left: 0.2rem; }
.csf-pp-tab {
  position: relative;
  top: 1px;
  min-height: 2rem;
  padding: 0 0.9rem;
  border: 1px solid #919b9c;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#fff, #ecebe5);
  font-size: 0.875rem;
  transition: transform 140ms var(--csf-spring);
}
.csf-pp-tab.is-on { z-index: 1; border-top: 2px solid #e68b2c; background: #fcfcfe; }
.csf-pp-tab.is-pressed { transform: scale(1.06); }
.csf-pp-sheet { padding: 0.75rem 0.85rem; border: 1px solid #919b9c; background: #fcfcfe; }
.csf-pp-page { display: flex; flex-direction: column; gap: 0.35rem; }
.csf-pp-page hr { width: 100%; margin: 0.2rem 0; border: 0; border-top: 1px solid #d0d0bf; }
.csf-pp-name { display: flex; align-items: center; gap: 0.8rem; }
.csf-pp-icon { flex: none; width: 2.6rem; height: 2.6rem; }
.csf-pp-label { flex: 1; padding: 0.25rem 0.4rem; border: 1px solid #7f9db9; background: #fff; }
.csf-pp-grid { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.875rem; }
.csf-pp-grid dt { display: flex; align-items: center; gap: 0.4rem; }
.csf-pp-grid dd { margin: 0; overflow-wrap: anywhere; }
.csf-pp-sw { flex: none; width: 0.9rem; height: 0.9rem; border: 1px solid rgba(0, 0, 0, 0.45); }
.csf-pp-pie { align-self: center; width: 11rem; margin: 0.2rem 0; transform-origin: 50% 80%; transition: transform 420ms cubic-bezier(.3, 1.5, .5, 1); }
.csf-pp-pie.is-squished { transform: scale(1.15, 0.55); }
.csf-pp-drive { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.csf-pp-opt { display: flex; align-items: center; gap: 0.45rem; min-height: 2.2rem; font-size: 0.875rem; }
.csf-pp-check { width: 1.1rem; height: 1.1rem; accent-color: #316ac5; }
.csf-pp-set { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.3rem 0.6rem; align-items: center; margin: 0 0 0.6rem; padding: 0.4rem 0.7rem 0.7rem; border: 1px solid #d0d0bf; border-radius: 4px; }
.csf-pp-set legend { padding: 0 0.3rem; color: #1d3f9a; font-weight: 700; }
.csf-pp-set-ico { width: 2.2rem; height: 2.2rem; }
.csf-pp-set p { margin: 0; font-size: 0.875rem; }
.csf-pp-set .csf-btn { grid-column: 2; justify-self: end; }

/* the floppy grinds */
.csf-item.is-grinding .csf-led { animation: csf-led 0.12s steps(2, jump-none) infinite; }
@keyframes csf-led { from { fill: #39d353; } to { fill: #0d4d18; } }
.csf-item.is-grinding .csf-floppy-disk { animation: csf-grind 0.18s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes csf-grind { from { transform: translateY(0); } to { transform: translateY(2px); } }

/* the DVD cup holder */
.csf-tray {
  position: absolute;
  z-index: 5;
  width: 15rem;
  height: 13rem;
  overflow: hidden;
  pointer-events: none;
}
/* Beside the window the tray's cut end sits flush against the frame, as if the rest were inside; on phones it slides over the content. */
.csf-tray.is-right { left: 100%; z-index: -1; }
.csf-tray.is-left { right: 100%; z-index: -1; }
.csf-tray.is-inside { right: 3px; }
.csf-tray-in { position: absolute; left: 0; right: 0; bottom: 0.4rem; pointer-events: auto; cursor: pointer; outline: none; }
.csf-tray.is-left .csf-tray-body { transform: scaleX(-1); }
.csf-tray-body { display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.csf-tray-art { display: block; width: 100%; height: auto; }
.csf-mug {
  position: absolute;
  left: 38%;
  bottom: 2.2rem;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}
.csf-tray.is-left .csf-mug { left: auto; right: 38%; }
.csf-tray.has-mug .csf-mug { opacity: 1; }
.csf-mug-art { display: block; width: 100%; height: 100%; overflow: visible; }
.csf-mug .csf-steam { animation: csf-steam 1.6s ease-in-out infinite; }
@keyframes csf-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-6px); } }

/* The Cloud (N:) */
.csf-cl { display: flex; flex-direction: column; }
.csf-cl-sky {
  position: relative;
  height: 18rem;
  overflow: hidden;
  background: linear-gradient(180deg, #6b8fbf 0%, #9db8d9 55%, #c9d8ea 100%);
}
.csf-cl-cloud {
  position: absolute;
  left: 50%;
  top: 7rem;
  width: 13rem;
  height: 4.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 30%, #ffffff, #e2eaf5 70%, #c7d4e6);
  box-shadow: 0 6px 12px rgba(40, 60, 100, 0.25);
  transform: translateX(-50%);
  transition: transform 140ms var(--csf-spring), opacity 400ms;
  animation: csf-drift 6s ease-in-out infinite alternate;
}
.csf-cl-cloud::before, .csf-cl-cloud::after { content: ''; position: absolute; border-radius: 50%; background: radial-gradient(circle at 45% 35%, #ffffff, #e6edf7 75%); }
.csf-cl-cloud::before { left: 1.6rem; top: -2.2rem; width: 5.2rem; height: 5.2rem; }
.csf-cl-cloud::after { right: 2rem; top: -1.4rem; width: 4rem; height: 4rem; }
@keyframes csf-drift { from { translate: -0.8rem 0; } to { translate: 0.8rem 0; } }
.csf-cl-files { position: absolute; left: 50%; top: -3.2rem; z-index: 2; display: flex; gap: 0.3rem; transform: translateX(-50%); }
.csf-cl-file { width: 2.4rem; height: 2.4rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); animation: csf-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.6s); }
.csf-cl-umbrella {
  position: absolute;
  left: 50%;
  top: -6.4rem;
  z-index: 3;
  width: 10.5rem;
  height: 3.2rem;
  border-radius: 10.5rem 10.5rem 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, #e2452e 0 22.5deg, #ffffff 22.5deg 45deg);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  transform: translateX(-50%) scale(0);
  transform-origin: 50% 100%;
  transition: transform 420ms cubic-bezier(.3, 1.6, .5, 1);
}
.csf-cl-umbrella::after { content: ''; position: absolute; left: calc(50% - 2px); top: 100%; width: 4px; height: 3.2rem; border-radius: 0 0 4px 4px; background: #4a3218; }
.csf-cl-sky.has-umbrella .csf-cl-umbrella { transform: translateX(-50%) scale(1); }
.csf-cl-rain { position: absolute; left: 22%; right: 22%; top: 11.4rem; bottom: 1.4rem; }
.csf-cl-rain i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 1rem;
  border-radius: 2px;
  background: linear-gradient(transparent, #3d7ce0);
  animation: csf-rain 0.9s linear infinite;
}
@keyframes csf-rain { from { transform: translateY(-1rem); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(5.4rem); opacity: 0.6; } }
.csf-cl-puddle { position: absolute; left: 25%; right: 25%; bottom: 0.6rem; height: 1rem; border-radius: 50%; background: radial-gradient(ellipse, rgba(61, 124, 224, 0.5), transparent 70%); }
.csf-cl-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.csf-cl-sky.is-connecting .csf-cl-cloud { opacity: 0.35; animation: none; }
.csf-cl-sky.is-connecting .csf-cl-rain, .csf-cl-sky.is-connecting .csf-cl-files { visibility: hidden; }
.csf-cl-status { margin: 0; padding: 0.6rem 0.9rem 0.2rem; font-size: 0.9375rem; }

/* ───────── Search Companion ───────── */
.csf-companion { display: flex; flex-direction: column; gap: 0.6rem; min-height: 100%; }
.csf-co-card {
  padding: 0.85rem 0.8rem 0.9rem;
  border: 1px solid #fff;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #ffffff, #f2f6fe);
  box-shadow: 0 1px 3px rgba(18, 38, 120, 0.35);
}
.csf-co-q { margin: 0 0 0.6rem; color: #215dc6; font-size: 1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.csf-co-opts { display: flex; flex-direction: column; gap: 0.1rem; }
.csf-co-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding: 0.1rem 0.35rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #0c2f8f;
  font-size: 0.9375rem;
  text-align: left;
  transform-origin: 12% 50%;
  transition: transform 140ms var(--csf-spring), background-color 120ms;
}
.csf-co-opt:hover { background: #e8effc; }
.csf-co-opt:hover span:last-child { text-decoration: underline; }
.csf-co-opt.is-pressed { transform: scale(1.06); }
.csf-co-opt.is-done { color: #1d6b1d; }
.csf-co-arrow { flex: none; width: 1.4rem; height: 1.4rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.csf-co-type { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; color: #333; font-size: 0.875rem; }
.csf-co-row { display: flex; gap: 0.35rem; }
.csf-co-input { flex: 1; min-width: 0; height: 2.3rem; padding: 0 0.45rem; border: 1px solid #7f9db9; background: #fff; color: #000; font: max(0.9375rem, 16px) var(--cs-font); outline: none; }
.csf-co-input:focus { box-shadow: 0 0 0 2px rgba(49, 106, 197, 0.25); }
.csf-co-row .csf-btn { min-width: 0; }
.csf-co-sweep { position: relative; height: 1.2rem; overflow: hidden; border: 1px solid #686868; border-radius: 3px; background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
.csf-co-sweep i {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 34%;
  background: repeating-linear-gradient(90deg, #36b839 0 9px, transparent 9px 11px);
  animation: csf-sweep 1.15s ease-in-out infinite alternate;
}
@keyframes csf-sweep { from { transform: translateX(0); } to { transform: translateX(188%); } }
.csf-co-where { margin: 0.5rem 0; color: #3b3b3b; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csf-co-btns { display: flex; justify-content: flex-end; }
.csf-co-sum { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.4; }
.csf-co-label { margin: 0.2rem 0 0.25rem; color: #333; font-size: 0.875rem; font-weight: 700; }
.csf-co-floor { position: relative; margin-top: auto; padding-top: 3.1rem; }
.csf-co-dog { display: block; width: 100%; max-width: 10.5rem; margin: 0 auto; padding: 0 0.6rem 0 0; border: 0; background: none; cursor: pointer; }
.csf-co-dog:focus-visible { outline: 2px dotted #fff; outline-offset: 2px; }
.csf-co-say {
  position: absolute;
  left: 0.2rem;
  top: 0;
  z-index: 2;
  max-width: 12rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #1b1b1b;
  border-radius: 0.7rem;
  background: #ffffe1;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.3);
  color: #000;
  font-size: 0.875rem;
  line-height: 1.3;
  transform-origin: 70% 100%;
}
.csf-co-say::after { content: ''; position: absolute; right: 1.6rem; bottom: -0.62rem; border: 0.6rem solid transparent; border-top-color: #1b1b1b; border-bottom: 0; border-right-width: 0.2rem; }
.csf-co-say:empty { display: none; }
.csf-co-z { position: absolute; right: 20%; top: 3.6rem; z-index: 3; color: #fff; font: 900 1.5rem/1 'Comic Sans MS', 'Trebuchet MS', sans-serif; text-shadow: 0 1px 3px rgba(10, 30, 80, 0.8); pointer-events: none; }
.csf-panel.is-sniffing .csf-panel-art { opacity: 0.85; animation: csf-hunt 1.5s ease-in-out infinite; }
@keyframes csf-hunt { 0% { transform: translate(-14px, 0) rotate(-8deg); } 25% { transform: translate(0, -8px); } 50% { transform: translate(14px, 0) rotate(8deg); } 75% { transform: translate(0, 6px); } 100% { transform: translate(-14px, 0) rotate(-8deg); } }

/* Biscuit's moods */
.csf-dog { display: block; width: 100%; height: auto; overflow: visible; }
.csf-dog .dog-tail { transform-origin: 48px 72px; }
.csf-dog .dog-head { transform-origin: 146px 62px; transition: transform 320ms cubic-bezier(.3, 1.4, .5, 1); }
.csf-dog .dog-ear { transform-origin: 150px 34px; transition: transform 300ms; }
.csf-dog .dog-eye { transform-origin: 166px 40px; animation: dog-blink 4.2s infinite; }
.csf-dog .dog-nose { transform-origin: 199px 51px; }
.csf-dog .dog-mid { transform-origin: 62px 75px; }
.csf-dog .dog-leg { transform-box: fill-box; transform-origin: 50% 8%; transition: transform 360ms; }
.csf-dog .dog-up { transition: transform 420ms cubic-bezier(.3, 1.2, .5, 1); }
.csf-dog .dog-tongue { opacity: 0; transition: opacity 150ms; }
@keyframes dog-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(0.1); } }
@keyframes dog-wag { from { transform: rotate(-12deg); } to { transform: rotate(18deg); } }
@keyframes dog-ear { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 95% { transform: rotate(5deg); } }
.csf-dog.is-idle .dog-tail { animation: dog-wag 0.7s ease-in-out infinite alternate; }
.csf-dog.is-idle .dog-ear { animation: dog-ear 5.5s ease-in-out infinite; }
.csf-dog.is-sniff .dog-up { transform: translateX(-20px); }
.csf-dog.is-sniff .dog-head { animation: dog-sniff 0.32s ease-in-out infinite alternate; }
.csf-dog.is-sniff .dog-nose { animation: dog-nose 0.16s steps(2, jump-none) infinite; }
.csf-dog.is-sniff .dog-tail { animation: dog-wag 0.22s ease-in-out infinite alternate; }
.csf-dog.is-sniff .dog-mid { animation: dog-stretch 2.4s ease-in-out infinite; }
.csf-dog.is-sniff .dog-front { animation: dog-reach 2.4s ease-in-out infinite; }
.csf-dog.is-sniff .dog-leg { animation: dog-trot 0.3s ease-in-out infinite alternate; }
.csf-dog.is-sniff .dog-leg.is-rb, .csf-dog.is-sniff .dog-leg.is-fn { animation-delay: -0.15s; }
.csf-dog.is-sniff .dog-ear { animation: dog-flop 0.32s ease-in-out infinite alternate; }
@keyframes dog-sniff { from { transform: rotate(15deg) translateY(4px); } to { transform: rotate(20deg) translateY(7px); } }
@keyframes dog-nose { from { transform: none; } to { transform: translate(1.5px, -1px) scale(1.1); } }
@keyframes dog-stretch { 0%, 100% { transform: scaleX(1); } 30% { transform: scaleX(1.45); } 50% { transform: scaleX(1.22); } 75% { transform: scaleX(1.55); } }
@keyframes dog-reach { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(33.3px); } 50% { transform: translateX(16.3px); } 75% { transform: translateX(40.7px); } }
@keyframes dog-trot { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes dog-flop { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.csf-dog.is-happy .dog-up { animation: dog-hop 0.42s cubic-bezier(.3, .6, .5, 1) 3; }
.csf-dog.is-happy .dog-tail { animation: dog-wag 0.12s linear infinite alternate; }
.csf-dog.is-happy .dog-tongue { opacity: 1; }
.csf-dog.is-happy .dog-eye { animation: none; transform: scaleY(0.5); }
.csf-dog.is-happy .dog-head { transform: rotate(-9deg); }
.csf-dog.is-happy .dog-ear { transform: rotate(-10deg); }
@keyframes dog-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(2px) scale(1.03, .95); } 55% { transform: translateY(-15px) scale(.98, 1.03); } }
.csf-dog.is-sleep .dog-up { transform: translateY(20px); }
.csf-dog.is-sleep .dog-leg { transform: scaleY(0.32); }
.csf-dog.is-sleep .dog-head { transform: rotate(12deg) translateY(6px); }
.csf-dog.is-sleep .dog-eye { animation: none; transform: scaleY(0.12); }
.csf-dog.is-sleep .dog-ear { transform: rotate(9deg); }

/* Phones: no drawer in search mode; the companion sits above the results, side by side with the dog. */
.csf.is-narrow[data-mode="search"] .csf-tool.is-tasks { display: none; }
.csf.is-narrow[data-mode="search"] .csf-body { grid-template-rows: auto minmax(0, 1fr); }
.csf.is-narrow[data-mode="search"] .csf-pane { position: static; z-index: auto; width: auto; max-height: 21rem; padding: 0.5rem; box-shadow: inset 0 -1px 0 #4b5fb8; transform: none; transition: none; }
.csf.is-narrow[data-mode="search"] .csf-companion { flex-direction: row; align-items: stretch; gap: 0.45rem; min-height: 0; }
.csf.is-narrow[data-mode="search"] .csf-co-card { flex: 1; min-width: 0; padding: 0.6rem 0.55rem; }
.csf.is-narrow[data-mode="search"] .csf-co-floor { flex: none; align-self: flex-end; width: 6.8rem; margin-top: 0; padding-top: 3.4rem; }
.csf.is-narrow[data-mode="search"] .csf-co-dog { padding: 0; }
.csf.is-narrow[data-mode="search"] .csf-co-say { left: -0.2rem; right: -0.2rem; max-width: none; padding: 0.3rem 0.45rem; }
.csf.is-narrow[data-mode="search"] .csf-co-say::after { right: 1rem; }
.csf.is-narrow[data-mode="search"] .csf-co-q { font-size: 0.9375rem; }
@media (pointer: coarse) { .csf-co-opt { min-height: 2.75rem; } .csf-co-input { height: 2.75rem; } }

/* ───────── Disk Defragmenter ───────── */
.csd { display: flex; flex-direction: column; }
.csd-vols {
  flex: none;
  margin: 0.5rem 0.55rem 0;
  overflow: hidden;
  border: 1px solid #7f9db9;
  background: #fff;
}
.csd-row {
  display: grid;
  grid-template-columns: minmax(12rem, 2.2fr) minmax(8rem, 1.3fr) minmax(5rem, 0.8fr) minmax(5rem, 0.8fr) minmax(6rem, 0.9fr) minmax(6rem, 0.9fr);
  align-items: center;
  width: 100%;
  min-height: 2.2rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #f0efe8;
  background: none;
  color: #000;
  font-size: 0.875rem;
  text-align: left;
  transition: background-color 120ms, transform 140ms var(--csf-spring);
}
.csd-row > span { display: flex; align-items: center; gap: 0.4rem; min-width: 0; padding: 0 0.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csd-row.is-head { min-height: 1.9rem; border-bottom: 1px solid #c9c5b4; background: linear-gradient(#fdfdfb, #ebe9df); }
.csd-row.is-head > span { height: 100%; border-right: 1px solid #d6d2c2; box-shadow: 1px 0 0 #fff; }
.csd-row[data-id]:hover { background: #eef3fc; }
.csd-row.is-on, .csd-row.is-on:hover { background: var(--cs-select); color: #fff; }
.csd-row.is-pressed { transform: scale(1.01); }
.csd-vols.is-locked .csd-row[data-id]:not(.is-on) { color: #8a8a8a; }
.csd-vol-ico { flex: none; width: 1.5rem; height: 1.5rem; }
.csd-c1 { font-weight: 700; }

.csd-stage { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 0.4rem; padding: 0.55rem 0.55rem 0.3rem; }
.csd-label { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.875rem; }
.csd-label b { font-size: 0.9375rem; }
.csd-label span { color: #555; }
.csd-gridwrap {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 7rem;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  background: linear-gradient(#d3d8e1, #c3c9d4);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.csd-grid { display: block; cursor: crosshair; touch-action: manipulation; }
.csd-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.csd.is-running .csd-gridwrap { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(49, 106, 197, 0.25); }
.csd-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; padding: 0.15rem 0.1rem; font-size: 0.875rem; }
.csd-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.csd-key i { flex: none; width: 1rem; height: 1rem; border: 1px solid rgba(0, 0, 0, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.csd-key.is-pic b { color: #8a5a00; }
.csd-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.35rem 0.55rem 0.55rem; }
.csd-actions .csf-btn { min-width: 6.5rem; min-height: 2.4rem; }
.csd-status-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csd-prog {
  position: relative;
  flex: none;
  width: 12rem;
  height: 1.2rem;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #686868;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.csd-prog-fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #36b839 0 9px, transparent 9px 11px);
  box-shadow: inset 0 3px 2px -2px rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 260ms linear;
}
.csd-pct { flex: none; min-width: 2.8rem; text-align: right; font-variant-numeric: tabular-nums; }
.csd-spark {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px #8a56c8, 0 0 3px #fff;
  pointer-events: none;
}

/* Phones: fewer columns in the volume list, buttons share a row. */
@media (max-width: 599px) {
  .csd-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr); }
  .csd-row > .csd-c2, .csd-row > .csd-c3, .csd-row > .csd-c5 { display: none; }
  .csd-actions .csf-btn { flex: 1 1 28%; min-width: 0; padding: 0.2rem 0.4rem; }
  .csd-prog { width: 6.5rem; }
  .csd-legend { gap: 0.25rem 0.8rem; }
}
@media (pointer: coarse) { .csd-row { min-height: 2.75rem; } .csd-actions .csf-btn { min-height: 2.75rem; } }

/* ───────── reduced motion ───────── */
html[data-reduced-motion="on"] .csf.is-busy .csf-brand .csf-art,
html[data-reduced-motion="on"] .csf-tumble i,
html[data-reduced-motion="on"] .csf-motes i,
html[data-reduced-motion="on"] .csf-view.is-vault .csf-item,
html[data-reduced-motion="on"] .csf-duck .csf-art,
html[data-reduced-motion="on"] .csf-view.is-happy .csf-item-art,
html[data-reduced-motion="on"] .csf-lights,
html[data-reduced-motion="on"] .csf-pv-stage.is-reveal .csf-pv-rays,
html[data-reduced-motion="on"] .csf-item.is-grinding .csf-led,
html[data-reduced-motion="on"] .csf-item.is-grinding .csf-floppy-disk,
html[data-reduced-motion="on"] .csf-cl-cloud,
html[data-reduced-motion="on"] .csf-cl-file,
html[data-reduced-motion="on"] .csf-dog *,
html[data-reduced-motion="on"] .csf-panel.is-sniffing .csf-panel-art { animation: none !important; }
html[data-reduced-motion="on"] .csf-co-sweep i { animation-duration: 3s; }
html[data-reduced-motion="on"] .csf-cl-rain i { animation-duration: 2.4s; }
html[data-reduced-motion="on"] .csf-motes i { opacity: 0.5; }
html[data-reduced-motion="on"] .csf-tumble i { left: calc(50% - 1.5rem); }
