/* ==========================================================================
   Showcase — "Take shortcuts, not detours." desktop with scripted demos
   ========================================================================== */

.showcase { display: flex; flex-direction: column; align-items: center; }
.sc-title { max-width: 400px; margin: 0 auto var(--sp-8); }

.sc-wrap {
  position: relative;
  width: 100%;
  max-width: min(1204px, calc(19px + 100vw));
  user-select: none;
  -webkit-user-select: none;
}
.sc-backdrop {
  position: absolute;
  inset: -60px -70px;
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
}
.sc-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 0%, 50% 14%, 100% 0%, 92% 50%, 100% 100%, 50% 86%, 0% 100%, 8% 50%);
  background: radial-gradient(40% 147% at 50% 46.2%, rgba(255, 119, 119, 0.2) 5%, rgba(154, 170, 255, 0.11) 60%, rgba(255, 192, 192, 0) 140%);
}

/* Twinkling stars around the frame */
.sc-stars { position: absolute; inset: -45px -135px; pointer-events: none; }
.sc-stars-band { position: absolute; }
.sc-stars-top { top: 0; left: 0; right: 0; height: 45px; }
.sc-stars-bottom { bottom: 0; left: 0; right: 0; height: 45px; }
.sc-stars-left { top: 82px; bottom: 82px; left: 50px; width: 86px; }
.sc-stars-right { top: 82px; bottom: 82px; right: 50px; width: 86px; }
.star { position: absolute; width: 1px; height: 1px; border-radius: 50%; background: #fff; }
.star::before, .star::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--star-t, 250ms) ease;
}
.star::after { background: #fff; box-shadow: 0 0 1px 1px rgba(50, 145, 255, 0.8), 0 0 2px 1px rgba(50, 145, 255, 0.25); }
.star::before { box-shadow: 0 0 2px 1px rgba(50, 145, 255, 0.25); }
.star[data-s="1"]::before, .star[data-s="2"]::after { opacity: 1; }
.star[data-s="2"] { transform: scale(1.4); }

/* Frame */
.sc-frame {
  position: relative;
  height: clamp(500px, 274.436px + 60vw, 740px);
  padding: var(--sp-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(85.77% 49.97% at 51% 5.12%, rgba(255, 150, 150, 0.11) 0%, rgba(222, 226, 255, 0.08) 45.83%, rgba(241, 242, 255, 0.02) 100%),
    rgba(0, 0, 0, 0.44);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.03), inset 0 0.5px rgba(255, 255, 255, 0.3);
}
.sc-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--grey-900);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.19), inset 0 0.5px rgba(255, 255, 255, 0.1);
}
@media (min-width: 1204px) {
  .sc-frame { border-radius: 19px; }
  .sc-inner { border-radius: var(--r-md); }
}
.sc-wallpaper {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 40% 100%, rgba(170, 20, 40, 0.35), transparent 70%), var(--grey-900);
  background-position: center;
  background-size: cover;
  transition: opacity .6s;
}
/* Warm glow behind the active window (seen through its blurred material). */
.sc-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(34% 42% at 50% 60%, rgba(214, 28, 52, 0.42), transparent 72%);
}

/* macOS menu bar */
.sc-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 12px 24px 12px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--system);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
@media (min-width: 720px) { .sc-menubar { display: flex; } }
.sc-menubar-left, .sc-menubar-right { display: flex; align-items: center; }
.sc-menubar-left { gap: 19px; }
.sc-menubar-left b { font-weight: 700; color: rgba(255, 255, 255, 0.92); }
.sc-apple { width: 15px; height: 15px; margin: 0 4px 0 2px; color: rgba(255, 255, 255, 0.9); }
.sc-menubar-right { gap: 17px; }
.mb-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mb-ico { width: 16px; height: 16px; }
.mb-battery { width: 24px; }

/* Reel */
.sc-reel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.sc-track {
  display: flex;
  height: 100%;
  transition: transform 1s var(--ease-in-out);
  will-change: transform;
}
.sc-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 102px;
}
@media (min-width: 720px) { .sc-slide { padding-top: 48px; } }
.rw-scale { position: relative; z-index: 1; flex: none; transform: scale(var(--sc-scale, 1)); transform-origin: 50% 50%; }

