/* Product-specific styles. Loaded after base.css. Keep the slot values in sync with DESIGN.md. */
:root {
  --wall-glow-1: #f8e8ff;
  --wall-glow-2: #e6c9f7;
  --wall-top: #d5b5f0;
  --wall-mid: #8b4cc4;
  --wall-bottom: #2a1645;
  --accent: #d9b0ff;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

.mark-big i { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.mark-big svg { width: 22px; height: 22px; }

/* ---------- desktop inside .screen (dark mode) ---------- */
.screen { font-family: var(--mac); }
.menubar { position: relative; z-index: 5; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 18px; font: 500 13.5px var(--mac); color: #1d1d1f; }
.menubar .left { display: flex; gap: 20px; align-items: center; }
.menubar .left b { font-weight: 700; }
.menubar .right { display: flex; gap: 6px; align-items: center; }
.mb-item { height: 22px; padding: 0 7px; border-radius: 6px; display: grid; place-items: center; transition: background .15s; }
.mb-item.active { background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .5); }
.mb-cf { cursor: pointer; }
.mb-cf:focus-visible { outline: 2px solid #0a84ff; outline-offset: 1px; }

/* the document the user was typing in; pastes land here */
.w-doc { position: absolute; z-index: 1; left: 64px; top: 50px; width: 760px; height: 640px; border-radius: 12px; overflow: hidden; background: #1e1e1e; color: #e6e6e6;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 24px 60px -10px rgba(0, 0, 0, .45); }
.titlebar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #2b2b2d; border-bottom: 1px solid rgba(0, 0, 0, .5); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; }
.titlebar i:nth-child(1) { background: #ff5f57; } .titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { flex: 1; text-align: center; margin-right: 52px; font: 600 13px var(--mac); color: rgba(255, 255, 255, .85); }
.doc { padding: 22px 30px; font: 14px/1.6 var(--mac); white-space: pre-wrap; overflow-wrap: anywhere; }
.doc .new { background: rgba(10, 132, 255, .28); border-radius: 3px; transition: background 1.2s ease; }
.doc .new.settled { background: transparent; }
.caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: #0a84ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* keycaps shown while the paste-stack scene plays */
.keys { position: absolute; z-index: 8; left: 50%; bottom: 18px; transform: translate(-50%, 12px); display: flex; gap: 8px; opacity: 0; transition: .3s var(--ease); pointer-events: none; }
.keys.show { opacity: 1; transform: translate(-50%, 0); }
.keys kbd { min-width: 52px; height: 52px; padding: 0 14px; border-radius: 12px; display: grid; place-items: center; font: 500 21px var(--mac); color: #1d1d1f;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 10px 24px -8px rgba(0, 0, 0, .35); transition: transform .1s; }
.keys kbd.down { transform: translateY(2px) scale(.97); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(0, 0, 0, .35); }

/* ---------- the Clipfield picker ----------
   An HTML rebuild of the app's overlay panel in dark mode, at the Standard size. */
.cf {
  --c-ink: rgba(255, 255, 255, .9);
  --c-soft: rgba(235, 235, 245, .6);
  --c-mute: rgba(235, 235, 245, .32);
  --c-line: rgba(255, 255, 255, .09);
  --c-fill: rgba(255, 255, 255, .07);
  --c-hover: rgba(255, 255, 255, .06);
  --c-accent: #0a84ff;
  --c-sel: linear-gradient(135deg, #0a84ff, rgba(10, 132, 255, .72));
  position: absolute; z-index: 4; left: 150px; top: 100px; width: 880px; height: 540px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 230px;
  border-radius: 18px; overflow: hidden; color: var(--c-ink); font: 13px/1.3 var(--mac); user-select: none;
  background: rgba(38, 37, 44, .78); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 0, 0, .5), 0 30px 70px -12px rgba(0, 0, 0, .55);
  transition: opacity .2s var(--ease), transform .28s var(--ease), visibility .28s;
}
/* Visibility flips at once on open (hidden inputs can't take focus) and only after the fade on close. */
.screen:not(.closed) .cf { transition: opacity .2s var(--ease), transform .28s var(--ease); }
.screen.closed .cf { opacity: 0; visibility: hidden; transform: scale(.94); pointer-events: none; }
.cf svg { width: 1em; height: 1em; flex: none; }

.cf-side { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--c-line); padding-bottom: 12px; min-width: 0; }
.cf-side .app { font-size: 15px; font-weight: 700; padding: 16px 14px 6px; }
.cf-side .sec { font-size: 10px; font-weight: 700; color: var(--c-mute); padding: 12px 14px 2px; }
.side-row { display: flex; align-items: center; gap: 9px; margin: 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; text-align: left; }
.side-row svg { width: 14px; font-size: 13px; color: var(--c-accent); }
.side-row .n { margin-left: auto; font-size: 10.5px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.side-row.on { background: var(--c-sel); color: #fff; font-weight: 600; }
.side-row.on svg, .side-row.on .n { color: rgba(255, 255, 255, .9); }
.cf-side .new-folder { margin: auto 12px 0; display: flex; align-items: center; gap: 6px; color: var(--c-soft); font-size: 12px; }
.cf-side .new-folder svg { font-size: 14px; }

.cf-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cf-search { display: flex; align-items: center; gap: 9px; padding: 13px 16px; }
.sfield { position: relative; flex: 1; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--c-fill); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.sfield svg { font-size: 13px; color: var(--c-soft); }
.sfield input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--c-ink); font: 14px var(--mac); caret-color: var(--c-accent); }
.sfield input::placeholder { color: var(--c-mute); }
.sfield:focus-within { box-shadow: 0 0 0 3px rgba(10, 132, 255, .45); }
.sclear { display: none; color: var(--c-mute); font-size: 14px; }
.sclear.on { display: grid; }

.chips { display: flex; gap: 7px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--c-fill); color: var(--c-ink); font: 500 11px var(--mac); transition: background .2s; }
.chip svg { font-size: 11px; }
.chip.on { background: var(--c-sel); color: #fff; }
.chip:focus-visible, .side-row:focus-visible, .row:focus-visible, .cf-foot button:focus-visible, .fill button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.snip-bar { display: none; padding: 0 16px 10px; }
.snip-bar span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--c-sel); color: #fff; font: 500 11px var(--mac); }
.cf[data-scope=snippets] .chips { display: none; }
.cf[data-scope=snippets] .snip-bar { display: block; }

.cf-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 8px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.row { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; cursor: pointer; flex: none; transition: background .12s; }
.row:hover { background: var(--c-hover); }
.row.sel { background: var(--c-sel); color: #fff; box-shadow: 0 2px 6px rgba(10, 132, 255, .35); }
.badge { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); }
.badge svg { font-size: 16px; }
.row.sel .badge:not(.swatch):not(.thumb) { background: rgba(255, 255, 255, .18); color: #fff; }
.badge.swatch { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 1px 4px var(--t); background: var(--t); }
.badge.thumb { background: linear-gradient(160deg, #f6d6ff, #9a5bd2 60%, #3a1d5c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.r-body { flex: 1; min-width: 0; }
.r-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; overflow-wrap: anywhere; }
.r-title.mono { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; }
.r-sub { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10.5px; color: var(--c-soft); white-space: nowrap; }
.r-sub b { font-weight: 500; }
.r-sub svg { font-size: 9px; }
.row.sel .r-sub { color: rgba(255, 255, 255, .82); }
.pill { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 999px; background: rgba(235, 235, 245, .14); color: var(--c-soft); font: 600 10px var(--mac); }
.pill svg { font-size: 8px; }
.row.sel .pill { background: rgba(255, 255, 255, .22); color: #fff; }
.pin { flex: none; color: #ff9f0a; font-size: 10px; transform: rotate(40deg); }
.row.sel .pin { color: rgba(255, 255, 255, .95); }
.stackn { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: #fff; font: 700 11px var(--mac); animation: pop .25s var(--spring); }
.row.sel .stackn { background: rgba(255, 255, 255, .3); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--c-soft); }
.empty svg { font-size: 38px; color: var(--c-mute); }

.cf-foot { display: flex; align-items: center; gap: 12px; padding: 7px 14px; font-size: 13px; color: var(--c-accent); }
.cf-foot .sp { flex: 1; }
.side-toggles { display: flex; gap: 12px; }
.cf-foot .count { font-size: 10.5px; color: var(--c-mute); font-variant-numeric: tabular-nums; }
.cf-foot .ic { color: var(--c-soft); }
.paste-all { display: none; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 132, 255, .9); color: #fff; font: 600 10px var(--mac); white-space: nowrap; }
.paste-all.on { display: inline-flex; animation: pop .25s var(--spring); }
.stack-x { display: none; color: var(--c-soft); }
.stack-x.on { display: grid; }

.cf-prev { display: flex; flex-direction: column; padding: 16px; border-left: 1px solid var(--c-line); min-width: 0; }
.cf-prev .ph { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.cf-prev .ph svg { color: var(--c-accent); font-size: 14px; }
.cf-prev .pc { font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: hidden; }
.cf-prev .pc.mono { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.cf-prev .big-sw { height: 96px; border-radius: 12px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cf-prev .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.cf-prev .tags span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--c-fill); font: 500 10px var(--mac); color: var(--c-soft); }
.cf-prev .tags svg { font-size: 9px; }
.cf-prev .fields { margin-top: auto; }
.cf-prev .fields .h { font-size: 10px; font-weight: 700; color: var(--c-mute); margin-bottom: 6px; }
.cf-prev .fields div { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--c-soft); margin-bottom: 4px; }
.cf-prev .meta { margin-top: auto; display: grid; gap: 7px; font-size: 11px; padding-top: 12px; }
.cf-prev .fields + .meta { margin-top: 6px; border-top: 1px solid var(--c-line); }
.cf-prev .meta div { display: flex; justify-content: space-between; gap: 10px; }
.cf-prev .meta span { color: var(--c-soft); }
.cf-prev .meta b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* placeholder fill prompt (inline sheet, as in the app) */
.fill-wrap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(0, 0, 0, .28); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.fill-wrap.on { opacity: 1; visibility: visible; transition: opacity .2s; }
.fill { width: 380px; padding: 22px; border-radius: 16px; display: grid; gap: 12px; background: rgba(52, 51, 58, .92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .3); transform: scale(.94); transition: transform .3s var(--spring); }
.fill-wrap.on .fill { transform: none; }
.fill .ff { display: grid; gap: 12px; }
.fill .fh { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.fill .fh svg { color: var(--c-accent); font-size: 14px; }
.fill label { display: grid; gap: 3px; font-size: 10.5px; color: var(--c-soft); }
.fill input { height: 22px; padding: 0 6px; border-radius: 5px; border: 0; outline: 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); color: var(--c-ink); font: 13px var(--mac); caret-color: var(--c-accent); }
.fill input:focus, .fill input.typing { box-shadow: 0 0 0 3px rgba(10, 132, 255, .5); }
.fill .fb { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.fill .fb small { flex: 1; font-size: 10px; color: var(--c-soft); }
.fill .fb button { height: 22px; padding: 0 10px; border-radius: 6px; font: 13px var(--mac); }
.fill .fb .cancel { color: var(--c-accent); }
.fill .fb .go { background: var(--c-accent); color: #fff; }

/* ---------- narrow screens: unscaled, just the picker over the document ---------- */
.screen.compact .menubar .left span, .screen.compact .mb-item:not(.mb-cf):not(:last-child) { display: none; }
.screen.compact .w-doc { left: 10px; right: 10px; top: 40px; bottom: 10px; width: auto; height: auto; }
.screen.compact .cf { left: 10px; right: 10px; top: 40px; bottom: 10px; width: auto; height: auto; grid-template-columns: minmax(0, 1fr); }
.screen.compact .cf-side, .screen.compact .cf-prev { display: none; }
.screen.compact .cf-foot .ic, .screen.compact .cf-foot .side-toggles { display: none; }
.screen.compact .fill { width: calc(100% - 28px); padding: 18px; }
.screen.compact .keys { bottom: 62px; }
.screen.compact .keys kbd { min-width: 46px; height: 46px; font-size: 18px; }

/* ---------- feature card fragments ---------- */
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; font: 13px var(--mac); }
.setrow + .setrow { border-top: 1px solid rgba(0, 0, 0, .07); }
.setrow small { display: block; color: rgba(0, 0, 0, .6); font-size: 11px; margin-top: 2px; }
.setrow .kc kbd { font-family: var(--mac); }
.switch { width: 38px; height: 22px; border-radius: 11px; background: #34c759; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 18px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s var(--ease); }
.switch[aria-checked=false] { background: rgba(0, 0, 0, .15); }
.switch[aria-checked=false]::after { left: 2px; }
.switch:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.applist { display: grid; gap: 6px; }
.applist div { display: flex; align-items: center; gap: 8px; }
.applist i { width: 18px; height: 18px; border-radius: 5px; flex: none; }

/* dark picker fragment on the wallpaper */
.card .vis > .cf-card { position: relative; inset: auto; width: 100%; max-width: 420px; height: auto; display: block; border-radius: 14px 14px 0 0; padding-top: 12px; }
.cf-card .chips { padding-bottom: 8px; }
.cf-list::-webkit-scrollbar { display: none; }
.cf-card .cf-list { border-bottom: 0; overflow: visible; padding: 6px 8px 4px; }
.cf-card .row { cursor: default; }

/* light fill prompt on white */
.card .vis > .fill-card { padding: 18px 18px 14px; }
.fill-card .fh { display: flex; align-items: center; gap: 7px; font: 700 13px var(--mac); margin-bottom: 12px; }
.fill-card .fh svg { width: 14px; height: 14px; color: #0a84ff; }
.fill-card label { display: grid; gap: 3px; font: 10.5px var(--mac); color: rgba(0, 0, 0, .6); margin-bottom: 10px; }
.fill-card .tf { height: 22px; padding: 0 6px; border-radius: 5px; display: flex; align-items: center; font: 13px var(--mac); color: #1d1d1f; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), 0 .5px 1px rgba(0, 0, 0, .05); }
.fill-card .tf.focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .4), inset 0 0 0 .5px rgba(10, 132, 255, .8); }
.fill-card .tf .caret { height: 14px; vertical-align: 0; }
.fill-card .fb { display: flex; align-items: center; gap: 8px; font: 13px var(--mac); }
.fill-card .fb small { flex: 1; font-size: 10px; color: rgba(0, 0, 0, .6); }
.fill-card .fb span { padding: 2px 10px; border-radius: 6px; }
.fill-card .fb .go { background: #0a84ff; color: #fff; }
.fill-card .fb .cancel { color: #0a84ff; }

/* context menu with its Transform submenu, on the wallpaper */
.menu { position: relative; width: 186px; padding: 5px; border-radius: 10px 10px 0 0; font: 13px var(--mac); color: #1d1d1f; text-align: left; }
.menu .mi { display: flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.menu .mi svg { width: 13px; height: 13px; color: #0a84ff; flex: none; }
.menu .mi.hl { background: #0a84ff; color: #fff; }
.menu .mi.hl svg { color: #fff; }
.menu .mi .chev { margin-left: auto; font-size: 11px; }
.menu .sep { height: 1px; background: rgba(0, 0, 0, .1); margin: 4px 8px; }
.menu-pair { position: relative; width: 300px; max-width: 100%; height: 196px; }
.menu-pair .menu { position: absolute; left: 0; bottom: 0; }
.menu-pair .submenu { left: auto; right: 0; bottom: auto; top: 58px; width: 136px; border-radius: 10px; }

@media (max-width: 720px) {
  .menu-pair { width: 280px; }
  .menu-pair .submenu { width: 122px; }
}
