:root {
  --radius: 22px;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  --accent: #8b7cff;
  --accent-2: #3ee0c5;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06060b;
  --fg: #f3f3f8;
  --muted: rgba(243, 243, 248, .55);
  --faint: rgba(243, 243, 248, .28);
  --glass: rgba(22, 22, 34, .42);
  --glass-strong: rgba(28, 28, 42, .78);
  --border: rgba(255, 255, 255, .10);
  --border-hi: rgba(255, 255, 255, .22);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .25);
  --hover: rgba(255, 255, 255, .07);
  --glare: rgba(255, 255, 255, .16);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef6;
  --fg: #12131a;
  --muted: rgba(18, 19, 26, .58);
  --faint: rgba(18, 19, 26, .3);
  --glass: rgba(255, 255, 255, .5);
  --glass-strong: rgba(255, 255, 255, .86);
  --border: rgba(255, 255, 255, .75);
  --border-hi: rgba(255, 255, 255, 1);
  --shadow: 0 20px 50px -22px rgba(40, 40, 90, .35), 0 2px 6px rgba(40, 40, 90, .08);
  --hover: rgba(20, 20, 60, .06);
  --glare: rgba(255, 255, 255, .7);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s var(--ease), color .4s var(--ease);
}
button, input, textarea, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fond vivant ---------- */
#bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -2; filter: blur(60px) saturate(1.25);
  transform: scale(1.15);
}
[data-theme="light"] #bg { opacity: .85; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--border-hi);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.app {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(18px, 4vw, 44px) clamp(14px, 4vw, 40px) 90px;
}

/* ---------- En-tête ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.greet { font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.clock {
  font-size: clamp(56px, 9vw, 104px); font-weight: 200; line-height: .95; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--fg) 30%, color-mix(in oklab, var(--fg) 45%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clock .sep { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.date { color: var(--muted); font-size: 15px; margin-top: 6px; text-transform: capitalize; }

.actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .35s var(--spring), background .2s;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.06); background: var(--glass-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.on { background: var(--accent); color: #fff; border-color: transparent; }
[data-theme="dark"] #btnTheme .sun { display: none; }
[data-theme="light"] #btnTheme .moon { display: none; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 4px; transition: background .3s, box-shadow .3s; }
.sync-dot.ok { background: #34d399; box-shadow: 0 0 10px #34d399; }
.sync-dot.busy { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; animation: pulse 1s infinite; }
.sync-dot.err { background: #f87171; box-shadow: 0 0 10px #f87171; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Recherche / palette ---------- */
.search-wrap { margin: clamp(26px, 5vw, 48px) auto 0; max-width: 720px; position: relative; z-index: 20; }
.search {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 18px; border-radius: 20px;
  transition: transform .4s var(--spring), box-shadow .4s var(--ease), border-color .3s;
}
.search:focus-within {
  transform: scale(1.02);
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: var(--shadow), 0 0 0 6px color-mix(in oklab, var(--accent) 18%, transparent), inset 0 1px 0 var(--border-hi);
}
.search-ico { color: var(--muted); flex: none; }
#q { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; }
#q::placeholder { color: var(--faint); }
.kbd {
  font-family: var(--font); font-size: 12px; color: var(--muted);
  padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--hover);
}
.prefix-badge {
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); animation: pop .35s var(--spring);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.hint { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.hint b { color: var(--muted); font-weight: 600; }

.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  border-radius: 18px; padding: 8px; max-height: 60vh; overflow: auto;
  background: var(--glass-strong); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
  transition: opacity .2s var(--ease), transform .3s var(--spring);
}
.results.open { opacity: 1; transform: none; pointer-events: auto; }
.res {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  animation: slideIn .3s var(--ease) both; animation-delay: calc(var(--i) * 25ms);
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } }
.res.active { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.res .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .t mark { background: none; color: var(--accent); font-weight: 700; }
.res .s { font-size: 12px; color: var(--muted); }
.res .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Dock fréquents ---------- */
.dock-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.dock-cap { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.dock {
  display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; border-radius: 24px;
  min-height: 74px; max-width: min(100%, calc(100vw - 28px)); overflow-x: auto; scrollbar-width: none;
}
.dock:empty { display: none; }
.dock a {
  --s: 1; position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 15px; text-decoration: none;
  transform: translateY(calc((var(--s) - 1) * -14px)) scale(var(--s));
  transform-origin: bottom center; transition: transform .18s var(--ease);
}
.dock a .fav { width: 46px; height: 46px; border-radius: 14px; }
.dock a::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px); white-space: nowrap; font-size: 12px;
  padding: 4px 9px; border-radius: 8px; background: var(--glass-strong); border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: .2s var(--ease);
}
.dock a:hover::after { opacity: 1; transform: translateX(-50%); }
.dock .dock-label {
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); align-self: center; margin-right: 4px;
}