/* Dock */
.sc-dock {
  position: absolute;
  left: 50%;
  bottom: var(--sp-3);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-1);
  padding: var(--sp-1);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: linear-gradient(181deg, rgba(0, 0, 0, 0.1) 4.5%, rgba(255, 255, 255, 0.03) 99.51%), rgba(10, 10, 12, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.17), 0 4px 3px rgba(0, 0, 0, 0.1),
    0 7px 3px rgba(0, 0, 0, 0.03), 0 4px 4px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}
.sc-dock-item {
  display: flex;
  align-items: center;
  padding: var(--sp-2);
  color: var(--grey-200);
  border: 1px solid var(--grey-500);
  border-radius: var(--r-md);
  background: radial-gradient(1139.98% 138.18% at 0 0, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%), rgba(16, 16, 18, 0.6);
  box-shadow: 0 7px 3px rgba(0, 0, 0, 0.03), 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: all .25s var(--ease-out);
}
.sc-dock-item svg { width: 20px; height: 20px; }
.sc-dock-item:hover, .sc-dock-item.is-active {
  color: #fff;
  border-color: var(--grey-400);
  background: radial-gradient(79.21% 79.21% at 42.35% 0, #787878 0%, #282828 100%);
  box-shadow: 0 8px 3.5px rgba(0, 0, 0, 0.03), 0 4.6px 4.6px rgba(0, 0, 0, 0.25),
    inset 0 1.15px rgba(255, 255, 255, 0.19), 0 0 6px rgba(255, 255, 255, 0.25);
}
.sc-dock-item.is-active { margin: 0 6px; border-radius: var(--r-lg); transform: scale(1.25) translateY(-5px); }
.sc-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 1px var(--sp-1);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: left .35s var(--ease-out), opacity .2s;
  pointer-events: none;
}

.sc-caption {
  max-width: 467px;
  min-height: 52px;
  margin-top: var(--sp-3);
  padding: 0 var(--sp-2);
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  text-align: center;
  transition: opacity .3s;
}
.sc-caption.is-changing { opacity: 0; }
.sc-caption-lead { color: #fff; }

/* ==========================================================================
   Raycast window (shared by the demos)
   ========================================================================== */
.rw {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 40px;
  width: 750px;
  height: 475px;
  border-radius: var(--r-md);
  color: #fff;
  text-align: left;
  font-family: var(--font);
}
.rw::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid rgba(142, 140, 144, 0.2);
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
  box-shadow: 0 4px 40px 8px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.8), inset 0 0.5px rgba(255, 255, 255, 0.3);
}
.rw-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0 var(--sp-2);
  border-bottom: 0.5px solid var(--separator);
  font-size: 16px;
  letter-spacing: 0.1px;
}
.rw-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
}
.rw-back svg { width: 16px; height: 16px; }
.rw-input { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 20px; white-space: pre; overflow: hidden; }
.rw-typed { white-space: pre; }
.rw-caret {
  flex: none;
  width: 2px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: caret-blink 1.1s step-end infinite;
}
.rw-placeholder { color: rgba(255, 255, 255, 0.4); }
.rw-input.has-value .rw-placeholder { display: none; }
.rw-askai { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 500; white-space: nowrap; }
.rw-askai i {
  font-style: normal;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
}

.rw-content { position: relative; min-height: 0; overflow: hidden; }
.rw-list { height: 100%; padding: 0 var(--sp-1) var(--sp-1); overflow: hidden; }
.rw-list-inner { transition: transform .25s ease; }
.rw-section {
  display: flex;
  align-items: center;
  padding: 16px 8px 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: 0.1px;
}
.rw-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
}
.rw-item.is-focus { background: rgba(255, 255, 255, 0.1); }
.rw-item.is-pressed { transform: scale(0.98); transition: transform .15s cubic-bezier(.34, 1.56, .64, 1); }
.rw-ico { flex: none; display: inline-flex; width: 20px; height: 20px; }
.rw-ico svg { width: 20px; height: 20px; }
.rw-main { display: flex; gap: 10px; min-width: 0; overflow: hidden; }
.rw-title { overflow: hidden; text-overflow: ellipsis; }
.rw-sub { color: rgba(255, 255, 255, 0.6); }
.rw-acc { margin-left: auto; padding-left: 12px; color: rgba(255, 255, 255, 0.6); }

