:root {
  --paper: #f7f5f2; --white: #fff; --ink: #151515; --mute: #8b867f; --soft: #b9b3ab;
  --line: #e6e1da; --tile: #eeeae4; --green: #2f6b4f;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --menu: 272px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.4 var(--sans); overflow-x: clip; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- icons (masks, tinted by colour) */
.icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; position: relative; }
.icon::before { content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.burger { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E"); }
.closeMenu, .x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.glass { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); }
.heart, .heartTop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.heart.on { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); color: #d2405f; }
.add, .plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.plus.done, .tick { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.vnav.next, .chev { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.vnav.prev { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.fold { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- left menu */
.menu { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(84vw, var(--menu));
  background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden;
  padding: calc(10px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-102%); transition: transform .25s ease; }
body.menuOpen .menu { transform: none; box-shadow: 12px 0 40px #0000001f; }
.scrim { position: fixed; inset: 0; z-index: 25; background: #15151540; opacity: 0; pointer-events: none; transition: opacity .25s; }
body.menuOpen .scrim { opacity: 1; pointer-events: auto; }
.menuHead { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px 6px; }
.menuNav { display: flex; flex-direction: column; gap: 2px; }
.menuNav button { display: flex; align-items: center; justify-content: space-between; text-align: left;
  padding: 11px 10px; border-radius: 10px; font-size: 16px; }
.menuNav button small { color: var(--mute); font-size: 12.5px; }
.menuNav button.on { background: var(--ink); color: var(--white); }
.menuNav button.on small { color: #ffffffa0; }
.menuSec { margin: 22px 6px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.sw { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; font-size: 14.5px; cursor: pointer; }
.sw input { display: none; }
.sw i { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: 0 0 auto; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.sw input:checked + i { background: var(--ink); }
.sw input:checked + i::after { transform: translateX(16px); }

@media (min-width: 900px) {
  .menu { transform: none; }
  .scrim, .burger, .closeMenu { display: none !important; }
  .page { margin-left: var(--menu); }
  .menu { width: var(--menu); }
}

/* ---------------------------------------------------------------- top */
#top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: calc(4px + env(safe-area-inset-top)) 12px 10px; transition: transform .25s ease; }
/* scrolling down slides the header away, scrolling up brings it back */
body.topHid #top { transform: translateY(-100%); }
/* with the header away, a small round menu button stays on a phone */
.icon.menuFab { margin: 0; }
.menuFab { position: fixed; z-index: 20; top: calc(8px + env(safe-area-inset-top)); left: 8px; width: 40px; height: 40px;
  border-radius: 50%; background: #ffffffe6; box-shadow: 0 3px 12px #00000026; color: var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
body.topHid .menuFab { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 900px) { .menuFab { display: none; } }
.bar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar .mark { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.burger { margin-left: -8px; }
.heartTop { margin-right: -8px; }
.heartTop b { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--ink); color: var(--white); font: 600 10px/17px var(--sans); text-align: center; }
.heartTop b:empty { display: none; }
@media (min-width: 900px) { .bar .mark { padding-left: 4px; } }

.search { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 99px; padding: 0 4px 0 8px; margin-top: 6px; height: 46px; }
.search .glass { color: var(--mute); width: 30px; }
.search .glass::before { width: 19px; height: 19px; }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: none; font-size: 15.5px; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search .x { color: var(--mute); width: 36px; height: 36px; }
.search .x::before { width: 18px; height: 18px; }
.search:focus-within { border-color: var(--ink); }
.search input:placeholder-shown ~ .x { visibility: hidden; }

.chips { display: flex; gap: 6px; margin-top: 10px; }
.chips button { flex: 1 1 0; min-width: 0; height: 32px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--white); font-size: 13px; color: #4a4642; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------------------------------------------------------------- results */
main { padding: 4px 12px 0; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-bottom: 6px; }
#said { font-size: 12.5px; color: var(--mute); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.into { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 60%; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); background: var(--white); border-radius: 99px; height: 32px; padding: 0 12px 0 4px; flex: 0 1 auto; }
.into .icon { width: 26px; height: 26px; }
.into .icon::before { width: 17px; height: 17px; }
.into b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.grid { display: flex; align-items: flex-start; gap: 10px; }
.grid .col { flex: 1; min-width: 0; }
.card { break-inside: avoid; margin: 0 0 16px; }
.pic { position: relative; border-radius: 14px; overflow: hidden; background: var(--tile); }
.pic img { display: block; width: 100%; height: auto; min-height: 80px; cursor: zoom-in; }
.card .heart { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; background: #ffffffe6; }
.card .heart::before { width: 18px; height: 18px; }
.plus { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--white); box-shadow: 0 4px 14px #0000002e; transition: transform .15s; }
.plus::before { width: 20px; height: 20px; }
.plus:active { transform: scale(.92); }
.plus.done { background: var(--white); color: var(--green); }
.plus.busy { opacity: .55; }
.cap { padding: 7px 2px 0; }
.cap .t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap .s { font-size: 11.5px; color: var(--mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .s.in { color: var(--green); }

.skel { break-inside: avoid; margin: 0 0 16px; border-radius: 14px; background: linear-gradient(100deg, var(--tile) 40%, #f4f1ec 50%, var(--tile) 60%) 0 0 / 300% 100%;
  animation: sh 1.3s linear infinite; }
@keyframes sh { to { background-position: -150% 0; } }
.more { text-align: center; color: var(--mute); padding: 20px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 12.5px; }

.home h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 18px 2px 4px; letter-spacing: -.01em; }
.home p { color: var(--mute); margin: 0 2px 18px; font-size: 14px; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ideas button { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 12px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ideas button:active { background: var(--tile); }
.empty { text-align: center; color: var(--mute); padding: 60px 20px; }
.empty .mark { display: block; color: var(--ink); margin-bottom: 6px; font-size: 22px; font-weight: 400; }
.empty a { color: var(--ink); }

/* ---------------------------------------------------------------- big preview */
/* a lightbox over the grid: the picture as large as it fits on a dark veil,
   the buttons small around it. Tap the dark, swipe down or Back closes it */
.viewer { position: fixed; inset: 0; z-index: 40; background: #0d0d0deb; display: flex; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.vbox { display: flex; flex-direction: column; width: 100%; max-width: 1100px; height: 100%; pointer-events: none; }
.vbox > * { pointer-events: auto; }
.vtop { display: flex; align-items: center; gap: 2px; padding: 4px 6px; color: #fff; }
.vtop a { flex: 1 1 auto; min-width: 0; text-align: center; color: #ffffff99; font-size: 12px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtop .bin { color: #ff8a9b; }
.vimg { flex: 1 1 auto; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center;
  margin: 0 10px; pointer-events: none; }
.vimg > * { pointer-events: auto; }
.vimg img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: #ffffff26; color: #fff; }
.vnav:hover { background: #ffffff40; }
.vnav::before { width: 20px; height: 20px; }
.vnav.prev { left: 4px; } .vnav.next { right: 4px; }
@media (hover: none) { .vnav { display: none; } }
.vbody { padding: 10px 16px 0; text-align: center; }
.vbody h1 { font: 500 14.5px/1.3 var(--sans); margin: 0; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { display: flex; justify-content: center; gap: 4px 10px; margin-top: 3px; overflow: hidden; }
.specs span { font-size: 12px; color: #ffffff8c; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.specs span.in { color: #7fd1a6; }
.vbuy { display: flex; gap: 8px; padding: 12px 12px 12px; width: 100%; max-width: 520px; margin: 0 auto; }
.vbuy .into { max-width: none; flex: 1 1 auto; height: 46px; border-radius: 99px; padding-right: 6px;
  background: #ffffff1a; border-color: #ffffff26; color: #fff; }
.vbuy .into b { flex: 1 1 auto; text-align: left; }
.vbuy .chev { width: 24px; color: #ffffff80; }
.vbuy .chev::before { width: 16px; height: 16px; }
.buy { flex: 0 0 auto; height: 46px; border-radius: 99px; background: #fff; color: var(--ink); padding: 0 22px; font-weight: 600; }
.buy.done { background: #2f6b4f; color: #fff; }
.buy.busy { opacity: .6; }

/* ---------------------------------------------------------------- folder lists */
.folderList button { display: flex; align-items: center; width: 100%; gap: 4px; text-align: left; border-radius: 10px; padding: 0 10px 0 2px; height: 42px; }
.folderList button .icon { width: 30px; height: 30px; color: var(--soft); }
.folderList button .icon::before { width: 18px; height: 18px; }
.folderList button .twist { width: 20px; margin-right: -4px; }
.folderList button .twist::before { width: 14px; height: 14px; transition: transform .15s; }
.folderList button .twist.open::before { transform: rotate(90deg); }
.folderList button .twist.none { visibility: hidden; }
.folderList button .n { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.folderList button .c { color: var(--mute); font-size: 12px; flex: 0 0 auto; }
.folderList button.on { background: var(--tile); font-weight: 600; }
.folderList button.on .icon { color: var(--ink); }
.newFolder { display: flex; align-items: center; gap: 6px; margin-top: 8px; border: 1px dashed var(--soft); border-radius: 10px; padding: 0 2px 0 12px; height: 44px; }
.newFolder input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; }
.newFolder .add { width: 36px; height: 36px; }
.newFolder .add::before { width: 18px; height: 18px; }

.sheet { position: fixed; inset: 0; z-index: 50; background: #15151540; display: flex; align-items: flex-end; }
.sheetBox { width: 100%; max-width: 520px; margin: 0 auto; max-height: 80vh; display: flex; flex-direction: column;
  background: var(--white); border-radius: 22px 22px 0 0; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); }
.grab { width: 38px; height: 4px; border-radius: 9px; background: var(--line); margin: 2px auto 10px; }
.sheetHead { padding: 0 4px 8px; }
.sheetHead .mark { font-size: 21px; }
.sheetBox .folderList { overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px);
  z-index: 60; pointer-events: none; background: var(--ink); color: var(--white); padding: 11px 18px; border-radius: 99px;
  font-size: 13.5px; opacity: 0; transition: opacity .2s, transform .2s; max-width: 90vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 24px #0003; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #9b2c3c; }

/* ---------------------------------------------------------------- this PC */
.spark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.5l1.7 6.2 5.6-3.2-3.2 5.6 6.2 1.7-6.2 1.7 3.2 5.6-5.6-3.2L12 23.1l-1.7-6.2-5.6 3.2 3.2-5.6-6.2-1.7 6.2-1.7-3.2-5.6 5.6 3.2z'/%3E%3C/svg%3E"); color: #d97757; }
.spark::before { width: 20px; height: 20px; }
.playMark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E");
  position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: #000000a0; color: #fff; pointer-events: none; }
.playMark::before { width: 15px; height: 15px; margin-left: 2px; }
.menuNav button.place { padding: 8px 10px 8px 22px; font-size: 14.5px; color: #4a4642; }
.menuNav button.place.on { background: var(--tile); color: var(--ink); }
.menuNav button.restartItem { padding: 8px 10px; font-size: 14.5px; color: #4a4642; }
.menuNav button.restartItem small { color: var(--green); }
.menuNav button.claudeItem span::before { content: "✻ "; color: #d97757; }

.pathBar { display: flex; align-items: center; gap: 2px; margin-top: 6px; height: 46px; background: var(--white);
  border: 1px solid var(--line); border-radius: 99px; padding: 0 14px 0 2px; min-width: 0; }
.pathBar .back:disabled { color: var(--soft); }
#pathText { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 14px; color: #4a4642; }

.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 640px) { .dirs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .dirs { grid-template-columns: repeat(5, 1fr); } }
.dir { display: flex; align-items: center; gap: 2px; min-width: 0; height: 48px; padding: 0 10px 0 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.dir .icon { color: var(--mute); width: 32px; }
.dir .icon::before { width: 19px; height: 19px; }
.dir .n { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.dir:active { background: var(--tile); }
.dir.allDirs { justify-content: center; font-size: 13.5px; font-weight: 500; background: var(--tile); }

.grid.files { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 640px) { .grid.files { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .grid.files { grid-template-columns: repeat(7, 1fr); } }
.grid.files .card { margin: 0; min-width: 0; }
.grid.files .pic { aspect-ratio: 1; border-radius: 10px; }
.grid.files .pic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.grid.files .pic.broken { background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b3ab' stroke-width='1.5'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M4 16l5-5 4 4 3-3 4 4'/%3E%3C/svg%3E") center / 34px no-repeat; }
.grid.files .pic.broken img { visibility: hidden; }
.grid.files .heart { display: none; }
.grid.files .plus { width: 32px; height: 32px; right: 5px; bottom: 5px; }
.grid.files .plus::before { width: 17px; height: 17px; }
.grid.files .playMark { left: 5px; bottom: 5px; width: 26px; height: 26px; }
.grid.files .cap { padding-top: 4px; }
.grid.files .cap .t { font-size: 11.5px; -webkit-line-clamp: 1; }
.grid.files .cap .s { font-size: 10.5px; }
.vimg video { max-width: 100%; max-height: 100%; background: #000; border-radius: 10px; }

/* the chat's buttons wear this page's look */
.claudechat .ccstop, .claudechat .ccno, .claudechat .ccyes, .claudechat .cccopy, .claudechat .ccclip {
  border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); cursor: pointer; }
.claudechat .ccclip { border-radius: 50%; }
.claudechat .ccmodel { appearance: auto; }

/* ---------------------------------------------------------------- how many across */
#said { flex: 1 1 auto; }
.colsSeg { display: flex; align-items: center; flex: 0 0 auto; height: 32px; border: 1px solid var(--line);
  background: var(--white); border-radius: 99px; overflow: hidden; }
.colsSeg button { height: 100%; min-width: 30px; font-size: 16px; color: var(--ink); }
.colsSeg button:disabled { color: var(--soft); cursor: default; }
.colsSeg .gridIc { width: auto; padding: 0 8px 0 6px; gap: 3px; font-size: 13px; font-weight: 500; }
.gridIc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E"); }
.colsSeg .gridIc::before { width: 16px; height: 16px; }
/* a phone has just the one button that steps round */
@media (max-width: 899px) { #colsLess, #colsMore { display: none; } .colsSeg .gridIc { padding: 0 10px 0 8px; } }
.grid.tight { gap: 4px; }
.grid.tight .card { margin-bottom: 8px; }
.grid.tight .pic { border-radius: 8px; }
.grid.tight .card .heart { width: 26px; height: 26px; top: 3px; right: 3px; }
.grid.tight .card .heart::before { width: 14px; height: 14px; }
.grid.tight .plus { width: 26px; height: 26px; right: 3px; bottom: 3px; }
.grid.tight .plus::before { width: 14px; height: 14px; }
.grid.tight .playMark { width: 22px; height: 22px; left: 3px; bottom: 3px; }
.grid.tight .cap .t { display: none; }
.grid.tight .cap .s { font-size: 10px; }

/* ---------------------------------------------------------------- to the Trash */
.bin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.5 7V4.5h5V7M6.5 7l1 12.5h9l1-12.5M10.5 11v5M13.5 11v5'/%3E%3C/svg%3E"); color: #9b2c3c; }
.bin::before { width: 20px; height: 20px; }
.pathBar { padding-right: 2px; }
.grid.files img, .dir { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------------------------------------------------------------- right-click menu */
.pop { position: fixed; z-index: 70; min-width: 170px; max-width: 80vw; padding: 5px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px #0000002e; display: flex; flex-direction: column; }
.pop button { text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop button:hover, .pop button:active { background: var(--tile); }
.pop button.bad { color: #9b2c3c; }
.pop button:disabled { color: var(--mute); cursor: default; background: none; }

/* ---------------------------------------------------------------- shift-peek */
.peek { position: fixed; z-index: 65; pointer-events: none; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; box-shadow: 0 16px 44px #00000040; max-width: min(736px, 70vw); }
.peek img, .peek video { display: block; max-width: min(720px, 68vw); max-height: 78vh; border-radius: 9px; background: var(--tile); }
.peek .peekname { font-size: 13.5px; margin: 7px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .peekmeta { font-size: 12px; color: var(--mute); margin: 2px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the big preview's close: a plain X, top right */
.vtop .vx { width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; background: #ffffff1f; }
.vtop .vx:hover { background: #ffffff38; }
.vtop .vx::before { width: 20px; height: 20px; }
.vtop a { padding-left: 8px; text-align: left; }
