/* Cleartop launch kit. The app's own surfaces, for every launch page to share.
   Colours and sizes come from Sources/Theme.swift and NotchViews.swift. */
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../assets/fonts/InstrumentSerif-Italic.ttf"); font-display: swap; }

:root {
  --td-accent: #007AFF;
  --td-accent-press: color-mix(in srgb, var(--td-accent) 84%, black);
  --td-trash: #E5342B;
  --td-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --td-metal: linear-gradient(#E6E7EA, #D3D4D8 55%, #C2C3C8);
  --td-grain: repeating-linear-gradient(180deg, rgba(255,255,255,.12) 0 1px, rgba(0,0,0,.018) 1px 2px);
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.47 var(--td-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--td-accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }

/* Scroll machinery */
.pin { position: relative; }
.pin > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-r] { opacity: .14; transform: translateY(44px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
[data-r].in { opacity: 1; transform: none; }
.word { transition: opacity .18s linear; }

/* Files on a Desktop */
.f { position: absolute; left: 0; top: 0; width: var(--f-w, 84px); display: flex; flex-direction: column; align-items: center; gap: 3px; will-change: transform, opacity; pointer-events: none; }
/* The renders carry their own shadow and some room for it, so they're drawn a little larger than the icon. */
.f img { width: calc(var(--f-i, 48px) * 1.36); height: calc(var(--f-i, 48px) * 1.36); margin: calc(var(--f-i, 48px) * -.2) 0 calc(var(--f-i, 48px) * -.14); flex: none; user-select: none; -webkit-user-drag: none; }
.f span { max-width: 100%; font-size: var(--f-t, 10.5px); line-height: 1.2; font-weight: 500; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.f.c span { display: none; }
.stack-n { position: absolute; left: 0; top: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: rgba(0,0,0,.8); color: #fff; font: 600 12px/22px var(--td-font); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0,0,0,.4); will-change: transform, opacity; opacity: 0; pointer-events: none; }
.confetti { position: absolute; width: 7px; height: 11px; border-radius: 1.5px; pointer-events: none; z-index: 9; }

/* The notch */
.ear-bar { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 7; width: 262px; max-width: 80vw; height: 34px; background: #000; border-radius: 0 0 12px 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font: 400 14px/1 var(--td-font); }
/* The closed notch's ears, as in the app: its icon on the left, the count of files and their symbol on the right. */
.ear-bar img { width: 18px; height: 18px; }
.ear-bar .ec { display: inline-flex; align-items: center; gap: 5px; }
.ear-bar .count { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }

/* The panel, as Sources/NotchViews.swift draws it: the notch's black grows into a band along the top and a
   thin bezel, with a white screen set into it. Small inside curves, the shoulders, join it to the top edge. */
.panel { --band: 33px; --bezel: 5px; --radius: 26px; --shoulder: 10px; position: relative; width: 600px; max-width: 100%; color: #1D1D1F; font: 400 13px/1.3 var(--td-font); text-align: left; background: #000; border-radius: 0 0 var(--radius) var(--radius); padding: var(--band) var(--bezel) var(--bezel); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 48px rgba(0,0,0,.42); }
.panel.round { border-radius: var(--radius); }
.panel::before, .panel::after { content: ""; position: absolute; top: 0; width: var(--shoulder); height: var(--shoulder); left: calc(-1 * var(--shoulder)); background: radial-gradient(circle at 0 100%, transparent calc(var(--shoulder) - .5px), #000 var(--shoulder)); pointer-events: none; }
.panel::after { left: auto; right: calc(-1 * var(--shoulder)); background: radial-gradient(circle at 100% 100%, transparent calc(var(--shoulder) - .5px), #000 var(--shoulder)); }
.panel.round::before, .panel.round::after { display: none; }
.scr { position: relative; overflow: hidden; background: linear-gradient(#fff, #F5F5F7); border-radius: 14px 14px calc(var(--radius) - var(--bezel)) calc(var(--radius) - var(--bezel)); }
.band { position: absolute; inset: 0 0 auto; height: var(--band); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; font-weight: 600; z-index: 2; }
.band b { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.band b img { width: 18px; height: 18px; }
.band .x, .band button { all: unset; cursor: pointer; display: flex; font-size: 19px; color: #fff; }
.band button:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; border-radius: 50%; }
/* The open screen and the review lead with a sentence: the facts in black, the rest grey. */
.say { font-size: 22px !important; line-height: 1.24 !important; font-weight: 600 !important; letter-spacing: -.012em; text-wrap: pretty; }
.say .soft { color: #8A8A8F; }
.say .n { font-variant-numeric: tabular-nums; display: inline-block; }
.say svg.i { font-size: .82em; vertical-align: -.08em; }
.fly-count { position: absolute; z-index: 8; font: 600 22px/1.24 var(--td-font); font-variant-numeric: tabular-nums; transform-origin: 0 0; pointer-events: none; }
/* Text and rows arrive out of a soft blur, a little after one another (BlurIn in Theme.swift). */
.bi { animation: td-blur-in .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--bd, .1s) + var(--o, 0) * 38ms); }
@keyframes td-blur-in { from { opacity: 0; filter: blur(7px); transform: translateY(5px); } }
/* The metal title bar of the earlier design, still used by the Machined concept's exploded view. */
.bar { position: absolute; inset: 0 0 auto; height: 36px; background: var(--td-grain), var(--td-metal); box-shadow: inset 0 -.5px 0 rgba(0,0,0,.2), 0 .5px 0 #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 6px; font-weight: 600; z-index: 2; }
.bar b { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.bar button { all: unset; cursor: pointer; display: flex; font-size: 18px; color: #77777c; }
.bar .x { display: flex; font-size: 18px; color: #77777c; }
.bar .cam { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 150px; height: 30px; background: #000; border-radius: 0 0 10px 10px; }
.pad { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.pad > :last-child:not(.tray) { margin-bottom: 18px; }
.pad h4 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.pad p { margin: 3px 0 0; color: #6E6E73; }
.box { background: rgba(0,0,0,.035); border-radius: 10px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.09); padding: 6px 10px; }
.row { display: flex; align-items: center; gap: 9px; padding: 6px 0; min-width: 0; }
.row + .row { box-shadow: 0 -.5px 0 rgba(0,0,0,.1); }
.row .t { flex: 1; min-width: 0; }
.row .t b, .row .t em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; }
.row .t b { font-weight: 600; }
.row .t em { font-size: 11px; color: #6E6E73; }
.row > img { width: 34px; height: 34px; margin: -4px -2px; flex: none; }
.row > .i { color: #77777c; font-size: 16px; width: 20px; }
.tray { margin: 2px -18px 0; padding: 11px 18px; display: flex; align-items: center; gap: 8px; background: var(--td-grain), var(--td-metal); box-shadow: inset 0 .5px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9); }
.tray .sum { flex: 1; min-width: 0; font-size: 12px; color: #55555a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tray .sp { flex: 1; }
.pb { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 14px; border-radius: 99px; font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.75); color: #1D1D1F; box-shadow: 0 .5px 1px rgba(0,0,0,.25), inset 0 0 0 .5px rgba(0,0,0,.1); }
.pb:hover { background: #fff; text-decoration: none; }
.pb.go { background: var(--td-accent); color: #fff; box-shadow: 0 .5px 1px rgba(0,0,0,.3); }
.pb.go:hover { background: var(--td-accent-press); }
.pb.mini { height: 22px; padding: 0 9px; font-size: 11px; }
.pb:focus-visible, .bar button:focus-visible { outline: 3px solid color-mix(in srgb, var(--td-accent) 60%, transparent); outline-offset: 1px; }
.pb.pulse { animation: td-pulse 2s ease-out infinite; }
@keyframes td-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--td-accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 11px transparent; } }
.list { max-height: 322px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.sec { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; color: #6E6E73; padding: 0 3px 3px; font-variant-numeric: tabular-nums; }
/* The review's menu, closed: the outcome and its symbol on a soft grey button, with the menu indicator. Over it
   sits the real menu, invisible, so a click opens the system list with the folder named. */
.pick { position: relative; flex: none; width: 150px; height: 24px; box-sizing: border-box; font: 500 12px var(--td-font); color: #1D1D1F; padding: 0 22px 0 9px; border-radius: 6px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; background: rgba(0,0,0,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.2L5 4.6l3.5-3.4'/%3E%3C/svg%3E") right 8px center / 9px no-repeat; }
.pick .i, .pick .pl .i { font-size: 13px; flex: none; }
.pick .pl { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; }
.pick:focus-within { outline: 3px solid color-mix(in srgb, var(--td-accent) 60%, transparent); outline-offset: 1px; }
.row > .chev { flex: none; width: 12px; margin-right: -3px; color: #8A8A8F; font-size: 11px; display: flex; }
.row .t em.dest { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.row .t em.dest span { color: #1D1D1F; overflow: hidden; text-overflow: ellipsis; }
.row .t em.dest .i { flex: none; font-size: 11px; }
.place { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6E6E73; padding: 0 3px 5px; }
.place b { font-weight: 500; color: #1D1D1F; }
.place .pb.mini { margin-left: auto; cursor: default; }
.progress { height: 5px; border-radius: 9px; background: rgba(0,0,0,.09); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--td-accent); animation: td-fill var(--t, 1s) linear forwards; }
@keyframes td-fill { to { width: 100%; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0; }
.stats div + div { box-shadow: -.5px 0 0 rgba(0,0,0,.14); padding-left: 12px; }
.stats b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: #6E6E73; }
.okhead { display: flex; gap: 11px; align-items: center; }
.okhead svg { width: 34px; height: 34px; color: #30B14C; flex: none; }
.switch { all: unset; position: relative; display: inline-block; flex: none; width: 32px; height: 19px; border-radius: 99px; background: rgba(0,0,0,.18); cursor: pointer; transition: background-color .28s ease; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .42s cubic-bezier(.3,1.3,.5,1), width .2s ease; }
.switch[aria-checked="true"] { background: var(--td-accent); }
.switch[aria-checked="true"]::after { transform: translateX(13px); }
.switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--td-accent) 60%, transparent); outline-offset: 2px; }

/* The waitlist */
.wl { display: grid; gap: 10px; width: min(100%, 500px); text-align: left; font-size: 13px; line-height: 1.4; }
.wl-row { display: flex; gap: 8px; }
.wl-row input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--wl-line, #D2D2D7); background: var(--wl-bg, #fff); color: var(--wl-ink, #1D1D1F); font: 400 16px/1 var(--td-font); }
.wl-row input::placeholder { color: var(--wl-dim, #86868B); }
.wl-go { all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--td-accent); color: #fff; font: 500 15px/1 var(--td-font); cursor: pointer; text-align: center; transition: background .25s; }
.wl-go:hover { background: var(--td-accent-press); }
.wl-go.alt { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.wl-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--td-accent) 60%, transparent); outline-offset: 2px; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--wl-dim, #6E6E73); cursor: pointer; }
.wl-consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--td-accent); }
.wl-consent a { color: inherit; text-decoration: underline; }
.wl-msg { margin: 0; color: var(--wl-dim, #6E6E73); }
.wl-msg:empty { display: none; }
.wl-msg.err { color: var(--wl-err, #E5342B); }
.wl-done b { display: block; font-size: 18px; font-weight: 600; }
.wl-mac { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wl-mac .wl-go { height: 34px; padding: 0 14px; font-size: 13px; }
.wl-done p { color: var(--wl-dim, #6E6E73); margin-top: 2px; }
@media (max-width: 520px) { .wl-row { flex-direction: column; } .wl-go { width: 100%; } }

/* The clickable demo: a Mac with the app running on sample files */
.mac { width: 100%; max-width: 1120px; margin-inline: auto; }
.mbp { position: relative; width: 100%; overflow: hidden; }
.mbp-frame { position: relative; aspect-ratio: 3860 / 2540; }
.mbp-bezel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; user-select: none; }
/* The opening in the bezel, from its own pixels, a hair bigger so no seam shows at the edge. */
.mbp .screen { position: absolute; left: calc(10.829% - 1px); top: calc(11.339% - 1px); width: calc(78.316% + 2px); height: calc(77.283% + 2px); overflow: hidden; background: #111; z-index: 1; }
/* The phone's own screen (kit.js, fit "phone"): no Apple bezel, a dark display edge round a tall screen, the
   notch hanging from its top. Rows put their menu under the name, so names and reasons read in full. */
.mbp.phone .mbp-frame { aspect-ratio: auto; background: #0B0B0D; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.5); }
.mbp.phone .mbp-bezel { display: none; }
.mbp.phone .screen { left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 14px; }
.mbp.phone .stage .row:has(.pick), .mbp.phone .stage .row:has(.pb.mini) { flex-wrap: wrap; row-gap: 4px; }
.mbp.phone .stage .row:has(.pick) .t, .mbp.phone .stage .row:has(.pb.mini) .t { flex: 1 1 calc(100% - 64px); }
.mbp.phone .stage .row .pick, .mbp.phone .stage .row .pb.mini { margin-left: auto; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #111 center / cover; font-size: 13px; line-height: 1.3; }
.stage .panel { --band: 26px; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 5; transition: width .42s cubic-bezier(.3,1.2,.5,1), height .42s cubic-bezier(.3,1.2,.5,1), border-radius .3s; }
.stage .panel.opening { transition: width .26s ease-out, height .5s cubic-bezier(.3,1.2,.5,1) .2s, border-radius .3s .2s; }
.stage .scr { position: absolute; top: var(--band); left: var(--bezel); right: var(--bezel); bottom: var(--bezel); transition: opacity .12s .2s; }
.stage .panel.closed .scr { opacity: 0; transition-delay: 0s; }
.stage .panel.closed { --shoulder: 6px; width: 236px !important; height: 26px !important; padding: 0; box-shadow: none; border-radius: 0 0 12px 12px; }
.stage .pad { position: absolute; left: 0; right: 0; top: 0; }
/* The screen being left, fading out over the new one (kit.js render). Frozen as it was: nothing in it replays. */
.stage .pad.ghost { pointer-events: none; z-index: 1; }
.stage .pad.ghost, .stage .pad.ghost * { animation: none !important; }
.stage .pad.ghost .progress i { width: 100%; }
/* The band's name and Close fade with the panel instead of vanishing: out at once as it folds, in once it has widened. */
.stage .band { transition: opacity .28s ease .16s, visibility 0s linear .16s; }
.stage .panel.closed .band { opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s linear .12s; }
.stage .panel.glow { animation: td-glow 1.1s ease-out; }
@keyframes td-glow { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9); } 100% { box-shadow: 0 0 60px 26px rgba(255,255,255,0); } }
.housing { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 6; width: 150px; height: 26px; background: #000; border-radius: 0 0 10px 10px; }
.ears { all: unset; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 7; width: 236px; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font-size: 13px; cursor: pointer; box-sizing: border-box; }
.ears img { width: 16px; height: 16px; }
.ears > span { display: inline-flex; align-items: center; gap: 5px; }
.ears .count { font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.demo-trash { position: absolute; right: 18px; bottom: 10px; z-index: 4; width: 84px; height: 84px; opacity: 0; transition: opacity .4s ease, transform .45s cubic-bezier(.3,1.35,.5,1); filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.demo-trash.on { opacity: 1; }
.demo-trash.bump { transform: scale(1.1); }
.caption { min-height: 48px; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; font-size: 15px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  [data-r] { opacity: 1; transform: none; transition: none; }
  .pb.pulse, .stage .panel.glow, .bi { animation: none; }
  .stage .panel, .stage .band { transition-duration: .01s; }
  .progress i { animation-duration: .01s; }
  .pin { height: auto !important; }
  .pin > .sticky { position: relative; height: auto; min-height: 100svh; }
}

/* The one call to action at launch, in the style of a Mac app's get button: a black pill, the Apple mark,
   "Get Cleartop for Mac". A faint ring keeps it visible on the site's black sections. */
.get, .wl-go.get, .btn.get, .menubar .buy.get { display: inline-flex; align-items: center; justify-content: center; gap: .45em; background: #000 !important; color: #fff !important; -webkit-text-fill-color: #fff; text-shadow: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 30px -10px rgba(0,0,0,.6) !important; font-weight: 600; text-decoration: none; }
.get:hover { background: #1a1a1a !important; }
/* On the marketing page the black pill keeps only its hairline: no blue light under it. */
.deep-cta .get, .deep-cta .get:hover { background: #000 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22) !important; transition: background-color .2s, box-shadow .2s; }
.deep-cta .get:hover { background: #1a1a1a !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3) !important; }
.deep-cta .btn.get { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 -1px 0 rgba(140,205,255,.5), 0 0 0 6px rgba(255,255,255,.04), 0 12px 44px -14px rgba(10,132,255,.65) !important; }
.get .apl { width: .95em; height: 1.1em; margin-top: -.18em; flex: none; }
.wl-go.get { height: 48px; padding: 0 26px; font-size: 16px; }
.btn.get { min-height: 54px; padding: 0 30px; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 0 0 6px rgba(255,255,255,.05), 0 10px 40px -12px rgba(190,205,225,.5) !important; }

/* ───────── Cleartop 1.1: the Cover Flow open screen, the one-pill review, and the screens after it ─────────
   From Sources/OpenDroppy.swift (D6 · Cover Flow, SoftPillButton), ReviewDirections.swift (A4 · One Pill, Combined)
   and ScreenDirections.swift (progress and summary). One pill per screen, the Deep Blue soft pill; everything else is
   plain words, hairlines and colour that means something: red for the Trash, system blue for folders, mint for
   what stays, orange only for "Your call". */
:root { --t-red: #FF453A; --t-blue: #007AFF; --t-mint: #00C7BE; --t-call: #FF9F0A; --t-soft: #8A8A8F; --t-faint: rgba(0,0,0,.26); }

/* The soft pill: Deep Blue, the site's own button (#2A97FF → #0A6BEB → #0844A6), 34 pt, snug, a lit top edge and a
   darker rim, no glow. */
.pill { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 99px; white-space: nowrap; font: 500 15px/1 var(--td-font); color: rgba(255,255,255,.96); text-shadow: 0 -.5px 0 rgba(3,19,47,.45);
  background: linear-gradient(rgba(0,0,0,0) 55%, rgba(0,0,0,.12)), linear-gradient(#2A97FF, #0A6BEB 45%, #0844A6);
  box-shadow: inset 0 0 0 1px rgba(7,59,146,.9), inset 0 2px 0 -1px rgba(255,255,255,.4), 0 1px 1.5px rgba(0,0,0,.25); transition: filter .15s, transform .12s; }
.pill:hover { filter: brightness(1.05); }
.pill:active, .pill.press { transform: translateY(1px) scale(.985); box-shadow: inset 0 0 0 1px rgba(7,59,146,.9), inset 0 2px 0 -1px rgba(255,255,255,.4), 0 .5px 1px rgba(0,0,0,.2); }
.pill .sfi { margin-left: -2px; }
.pill:focus-visible { outline: 3px solid rgba(42,151,255,.5); outline-offset: 2px; }
.pill[disabled] { opacity: .45; pointer-events: none; }
/* The quiet text links beside it: Undo, Not Now. */
.qlink { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 400 15px/1 var(--td-font); color: #8A8A8F; }
.qlink:hover { color: #55555a; }


/* An SF Symbol from assets/sf/, filled with the text colour (kit.js sfs). */
.sfi { display: inline-block; flex: none; vertical-align: middle; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* A pad that holds a 1.1 screen, which brings its own margins. */
.pad.bare { padding: 0; gap: 0; }
.pad.bare > :last-child:not(.tray) { margin-bottom: 0; }
/* The open screen: a soft blue floor rising from the bottom edge, the pill's own middle blue at 24 %. */
.scr.floor { background: linear-gradient(rgba(10,107,235,0) 52%, rgba(10,107,235,.24)), linear-gradient(#fff, #F5F5F7); }
.op { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 20px 20px; }

/* Cover Flow: every pile in one row, the focused one facing you, the others turned away and fading to the sides. */
.cf { --k: 1; position: relative; align-self: stretch; margin: -6px -20px 0; height: calc(232px * var(--k)); overflow: hidden; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.cf.moving { -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); }
.cf-row { position: absolute; inset: 0; perspective: 700px; }
.cf-s { position: absolute; left: 50%; top: 50%; width: calc(166px * var(--k)); height: calc(166px * var(--k)); margin: calc(-83px * var(--k)) 0 0 calc(-83px * var(--k)); cursor: pointer; will-change: transform, filter, opacity; }
.cf-c { position: absolute; left: 50%; top: 50%; width: calc(136px * var(--k)); height: calc(136px * var(--k)); margin: calc(-68px * var(--k)) 0 0 calc(-68px * var(--k)); padding: calc(8px * var(--k)); box-sizing: border-box; border-radius: calc(25px * var(--k)); background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.42); }
.cf-c i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: calc(18px * var(--k)); background: #F5F5F5; overflow: hidden; }
.cf-c img { width: 96%; height: 96%; object-fit: contain; }
.cf-b { position: absolute; z-index: 5; min-width: calc(28px * var(--k)); height: calc(28px * var(--k)); padding: 0 calc(8px * var(--k)); box-sizing: border-box; border-radius: 99px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; font: 600 calc(15px * var(--k))/1 var(--td-font); font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(#5AA2FF, #007AFF); box-shadow: 0 1.5px 4px rgba(0,0,0,.35); }
.cf-b.tr { background: linear-gradient(#FF7A70, #FF453A); }
.cf-arrow { all: unset; position: absolute; top: 50%; z-index: 3; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1D1D1F; font-size: 13px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s, transform .15s; }
.cf-arrow.l { left: 24px; } .cf-arrow.r { right: 24px; }
.cf:hover .cf-arrow:not([hidden]), .cf-arrow:focus-visible { opacity: 1; }
.cf-arrow:hover { transform: scale(1.08); }
.cf-cap { text-align: center; max-width: 440px; min-height: 38px; }
.cf-cap b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-cap p { margin: 3px 0 0; font-size: 12px; color: var(--t-soft); }
.cf-cap p .n { color: #1D1D1F; }
.cf-cap p .tr { color: var(--t-red); font-weight: 500; }
.cf-cap p .fo { color: var(--t-blue); font-weight: 500; }
.cf-cap p .ca { color: var(--t-call); font-weight: 500; }
/* What was found, kind by kind: no capsules, the symbol, the count and the name. */
.inv { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.inv small { font-size: 10px; font-weight: 500; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.inv .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 12px; color: var(--t-soft); white-space: nowrap; position: relative; transition: background-color .2s, opacity .2s; }
.chip b { color: #1D1D1F; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip .sfi { color: #1D1D1F; }
.chip.g .sfi { color: #B3B3B3; } .chip.fo .sfi { color: var(--t-blue); }
.chip:hover { background: rgba(0,0,0,.06); }
.chip.on { color: #1D1D1F; }
.chip.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--t-blue); }
.inv.picked .chip:not(.on) { opacity: .5; }
.op .pill { margin-top: 6px; }

/* The review: "Here's the Plan". No cards: rows on the panel with a hairline that starts at the text. */
.plan { display: flex; flex-direction: column; padding: 16px 20px 0; }
.plan-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; min-width: 0; }
.plan-h h4 { margin: 0; font-size: 15px; font-weight: 700; flex: none; }
.plan-h .note { color: var(--t-soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 1.2s ease; }
.plan-h .note.gone { opacity: 0; }
.plan-h .where { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; color: rgba(0,0,0,.32); font-size: 12px; }
.plan-h .where { gap: 4px; }
.plan-l { max-height: 470px; overflow-y: auto; padding-bottom: 26px; margin: 0 -6px; padding-inline: 6px;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.plan-sec + .plan-sec { margin-top: 18px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 6px 4px; position: relative; }
.prow + .prow::before { content: ""; position: absolute; left: 60px; right: 4px; top: 0; height: .5px; background: rgba(0,0,0,.09); }
.prow .t { flex: 1; min-width: 0; }
.prow .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .t em { display: block; font-style: normal; font-size: 11px; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.prow .t em .tr { color: var(--t-red); } .prow .t em .fo { color: var(--t-blue); } .prow .t em .st { color: var(--t-mint); } .prow .t em .ca { color: var(--t-call); }
.prow .chev { color: rgba(0,0,0,.26); display: flex; flex: none; }
/* A small sticker stack for the row: up to three white tiles, turned a little. */
.mini { position: relative; flex: none; width: 42px; height: 40px; }
.mini span { position: absolute; left: 50%; top: 50%; width: 33px; height: 33px; margin: -16.5px 0 0 -16.5px; padding: 2.5px; box-sizing: border-box; border-radius: 8px; background: #fff; box-shadow: 0 1.5px 4px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.3,1.35,.5,1); }
.mini span i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 6px; background: #F5F5F5; overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: contain; }
/* Trash, Folder, Keep: three plain symbols (UnderlinedChoice). The chosen one filled, semibold, in its colour, with a
   14 × 2 line under it that slides from one to the next. The others stay faint until pointed at. */
.fate { --tint: var(--t-mint); position: relative; flex: none; display: flex; }
.fate[data-on="trash"] { --tint: var(--t-red); } .fate[data-on="move"] { --tint: var(--t-blue); }
.fate > [data-v] { all: unset; cursor: pointer; position: relative; width: 30px; height: 26px; color: rgba(0,0,0,.32); transition: color .12s ease-out; }
.fate > [data-v]:hover, .fate > [data-v].hover { color: rgba(0,0,0,.75); }
.fate > [data-v].on { color: var(--tint); }
.fate > [data-v] .sfi { position: absolute; inset: 0; transition: opacity .15s ease-out; }
.fate > [data-v] .f, .fate > .on .o { opacity: 0; }
.fate > .on .f { opacity: 1; }
.fate > [data-v]:focus-visible { outline: 2px solid rgba(42,151,255,.55); outline-offset: -2px; border-radius: 6px; }
.fate .mark { position: absolute; left: 8px; bottom: 0; width: 14px; height: 2px; border-radius: 2px; background: var(--tint); pointer-events: none;
  transition: transform .34s cubic-bezier(.3,1.25,.5,1), background-color .15s ease-out; }
.fate[data-on="move"] .mark { transform: translateX(30px); } .fate[data-on="keep"] .mark { transform: translateX(60px); }
.plan-tray, .foot-tray { display: flex; align-items: center; gap: 14px; padding: 12px 20px 18px; }
.plan-tray .sum { flex: 1; min-width: 0; font-size: 13px; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.plan-tray .sum b { color: #1D1D1F; font-weight: 400; }
.foot-tray .sp { flex: 1; }

/* Cleaning up: the files' stack centred, the title, and where they go in their colours. */
.clean { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 20px 26px; gap: 4px; }
.clean .fan3 { position: relative; width: 70px; height: 64px; margin-bottom: 22px; }
.clean .fan3 img { position: absolute; left: 6px; top: 0; width: 58px; height: 58px; animation: t-shuffle 1.2s ease-in-out infinite alternate; }
.clean .fan3 img:nth-child(1) { transform: translate(10px, -3px) rotate(6deg); animation-delay: -.4s; }
.clean .fan3 img:nth-child(2) { transform: translate(5px, -1px) rotate(3deg); animation-delay: -.2s; }
@keyframes t-shuffle { to { translate: 0 -3px; } }
.clean h4 { margin: 0; font-size: 13px; font-weight: 700; }
.clean p { margin: 0; font-size: 12px; color: var(--t-soft); }
.clean .tr, .cleared .tr { color: var(--t-red); } .clean .fo, .cleared .fo { color: var(--t-blue); } .cleared .st { color: var(--t-mint); }

/* The summary: one sentence, the outcome line, the list behind Show What Moved, Auto-Tidy as a plain row. */
.cleared { padding: 16px 20px 0; display: flex; flex-direction: column; }
.cleared h4 { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cleared .out { margin-top: 10px; font-size: 13px; color: var(--t-soft); font-variant-numeric: tabular-nums; }
.cleared .out b { color: #1D1D1F; font-weight: 400; }
.cleared .out .dot { margin: 0 6px; }
.cleared .more { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--t-soft); align-self: flex-start; }
.cleared .more { gap: 5px; }
.cleared .more .sfi { transition: transform .35s cubic-bezier(.3,1.1,.5,1); }
.cleared .more[aria-expanded="true"] .sfi { transform: rotate(90deg); }
.cleared .moved { max-height: 180px; overflow-y: auto; margin-top: 6px; }
.cleared .moved .prow .pb.mini { flex: none; }
.cleared .auto { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; box-shadow: inset 0 .5px 0 rgba(0,0,0,.1); }
.cleared .auto > .sfi { color: rgba(0,0,0,.28); }
.cleared .auto .t { flex: 1; min-width: 0; }
.cleared .auto b { display: block; font-size: 13px; font-weight: 600; }
.cleared .auto em { display: block; font-style: normal; font-size: 12px; color: var(--t-soft); }
.cleared .auto .switch { width: 42px; height: 24px; }
.cleared .auto .switch::after { width: 20px; height: 20px; }
.cleared .auto .switch[aria-checked="true"]::after { transform: translateX(18px); }
.cleared + .foot-tray { padding-top: 22px; }

/* The licence screen's rows, for the site's pricing panel: a symbol, the words, a hairline from the text. */
.lrow { display: flex; align-items: center; gap: 14px; padding: 9px 0; position: relative; font-size: 13px; }
.lrow + .lrow::before { content: ""; position: absolute; left: 34px; right: 0; top: 0; height: .5px; background: rgba(0,0,0,.1); }
.lrow > .sfi { color: rgba(0,0,0,.45); }

@media (prefers-reduced-motion: reduce) { .clean .fan3 img { animation: none; } .cf-s { transition: none !important; } }
@media (max-width: 560px) { .plan-h .note, .plan-h .where { display: none; } }