.rw-actionbar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-1-5);
  border: 1px solid transparent;
}
.rw-actionbar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-top: 1px solid rgba(142, 140, 144, 0.2);
  border-radius: 0 0 12px 12px;
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(48px);
  backdrop-filter: blur(48px);
}
.rw-cmd { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 600; line-height: 16px; }
.rw-cmd-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(#ff6363, #d72a2a);
  color: #fff;
}
.rw-cmd-ico svg { width: 11px; height: 11px; }
.rw-cmd-logo { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.55); }
.rw-actions { display: flex; align-items: center; gap: var(--sp-1-5); }
.rw-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1px;
  transition: background-color .15s;
}
.rw-action.is-main { color: rgba(255, 255, 255, 0.6); }
.rw-action.is-active { background: rgba(255, 255, 255, 0.1); }
.rw-keys { display: inline-flex; gap: 2px; }
.rw-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 21px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.rw-sep { width: 2px; height: 12px; border-radius: 3px; background: var(--separator); }

/* Emoji grid */
.rw-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.rw-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font);
  font-size: 32px;
  line-height: 1;
  transition: border-color .12s, background-color .12s, transform .15s cubic-bezier(.34, 1.56, .64, 1);
}
.rw-emoji.is-symbol { font-family: var(--system); font-size: 30px; font-weight: 400; }
.rw-emoji.is-selected { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.rw-emoji.is-pressed { transform: scale(0.92); }
.rw-emoji.is-new { animation: emoji-in .28s ease both; }
@keyframes emoji-in { from { opacity: 0; transform: scale(0.85); } }

.rw-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(38, 26, 28, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 0.5px rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity .25s ease, transform .35s var(--ease-out);
  pointer-events: none;
}
.rw-toast svg { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.85); }
.rw-toast.is-shown { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Clipboard history: list + details */
.rw-content.has-details { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: 218px minmax(0, 1fr); }
.rw-content.has-details .rw-list { grid-row: span 2; border-right: 1px solid var(--separator); }
.rw-preview { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--separator); }
.rw-meta { padding: 4px 16px 0; overflow: hidden; }
.rw-meta-title { padding: 10px 0 6px; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 600; }
.rw-meta table { width: 100%; border-collapse: collapse; }
.rw-meta tr:not(:last-child) { border-bottom: 1px solid var(--separator); }
.rw-meta th { padding: 8px 0; color: rgba(255, 255, 255, 0.6); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.1px; }
.rw-meta td { padding: 8px 0; text-align: right; font-size: 12px; letter-spacing: 0.1px; }
.clip-swatch { width: 88px; height: 88px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35); }
.clip-hex { position: absolute; bottom: 14px; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.clip-text { padding: 18px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.clip-link { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.clip-link-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ff6363, #b51e3a); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.clip-link-ico svg { width: 22px; height: 22px; }
.clip-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background:
    radial-gradient(70% 90% at 90% 110%, rgba(174, 132, 255, 0.5), transparent 60%),
    radial-gradient(60% 60% at 10% 0%, rgba(255, 99, 99, 0.25), transparent 70%),
    linear-gradient(160deg, #17111f, #0b0a10);
  text-align: center;
}
.clip-banner b { font-size: 34px; font-weight: 700; line-height: 1.02; letter-spacing: -0.8px; background: linear-gradient(180deg, #fff 30%, #d8cfee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clip-banner span { max-width: 270px; color: rgba(255, 255, 255, 0.55); font-size: 11px; line-height: 1.45; }
.clip-photo { position: absolute; inset: 14px 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.clip-thumb { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.clip-thumb-color { width: 16px; height: 16px; margin: 2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* Dropdown */
.rw-dropdown {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 196px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.rw-dropdown .rw-dd-label { flex: 1; white-space: nowrap; }
.rw-dropdown > svg { width: 12px; height: 12px; transition: transform .2s; opacity: 0.8; }
.rw-dropdown.is-open > svg { transform: rotate(180deg); }
.rw-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  z-index: 6;
  display: none;
  width: calc(100% + 2px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.97);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.rw-dropdown.is-open .rw-dd-menu { display: block; animation: panel-in .2s ease both; }
.rw-dd-item { display: flex; align-items: center; height: 30px; padding-left: 8px; border-radius: var(--r-sm); }
.rw-dd-item.is-selected { background: rgba(255, 255, 255, 0.1); }

/* Action panel */
.rw-panel {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  z-index: 7;
  display: none;
  width: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(46, 44, 48, 0.72);
  -webkit-backdrop-filter: blur(48px);
  backdrop-filter: blur(48px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}
.rw-panel.is-open { display: block; animation: panel-in .3s ease both; }
.rw-panel-section { padding: 6px; }
.rw-panel-section + .rw-panel-section { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.rw-panel-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; }
.rw-panel-item svg { width: 16px; height: 16px; opacity: 0.85; }
.rw-panel-item .rw-keys { margin-left: auto; }
.rw-panel-item .rw-key { min-width: 20px; height: 18px; }
.rw-panel-item.is-focus { background: rgba(255, 255, 255, 0.1); }
.rw-panel-search { display: flex; align-items: center; height: 40px; padding-left: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); font-size: 13px; }
@keyframes panel-in { from { opacity: 0; transform: translate(10px, 10px) scale(0.92); } to { opacity: 1; transform: none; } }

/* Calculator card */
.rw-calc {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 112px;
  margin: 0 0 4px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.1);
  animation: emoji-in .25s ease both;
}
.rw-calc::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.1); }
.rw-calc-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; text-align: center; }
.rw-calc-big { font-size: 24px; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap; }
.rw-calc-pill { padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 500; }
.rw-calc-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2b2a2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}
.rw-calc-arrow svg { width: 14px; height: 14px; }

/* AI window */
.rw-ai { grid-template-rows: 56px minmax(0, 1fr); }
.rw-ai .rw-nav { font-size: 15px; }
.ai-answer {
  margin: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.ai-answer.is-shown { opacity: 1; transform: none; }
.ai-answer .ai-q { margin-bottom: 12px; color: rgba(255, 255, 255, 0.45); }
.ai-answer ol { margin: 8px 0 0 0; list-style: none; }
.ai-answer li { min-height: 1.62em; }
.ai-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; opacity: 0; transition: opacity .3s; }
.ai-refs.is-shown { opacity: 1; }
.ai-refs-title { width: 100%; margin-bottom: 2px; color: rgba(255, 255, 255, 0.45); font-size: 11.5px; }
.ai-ref { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 3px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); font-size: 11.5px; }
.ai-ref b { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); font-size: 10px; font-weight: 600; }
.ai-word { animation: word-in .3s ease both; }
@keyframes word-in { from { opacity: 0; filter: blur(2px); } }

/* Window management desktop window */
.mac-window {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #2a2b2f 0%, #202124 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0.5px rgba(255, 255, 255, 0.2);
  transition: left .7s var(--ease-in-out), top .7s var(--ease-in-out), width .7s var(--ease-in-out), height .7s var(--ease-in-out);
  overflow: hidden;
}
.mac-window-dots { position: absolute; top: 14px; left: 16px; display: flex; gap: 8px; }
.mac-window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #56575b; }
.mac-window-body { position: absolute; inset: 44px 16px 16px; display: grid; grid-template-columns: 160px 1fr; gap: 16px; opacity: 0.55; }
.mac-window-side { border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.mac-window-main { border-radius: 8px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 28px); }

.wm-ico { display: inline-flex; width: 20px; height: 20px; }
.wm-ico svg { width: 20px; height: 20px; }

@media (max-width: 719px) {
  .sc-dock { bottom: 14px; gap: 6px; padding: 6px; }
  .sc-dock-item { padding: 12px; }
  .sc-dock-item svg { width: 16px; height: 16px; }
  .sc-caption { font-size: 15px; }
}