/* ---------- Favicon ---------- */
.fav {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; overflow: hidden; position: relative;
  background: var(--c, #555);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px -4px var(--c, #000);
}
.fav img { width: 62%; height: 62%; object-fit: contain; position: absolute; inset: 0; margin: auto; }
.fav.has-img { background: #fff; }
.fav.has-img b { display: none; }
.res .fav svg { width: 16px; height: 16px; }
[data-theme="dark"] .fav.has-img { background: rgba(255,255,255,.92); }

/* ---------- Bento ---------- */
.bento {
  margin-top: 34px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-flow: dense;
}
.tile {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --lift: 0px;
  position: relative; border-radius: var(--radius); padding: 18px; min-height: 150px;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms);
}
@keyframes rise { from { opacity: 0; transform: perspective(1000px) translateY(40px) scale(.96); filter: blur(8px); } }
.tile.tilting { transition: transform .12s linear, box-shadow .4s var(--ease); --lift: -4px; }
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx) var(--gy), var(--glare), transparent 40%);
  opacity: 0; transition: opacity .4s;
  mix-blend-mode: soft-light;
}
.tile.tilting::before { opacity: 1; }
.tile::after { /* liseré lumineux qui suit la souris */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(300px circle at var(--gx) var(--gy), color-mix(in oklab, var(--accent) 80%, white), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.tile.tilting::after { opacity: .8; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
@media (max-width: 620px) { .tile.wide { grid-column: span 1; } }

.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; transform: translateZ(20px); }
.tile-head .emoji { font-size: 20px; }
.tile-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); flex: 1; }
.tile-head .count { font-size: 12px; color: var(--faint); }
.tile-tools { display: none; gap: 4px; }
.editing .tile-tools { display: flex; }
.mini {
  width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--border); background: var(--hover);
  display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring);
}
.mini svg { width: 15px; height: 15px; }
.mini:hover { transform: scale(1.12); }
.mini.danger:hover { background: #ef4444; color: #fff; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 4px; transform: translateZ(10px); }
.link {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 13px;
  text-decoration: none; color: inherit; min-width: 0;
  transition: background .2s, transform .35s var(--spring);
}
.link:hover { background: var(--hover); transform: translateX(3px); }
.link:hover .fav { transform: scale(1.12) rotate(-4deg); }
.link .fav { transition: transform .4s var(--spring); }
.link .lt { flex: 1; min-width: 0; }
.link .ln { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .lu { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .del { display: none; }
.editing .link { cursor: grab; outline: 1px dashed var(--border); outline-offset: -1px; }
.editing .link .del { display: grid; }
.editing .link:hover { transform: none; }
.link.dragging { opacity: .35; }
.drop-ph { height: 48px; border-radius: 13px; border: 2px dashed color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.tile.drop-target { border-color: var(--accent); }
.add-link {
  display: none; margin-top: 6px; width: 100%; padding: 9px; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--border-hi); background: transparent; color: var(--muted);
}
.editing .add-link { display: block; }
.add-link:hover { color: var(--fg); background: var(--hover); }
.bento.ready .tile { animation: none; }
.editing .bento .tile { animation: wiggle .5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -90ms); }
@keyframes wiggle { from { rotate: -.25deg; } to { rotate: .25deg; } }
.editing .bento .tile:hover { animation-play-state: paused; }
.links:empty { min-height: 44px; border-radius: 13px; border: 1px dashed var(--border); }
.tile.dragging { opacity: .4; }

/* ---------- Widgets ---------- */
.w-weather .big { display: flex; align-items: center; gap: 14px; }
.w-weather .temp { font-size: 54px; font-weight: 200; letter-spacing: -.04em; line-height: 1; }
.w-weather .wico { font-size: 46px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.w-weather .desc { color: var(--muted); font-size: 14px; }
.w-weather .days { display: flex; justify-content: space-between; margin-top: 16px; gap: 6px; }
.w-weather .day { text-align: center; font-size: 12px; color: var(--muted); flex: 1; padding: 6px 0; border-radius: 10px; background: var(--hover); }
.w-weather .day b { display: block; color: var(--fg); font-size: 13px; margin-top: 2px; }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.w-todo ul { list-style: none; margin: 0; padding: 0; }
.w-todo li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; animation: slideIn .3s var(--ease) both; }
.w-todo li:hover { background: var(--hover); }
.w-todo li .x { margin-left: auto; opacity: 0; border: 0; background: none; cursor: pointer; color: var(--muted); }
.w-todo li:hover .x { opacity: 1; }
.w-todo li.done span { text-decoration: line-through; color: var(--faint); }
.check {
  appearance: none; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--faint); cursor: pointer; flex: none;
  display: grid; place-items: center; transition: .3s var(--spring);
}
.check:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; transform: scale(1.1); }
.check:checked::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.w-input {
  width: 100%; border: 1px solid var(--border); background: var(--hover); border-radius: 12px; padding: 9px 12px; outline: 0;
  transition: border-color .2s;
}
.w-input:focus { border-color: var(--accent); }
.w-notes textarea { width: 100%; min-height: 150px; resize: vertical; border: 0; outline: 0; background: transparent; line-height: 1.55; font-size: 14.5px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 40px -10px var(--accent); animation: pop .45s var(--spring);
}
.fab:hover { transform: translateX(-50%) scale(1.05); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(480px, 100%); border-radius: 26px; padding: 26px;
  background: var(--glass-strong); animation: modalIn .5s var(--spring);
  max-height: 90vh; overflow: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.modal h2 { margin: 0 0 18px; font-size: 20px; font-weight: 600; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field small { display: block; color: var(--faint); margin-top: 6px; font-size: 12px; }
.row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.btn {
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--hover); cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; font-weight: 600; }
.btn.danger { color: #ef4444; }
.seg { display: flex; padding: 4px; border-radius: 13px; background: var(--hover); border: 1px solid var(--border); }
.seg button { flex: 1; padding: 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; transition: .3s var(--ease); }
.seg button.on { background: var(--glass-strong); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-weight: 600; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.emoji-pick button { font-size: 18px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--hover); cursor: pointer; transition: transform .2s var(--spring); }
.emoji-pick button:hover { transform: scale(1.2); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  padding: 12px 18px; border-radius: 14px; font-size: 14px;
  background: var(--glass-strong); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: toastIn .5s var(--spring);
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ---------- Intro ---------- */
#intro { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
#intro.on { pointer-events: auto; }

/* ---------- Transition de thème (cercle) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 620px) {
  .hint, .kbd { display: none; }
  .search { height: 56px; }
}

/* ---------- Dossiers (groupe › dossier › marque-pages) ---------- */
.folder { border-radius: 14px; transition: background .3s var(--ease); min-width: 0; }
.folder.open { grid-column: 1 / -1; background: var(--hover); }
.folder-head {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 13px;
  cursor: pointer; user-select: none; outline: none; transition: background .2s;
}
.folder-head:hover, .folder-head:focus-visible { background: var(--hover); }
.folder-head:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.fold-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none; padding: 4px; gap: 2px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  background: color-mix(in oklab, var(--accent) 25%, var(--glass-strong));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--border-hi), 0 4px 12px -4px var(--accent);
  transition: transform .45s var(--spring);
}
.fold-ico b { grid-area: 1 / 1 / 3 / 3; display: grid; place-items: center; font-size: 15px; }
.fold-ico i { position: relative; border-radius: 3px; background: var(--c); overflow: hidden; }
.fold-ico i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.folder-head:hover .fold-ico { transform: scale(1.12) rotate(-5deg); }
.folder.open .fold-ico { transform: scale(1.06); }
.folder-head .lt { flex: 1; min-width: 0; }
.folder-head .ln { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-head .lu { font-size: 11.5px; color: var(--faint); }
.chev { width: 16px; height: 16px; flex: none; color: var(--faint); transition: transform .5s var(--spring), color .3s; }
.folder.open .chev { transform: rotate(90deg); color: var(--fg); }
.fold-edit { display: none; }
.editing .fold-edit { display: grid; }
.editing .folder-head { cursor: grab; outline: 1px dashed var(--border); outline-offset: -1px; }

/* dépliage fluide : 0fr -> 1fr */
.folder-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.folder.open .folder-body { grid-template-rows: 1fr; }
.folder-body > .links {
  min-height: 0; overflow: hidden; margin-left: 25px; padding-left: 12px;
  border-left: 1.5px solid color-mix(in oklab, var(--accent) 45%, transparent);
  transition: padding .4s var(--ease);
}
.folder.open .folder-body > .links { padding-top: 2px; padding-bottom: 8px; }
.folder-body > .links:empty { min-height: 0; border-top: 0; border-right: 0; border-bottom: 0; }
.folder.open .folder-body > .links:empty { min-height: 40px; }
.folder.open .links.sub > .link { animation: slideIn .4s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms + 80ms); }
.bento.ready .folder.open .links.sub > .link { animation-name: slideIn; }

.folder.dragging { opacity: .35; }
.folder.drop-into > .folder-head {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  box-shadow: 0 0 0 2px var(--accent); transform: scale(1.02);
}
.folder.drop-into .fold-ico { transform: scale(1.2) rotate(-8deg); }
.folder.flash > .folder-head { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 40% { background: color-mix(in oklab, var(--accent) 35%, transparent); } }

.add-row { display: none; gap: 6px; margin-top: 6px; }
.editing .add-row { display: flex; }
.add-row .add-link { flex: 1; margin-top: 0; }
