@font-face {
  font-family: Geist;
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #edecea;
  --surface: #ffffff;
  --ink: #17181a;
  --ink-2: #55585e;
  --hairline: rgba(23, 24, 26, 0.07);
  --radius-widget: 26px;
  --radius-control: 999px;
  --shadow-widget: 0 1px 2px rgba(23, 24, 26, 0.04), 0 12px 32px -18px rgba(23, 24, 26, 0.16);
  --shadow-lift: 0 2px 4px rgba(23, 24, 26, 0.05), 0 22px 40px -22px rgba(23, 24, 26, 0.3);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: Geist, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: light;
}
[data-accent='graphite'] {
  --accent: #3a3b3e;
  --accent-ink: #1f2022;
  --accent-soft: #e8e8e9;
}
[data-accent='sage'] {
  --accent: #2f5d4f;
  --accent-ink: #244a3f;
  --accent-soft: #dfeae5;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  font: 400 15px/1.45 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 0;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; }
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-more { fill: currentColor; stroke: none; }

/* ---- shell ---- */

.app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  /* an open folder's fan may reach past the window edge; clip keeps sticky chrome working */
  overflow-x: clip;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 16px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.brand-toggle { margin-left: auto; color: var(--ink-2); }
.nav { display: grid; gap: 6px; }
.nav-group {
  padding: 10px 10px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav ul { display: grid; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-widget);
}
.nav a[aria-current='page'] .icon { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .nav a:not([aria-current]):hover { background: rgba(23, 24, 26, 0.05); color: var(--ink); }
}
.count {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: var(--radius-control);
  background: rgba(23, 24, 26, 0.06);
  font: 500 12px/1.5 var(--mono);
  text-align: center;
  color: var(--ink-2);
}
.plan {
  margin-top: auto;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-widget);
}
.plan h2 { margin-top: 12px; font-size: 14px; font-weight: 600; }
.plan p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.plan-marks { display: flex; }
.plan-marks span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  font: 600 12px var(--font);
  color: #fff;
}
.plan-marks span:nth-child(1) { background: #b4532f; }
.plan-marks span:nth-child(2) { background: #17181a; }
.plan-marks span:nth-child(3) { background: #4f7f66; }

.main { min-width: 0; padding: 14px 28px 48px 20px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -14px -28px 0 -20px;
  padding: 14px 28px 12px 20px;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.crumbs {
  display: flex;
  gap: 8px;
  height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-widget);
  font-size: 13px;
  color: var(--ink-2);
}
.crumbs span:last-child { color: var(--ink); font-weight: 500; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: min(340px, 30vw);
  margin-left: auto;
  padding: 0 14px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-widget);
  color: var(--ink-2);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--ink-2); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.accent-switch, .segmented {
  display: flex;
  padding: 3px;
  border-radius: var(--radius-control);
  background: rgba(23, 24, 26, 0.06);
}
.accent-switch button, .segmented button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.accent-switch [aria-pressed='true'], .segmented [aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 24, 26, 0.12);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.graphite { background: #3a3b3e; }
.dot.sage { background: #2f5d4f; }
.ask {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 16px 0 9px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-widget);
  font-size: 14px;
  font-weight: 500;
  transition: transform 140ms var(--ease-out);
}
.mini-orb { display: block; border-radius: 50%; }
.ask:active, .primary:active, .pill:active, .round:active { transform: scale(0.97); }

/* ---- page ---- */

.page {
  display: grid;
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 18px;
}
.heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
h1 { font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.summary { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.primary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out);
}

.widget {
  border-radius: var(--radius-widget);
  background: var(--surface);
  box-shadow: var(--shadow-widget);
}
.widget h2 { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.3fr);
  gap: 16px;
}
.figure { display: flex; flex-direction: column; padding: 18px 20px 18px; min-height: 148px; }
.figure .value {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figure .note { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-2); }

.kairos {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 18px;
  padding: 16px 18px 16px 20px;
}
.kairos-orb { grid-row: span 2; }
.kairos h2 { color: var(--ink); font-size: 16px; font-weight: 600; }
.kairos-status { margin-top: 2px; font-size: 13px; color: var(--ink-2); min-height: 19px; }
.kairos-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 5px 5px 16px;
  border-radius: var(--radius-control);
  background: rgba(23, 24, 26, 0.045);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.kairos-form:focus-within { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent), 0 6px 18px -10px var(--accent); }
.kairos-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.kairos-form input::placeholder { color: var(--ink-2); }
.round {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.round .icon { width: 17px; height: 17px; }
.round.send { background: var(--ink); color: #fff; }
.round[aria-pressed='true'] { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .round:not(.send):not([aria-pressed='true']):hover { background: rgba(23, 24, 26, 0.07); color: var(--ink); }
}
.kairos-reply {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 14px 10px 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 50px -22px rgba(23, 24, 26, 0.35);
  font-size: 14px;
  line-height: 1.5;
  transform-origin: 50% -10px;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.kairos-reply[hidden] { display: none; }
.kairos-reply p { flex: 1; padding-top: 5px; }
@starting-style {
  .kairos-reply { opacity: 0; transform: translateY(-4px) scale(0.98); }
}

/* ---- projects: glass folders ---- */

.projects { background: none; box-shadow: none; padding: 6px 4px 8px; }
.projects h2 { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease;
}
.tabs [aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-widget); }
.tab-count { font: 500 12px var(--mono); color: var(--ink-2); }
.tabs [aria-pressed='true'] .tab-count { color: var(--accent-ink); }

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 30px 26px;
  margin-top: 22px;
}

/* One folder: a pale plate, clips standing in it, and a glass front with a tab.
   Every length is a share of the folder's width so the glass keeps its shape at any size. */
.folder {
  --lift: 0;
  position: relative;
  aspect-ratio: 1 / 0.82;
  container-type: inline-size;
  isolation: isolate;
  transition: transform 260ms var(--ease-out);
}
.folder-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  border-radius: 9cqw;
  background: none;
}
.folder-hit:focus-visible { outline-offset: 4px; }
.folder-plate {
  position: absolute;
  inset: 33% 0 0;
  border-radius: 9cqw;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(23, 24, 26, 0.04),
    0 14px 30px -18px rgba(23, 24, 26, 0.22);
  transition: box-shadow 260ms var(--ease-out);
}
.folder-clips { position: absolute; inset: 0; z-index: 1; }
.clip {
  position: absolute;
  left: 13%;
  top: 4%;
  width: 74%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6cqw;
  border: 0.6cqw solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px -6px rgba(23, 24, 26, 0.35);
  transition: transform 340ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.clip[data-slot='0'] { transform: translate(-7%, 4%) rotate(-5deg); }
.clip[data-slot='1'] { transform: translate(6%, 2%) rotate(4deg); }
.clip[data-slot='cover'] { transform: translate(0, 3%) rotate(-1deg); }

.folder-front {
  position: absolute;
  inset: 27% 5% 5%;
  z-index: 2;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 124' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q0 0 14 0L78 0C90 0 92 2 98 8L104 14C108 18 112 19 120 19L186 19Q200 19 200 33L200 110Q200 124 186 124L14 124Q0 124 0 110Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 124' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q0 0 14 0L78 0C90 0 92 2 98 8L104 14C108 18 112 19 120 19L186 19Q200 19 200 33L200 110Q200 124 186 124L14 124Q0 124 0 110Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  backdrop-filter: blur(14px) saturate(1.7) brightness(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.7) brightness(1.04);
  background: var(--front, rgba(255, 255, 255, 0.36));
  transition: background-color 260ms ease;
}
/* Light from the cover clip falls through the glass and fades towards the label. */
.folder-front::before {
  content: '';
  position: absolute;
  inset: -10% -6% 0;
  background: var(--cover) center 20% / cover;
  filter: blur(18px) saturate(1.5);
  opacity: var(--glow, 0.62);
  mask: linear-gradient(to bottom, #000 25%, transparent 88%);
  -webkit-mask: linear-gradient(to bottom, #000 25%, transparent 88%);
  transition: opacity 260ms ease;
}
.folder-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.folder-track { display: none; }

.folder-meta {
  position: absolute;
  left: 11%;
  right: 30%;
  bottom: 11%;
  z-index: 3;
  pointer-events: none;
}
.folder-name {
  font-size: max(15px, 6.6cqw);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-count {
  margin-top: 0.6cqw;
  font: 500 max(11.5px, 4.6cqw) / 1.3 var(--mono);
  color: var(--meta-ink, var(--ink-2));
  white-space: nowrap;
}
.folder-action, .folder-close, .folder-plus {
  position: absolute;
  right: 10%;
  bottom: 11%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: max(32px, 13cqw);
  height: max(32px, 13cqw);
  border: 0;
  border-radius: 50%;
  background: var(--button, var(--ink));
  color: var(--button-ink, #fff);
  box-shadow: 0 4px 10px -4px rgba(23, 24, 26, 0.4);
  transition: transform 160ms var(--ease-out), opacity 180ms ease;
}
.folder-action:active, .folder-close:active { transform: scale(0.94); }
.folder-close { opacity: 0; pointer-events: none; transform: scale(0.9); }
.folder-plus { pointer-events: none; }
.folder-new { --front: rgba(255, 255, 255, 0.62); --glow: 0; }
.folder-new .folder-plate { background: rgba(255, 255, 255, 0.4); }

/* styles */
.folder[data-style='tint'] {
  --front: color-mix(in oklab, var(--tint) 58%, rgba(255, 255, 255, 0.2));
  --glow: 0.35;
  --button: rgba(255, 255, 255, 0.55);
  --button-ink: var(--ink);
  --meta-ink: color-mix(in oklab, var(--ink) 78%, var(--tint));
}
.folder[data-style='smoke'], .folder[data-style='film'] {
  --front: rgba(26, 27, 30, 0.8);
  --glow: 0.22;
  --meta-ink: rgba(255, 255, 255, 0.72);
  --button: #fff;
  --button-ink: var(--ink);
  color: #fff;
}
.folder[data-style='smoke'] .folder-edge, .folder[data-style='film'] .folder-edge { stroke: rgba(255, 255, 255, 0.22); }
.folder[data-style='film'] .folder-track {
  display: block;
  position: absolute;
  left: 4%;
  right: 4%;
  top: 22%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.34) 62%, transparent 70%) 0 50% / 7.2% 100% repeat-x;
}
.folder[data-style='timeline'] .folder-track {
  display: flex;
  gap: 1.6%;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 24%;
  height: 8%;
}
.folder[data-style='timeline'] .folder-track span {
  border-radius: 2cqw;
  background: color-mix(in oklab, var(--tint) 70%, white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.folder[data-style='timeline'] .folder-track::after {
  content: '';
  position: absolute;
  left: 38%;
  top: -40%;
  bottom: -40%;
  width: 0.8cqw;
  border-radius: 1cqw;
  background: var(--ink);
}

/* hover: the folder lifts and the clips rise out of it */
@media (hover: hover) and (pointer: fine) {
  .folder:not(.is-open):hover { transform: translateY(-3px); }
  .folder:not(.is-open):hover .folder-plate { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-lift); }
  .folder:not(.is-open):hover .clip[data-slot='0'] { transform: translate(-9%, -6%) rotate(-8deg); }
  .folder:not(.is-open):hover .clip[data-slot='1'] { transform: translate(8%, -8%) rotate(6deg); }
  .folder:not(.is-open):hover .clip[data-slot='cover'] { transform: translate(0, -11%) rotate(2deg); }
}

/* open: the clips fan out above the folder, the glass empties to white */
.folder.is-open { z-index: 10; }
.folder.is-open .folder-clips { z-index: 6; }
.folder.is-open .clip { box-shadow: 0 18px 34px -16px rgba(23, 24, 26, 0.45); }
.folder.is-open .clip[data-slot='cover'] { transform: translate(0, -44%) rotate(-2deg) scale(1.06); }
.folder.is-open .clip[data-slot='1'] { --delay: 35ms; transform: translate(24%, -28%) rotate(9deg) scale(0.96); }
.folder.is-open .clip[data-slot='0'] { --delay: 60ms; transform: translate(-24%, -26%) rotate(-10deg) scale(0.96); }
.folder.is-open:not([data-style='smoke']):not([data-style='film']) {
  --front: rgba(255, 255, 255, 0.92);
  --glow: 0;
  --button: var(--ink);
  --button-ink: #fff;
  --meta-ink: var(--ink-2);
}
.folder.is-open .folder-track { opacity: 0.4; }
.folder.is-open .folder-action { opacity: 0; pointer-events: none; }
.folder.is-open .folder-close { opacity: 1; pointer-events: auto; transform: none; }
.folder.is-open .folder-hit { z-index: 7; }

/* ---- the look picker ---- */

.look {
  position: absolute;
  z-index: 40;
  width: 320px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -20px rgba(23, 24, 26, 0.35), 0 0 0 1px var(--hairline);
  transform-origin: var(--origin-x, 90%) -8px;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), display 180ms allow-discrete;
  transition-behavior: allow-discrete;
}
.look[hidden] { display: none; opacity: 0; transform: scale(0.96); }
@starting-style {
  .look:not([hidden]) { opacity: 0; transform: scale(0.96); }
}
.look h3 { font-size: 15px; font-weight: 600; }
.look fieldset { margin: 14px 0 0; padding: 0; border: 0; }
.look legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.look-styles, .look-covers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.look-covers { grid-template-columns: repeat(3, 1fr); }
.look-tints { display: flex; gap: 8px; }
.option { position: relative; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-face {
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 14px;
  transition: box-shadow 160ms ease, transform 140ms var(--ease-out);
}
.option:active .option-face { transform: scale(0.96); }
.option input:checked + .option-face { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.option input:focus-visible + .option-face { outline: 2px solid var(--accent); outline-offset: 5px; }
.option-label { font-size: 11.5px; color: var(--ink-2); }
.look-tints .option-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.look-tints .option-face { width: 30px; height: 30px; border-radius: 50%; }
.swatch-tint { width: 30px; height: 30px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.look-covers img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.swatch-folder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  border-radius: 12px;
  background: linear-gradient(135deg, #e2e1de, #f6f5f3);
  overflow: hidden;
}
.swatch-folder::after {
  content: '';
  position: absolute;
  inset: 34% 10% 10%;
  border-radius: 6px 9px 6px 6px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.swatch-folder::before {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  top: 14%;
  height: 40%;
  border-radius: 5px;
  background: var(--tint);
  opacity: 0.85;
}
.swatch-folder[data-style='tint']::after { background: color-mix(in oklab, var(--tint) 62%, white); }
.swatch-folder[data-style='smoke']::after { background: rgba(26, 27, 30, 0.86); box-shadow: none; }
.swatch-folder[data-style='film']::after {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5) 60%, transparent 70%) 0 18% / 16% 18% repeat-x, rgba(26, 27, 30, 0.86);
  box-shadow: none;
}
.swatch-folder[data-style='timeline']::after {
  background: linear-gradient(90deg, var(--tint) 0 30%, transparent 30% 34%, var(--tint) 34% 70%, transparent 70% 74%, var(--tint) 74%) 50% 22% / 80% 16% no-repeat, rgba(255, 255, 255, 0.7);
}

/* ---- lower row ---- */

.lower { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.up-next, .needs-you { padding: 18px 20px 10px; }
.up-next h2, .needs-you h2 { color: var(--ink); font-size: 16px; font-weight: 600; }
.rows { margin-top: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.row:first-child { border-top: 0; }
.row-thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 11px; flex: none; }
.row-text { flex: 1; min-width: 0; }
.row-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-detail { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-when { font: 500 13px var(--mono); color: var(--ink-2); white-space: nowrap; }
.row:first-child .row-when { color: var(--accent-ink); }
.pill {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: transform 140ms var(--ease-out);
}
.empty { padding: 18px 0 14px; color: var(--ink-2); font-size: 14px; }

/* ---- smaller windows ---- */

@media (max-width: 1320px) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kairos { grid-column: 1 / -1; }
  .lower { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 14px 16px 40px; }
  .topbar { margin: -14px -16px 0; padding: 12px 16px; flex-wrap: wrap; }
  .search { order: 5; width: 100%; margin-left: 0; }
  .crumbs { display: none; }
  .accent-switch { margin-left: auto; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { grid-column: 1 / -1; }
  .widget-head { flex-wrap: wrap; }
  .folders { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .folder, .clip, .look, .folder-close { transition: opacity 160ms ease !important; }
  .folder:hover, .folder.is-open { transform: none !important; }
  .folder .clip { transform: none !important; }
  .folder.is-open .clip { opacity: 0.25; }
  .folder.is-open .clip[data-slot='cover'] { opacity: 1; transform: translateY(-58%) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .folder-front { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .folder[data-style='frost'], .folder[data-style='timeline'] { --front: rgba(250, 250, 249, 0.96); }
  .look, .topbar { backdrop-filter: none; background: var(--surface); }
}
