settings-stack.css

15.5 KB · raw

1/* Settings Stack — layered category deck for the full settings surface. */23.stk-shell {4  flex: 1;5  min-height: 0;6  position: relative;7  overflow: hidden;8  padding: 10px 12px 28px;9}1011.stk-mast {12  display: flex;13  align-items: center;14  justify-content: space-between;15  gap: 10px;16  padding: 0 0 8px;17}1819.stk-back {20  width: 28px;21  height: 28px;22  display: inline-flex;23  align-items: center;24  justify-content: center;25  flex: 0 0 auto;26  border: 1px solid var(--peach-border);27  border-radius: 999px;28  background: color-mix(in srgb, var(--peach-t0) 4%, transparent);29  color: var(--peach-t1);30  cursor: pointer;31}3233.stk-back:hover {34  color: var(--peach-t0);35  border-color: color-mix(in srgb, var(--peach-accent) 34%, transparent);36  background: color-mix(in srgb, var(--peach-accent) 10%, transparent);37}3839.stk-mast-title {40  flex: 1;41  font-family: var(--font-display);42  font-style: italic;43  font-weight: 400;44  font-size: 22px;45  line-height: 1;46  color: var(--peach-t0);47}4849.stk-mast-meta {50  display: flex;51  align-items: baseline;52  gap: 6px;53  font-family: var(--font-mono);54  font-size: 9px;55  letter-spacing: 0.22em;56  text-transform: uppercase;57  color: var(--peach-t2);58}5960.stk-version-corner {61  position: absolute;62  bottom: 7px;63  left: 0;64  right: 0;65  font-family: var(--font-mono);66  font-size: 7px;67  letter-spacing: 0;68  text-align: center;69  color: color-mix(in srgb, var(--peach-t0) 66%, transparent);70  pointer-events: none;71  white-space: nowrap;72  z-index: 1;73}7475.stk-deck {76  position: relative;77  height: min(462px, calc(100% - 36px));78  min-height: 462px;79  margin-top: 0;80}8182.stk-card {83  position: absolute;84  left: 0;85  right: 0;86  border-radius: var(--stack-card-radius);87  padding: 18px 18px 16px;88  overflow: hidden;89  cursor: pointer;90  transition:91    transform 380ms var(--stack-spring),92    height 380ms var(--stack-spring),93    box-shadow 280ms ease,94    opacity 220ms ease;95  box-shadow:96    0 1px 0 color-mix(in srgb, var(--peach-t0) 5%, transparent) inset,97    0 8px 20px rgba(0, 0, 0, 0.25);98  border: 1px solid color-mix(in srgb, var(--peach-t0) 6%, transparent);99  will-change: transform;100}101102.stk-card::after {103  content: "";104  position: absolute;105  inset: 0;106  border-radius: inherit;107  pointer-events: none;108  background:109    radial-gradient(110      120% 80% at 0% 0%,111      color-mix(in srgb, #fff 12%, transparent),112      transparent 50%113    );114}115116.stk-card.is-active {117  box-shadow:118    0 1px 0 color-mix(in srgb, var(--peach-t0) 8%, transparent) inset,119    0 18px 36px rgba(0, 0, 0, 0.42);120  cursor: default;121}122123.stk-card.is-focused {124  cursor: default;125}126127.stk-card.is-tab:hover {128  transform: translateY(calc(var(--stk-card-top) - 7px));129  box-shadow:130    0 1px 0 color-mix(in srgb, #fff 9%, transparent) inset,131    0 16px 32px rgba(0, 0, 0, 0.36),132    0 0 0 1px color-mix(in srgb, #fff 10%, transparent);133  transition:134    transform 90ms ease-out,135    box-shadow 90ms ease-out;136}137138.stk-card.is-concealed {139  opacity: 0;140  pointer-events: none;141}142143.stk-card-top {144  display: flex;145  justify-content: space-between;146  align-items: center;147  margin-bottom: 12px;148  position: relative;149  z-index: 1;150}151152.stk-card-num {153  font-family: var(--font-mono);154  font-size: 8.5px;155  letter-spacing: 0.26em;156  text-transform: uppercase;157  opacity: 0.7;158}159160.stk-card-icon {161  opacity: 0.85;162}163164.stk-card-title {165  position: relative;166  z-index: 1;167  margin: 6px 0 0;168  font-family: var(--font-display);169  font-style: italic;170  font-weight: 400;171  font-size: 26px;172  line-height: 1.2;173}174175.stk-card-lede {176  position: relative;177  z-index: 1;178  margin: 4px 0 0;179  font-family: var(--font-display);180  font-style: italic;181  font-size: 12.5px;182  line-height: 1.4;183  opacity: 0.72;184}185186.stk-card-body {187  position: relative;188  z-index: 1;189  height: calc(100% - 76px);190  margin-top: 14px;191  margin-right: -18px;192  padding-right: 18px;193  overflow-y: auto;194  overflow-x: hidden;195  padding-bottom: 16px;196  opacity: 0;197  scrollbar-width: thin;198  scrollbar-color: color-mix(in srgb, currentColor 28%, transparent) transparent;199  transition: opacity 200ms 100ms ease;200}201202.stk-card-body::-webkit-scrollbar {203  width: 3px;204}205206.stk-card-body::-webkit-scrollbar-thumb {207  background: color-mix(in srgb, currentColor 28%, transparent);208  border-radius: 2px;209}210211.stk-card-body::-webkit-scrollbar-track {212  background: transparent;213}214215.stk-card.is-active .stk-card-body {216  opacity: 1;217}218219.stk-card.is-tab .stk-card-top {220  display: none;221}222223.stk-card.is-tab {224  padding: 10px 16px 8px;225}226227.stk-card.is-tab .stk-card-title {228  font-size: 19px;229  line-height: 1;230  white-space: nowrap;231  overflow: hidden;232  text-overflow: ellipsis;233}234235.stk-card.is-tab .stk-card-lede,236.stk-card.is-tab .stk-card-body {237  display: none;238}239240.stk-card *:focus-visible {241  outline: 1px solid currentColor;242  outline-offset: 2px;243}244245.stk-pip {246  display: inline-block;247  width: 18px;248  height: 18px;249  border-radius: 50%;250  background: rgba(0, 0, 0, 0.18);251  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);252}253254.stk-pip.is-on {255  background: var(--peach-health-ok);256  box-shadow: 0 0 6px color-mix(in srgb, var(--peach-health-ok) 55%, transparent);257}258259/* Sync indicator light. Solid green = healthy pair, pulsing green = a sync is260   running, red = sync is not working. `is-idle` deliberately stays unlit261   rather than green: nothing has happened yet is not the same as fine. */262.stk-pip--sync { width: 10px; height: 10px; flex-shrink: 0; }263264.stk-pip--sync.is-busy {265  background: var(--peach-health-ok);266  box-shadow: 0 0 6px color-mix(in srgb, var(--peach-health-ok) 55%, transparent);267  animation: stk-pip-pulse 1600ms ease-in-out infinite;268}269270.stk-pip--sync.is-error {271  background: var(--peach-breach);272  box-shadow: 0 0 6px color-mix(in srgb, var(--peach-breach) 55%, transparent);273}274275@keyframes stk-pip-pulse {276  0%, 100% { opacity: 1; }277  50% { opacity: 0.35; }278}279280@media (prefers-reduced-motion: reduce) {281  .stk-pip--sync.is-busy { animation: none; }282}283284.stk-card .peach-settings-body {285  display: block;286  flex: none;287  min-height: 0;288  overflow: visible;289  padding: 0;290  background: transparent;291}292293.stk-card .peach-settings-group {294  margin: 0;295  padding: 0;296  border: 0;297  border-radius: 0;298  background: transparent;299  box-shadow: none;300  backdrop-filter: none;301  -webkit-backdrop-filter: none;302}303304.stk-card .peach-settings-group + .peach-settings-group {305  margin-top: 0;306}307308.stk-card .peach-settings-sub-label,309.stk-card .peach-settings-label {310  margin: 12px 0 4px;311  color: color-mix(in srgb, currentColor 58%, transparent);312}313314.stk-card .peach-settings-sub-label:first-child,315.stk-card .peach-settings-label:first-child {316  margin-top: 0;317}318319.stk-card .peach-settings-row,320.stk-card .peach-shortcut-row,321.stk-card .peach-history-row {322  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);323  color: currentColor;324}325326.stk-card .peach-settings-row--meta,327.stk-card .peach-settings-value,328.stk-card .peach-hint,329.stk-card .peach-settings-hint,330.stk-card .peach-feedback-meta,331.stk-card .peach-feedback-anon,332.stk-card .peach-feedback-intro,333.stk-card .peach-history-sub,334.stk-card .peach-history-footer,335.stk-card .peach-danger-card-copy {336  color: color-mix(in srgb, currentColor 70%, transparent);337}338339.stk-card .peach-toggle {340  --peach-accent: currentColor;341  border-color: color-mix(in srgb, currentColor 32%, transparent);342  background: color-mix(in srgb, currentColor 8%, transparent);343}344345.stk-card .peach-toggle.is-on {346  background: color-mix(in srgb, currentColor 28%, transparent);347  border-color: color-mix(in srgb, currentColor 50%, transparent);348}349350.stk-card .peach-toggle-knob {351  background: color-mix(in srgb, currentColor 58%, transparent);352}353354.stk-card .peach-toggle.is-on .peach-toggle-knob {355  background: currentColor;356}357358.stk-card .peach-btn--subtle,359.stk-card .peach-btn--ghost,360.stk-card .peach-btn--accent,361.stk-card .peach-shortcut-chip,362.stk-card .peach-shortcut-reset,363.stk-card .peach-feedback-chip,364.stk-card .peach-settings-license-copy,365.stk-card .peach-settings-license-toggle {366  color: currentColor;367  border-color: color-mix(in srgb, currentColor 28%, transparent);368  background: color-mix(in srgb, currentColor 8%, transparent);369}370371.stk-card .peach-btn--subtle:hover,372.stk-card .peach-btn--ghost:hover,373.stk-card .peach-btn--accent:hover,374.stk-card .peach-shortcut-chip:hover,375.stk-card .peach-feedback-chip:hover,376.stk-card .peach-feedback-chip.is-active {377  background: color-mix(in srgb, currentColor 16%, transparent);378}379380.stk-card .peach-feedback-chip.is-active {381  color: #221427;382  border-color: #f0daf8;383  background: #e8d4f0;384  box-shadow:385    0 0 0 1px color-mix(in srgb, #f0daf8 64%, transparent),386    0 0 16px color-mix(in srgb, #f0daf8 24%, transparent);387  font-weight: 700;388}389390.stk-card .peach-feedback-thanks {391  color: currentColor;392  border-color: color-mix(in srgb, currentColor 32%, transparent);393  background:394    linear-gradient(180deg, color-mix(in srgb, currentColor 12%, transparent), transparent),395    rgba(0, 0, 0, 0.18);396}397398.stk-card .peach-feedback-thanks-title {399  color: currentColor;400}401402.stk-card .peach-settings-input,403.stk-card .peach-settings-select,404.stk-card .peach-pro-key-inline-input,405.stk-card .peach-feedback-textarea {406  color: currentColor;407  border-color: color-mix(in srgb, currentColor 22%, transparent);408  background: rgba(0, 0, 0, 0.18);409}410411.stk-card .peach-settings-input::placeholder,412.stk-card .peach-pro-key-inline-input::placeholder,413.stk-card .peach-feedback-textarea::placeholder {414  color: color-mix(in srgb, currentColor 42%, transparent);415}416417.stk-card .peach-accent-picker {418  justify-content: flex-end;419  max-width: 160px;420}421422.stk-card .peach-accent-swatch {423  width: 20px;424  height: 20px;425}426427.stk-card .peach-accent-swatch.is-active {428  border-color: currentColor;429}430431.stk-card .peach-history-list {432  border-color: color-mix(in srgb, currentColor 18%, transparent);433}434435.stk-card .peach-danger-card {436  background: rgba(0, 0, 0, 0.18);437  border-color: color-mix(in srgb, currentColor 20%, transparent);438}439440.stk-card .peach-pro-upgrade,441.stk-card .peach-pro-active,442.stk-card .peach-pro-active-hero,443.stk-card .peach-pro-grid-item {444  background: transparent;445  border-color: color-mix(in srgb, currentColor 14%, transparent);446  box-shadow: none;447}448449.stk-card .peach-pro-grid {450  gap: 6px;451}452453.stk-card .peach-pro-grid-item {454  padding: 7px 0;455}456457.stk-card .peach-pro-headline,458.stk-card .peach-pro-active-title {459  color: currentColor;460}461462.stk-deck.is-open .stk-card.is-active .peach-pro-active {463  min-height: 0;464  padding: 0 4px 10px;465}466467.stk-deck.is-open .stk-card.is-active .peach-pro-active-hero {468  gap: 4px;469  padding: 8px 0 12px;470}471472.stk-deck.is-open .stk-card.is-active .peach-pro-active-mark-wrap {473  margin-bottom: 0;474  overflow: visible;475}476477.stk-deck.is-open .stk-card.is-active .peach-pro-active-mark {478  width: 50px;479  height: 50px;480}481482.stk-deck.is-open .stk-card.is-active .peach-pro-active-title {483  font-size: 25px;484  line-height: 1;485}486487.stk-deck.is-open .stk-card.is-active .peach-pro-active-since {488  line-height: 1.2;489}490491.stk-deck.is-open .stk-card.is-active .peach-settings-license,492.stk-deck.is-open .stk-card.is-active .peach-pro-active-features,493.stk-deck.is-open .stk-card.is-active .peach-pro-deactivate {494  display: none;495}496497.stk-card .peach-feedback-textarea {498  min-height: 116px;499}500501.peach-settings-overlay {502  --bg: #0C0A06;503  --s1: #131109;504  --s2: #1A1710;505  --t0: #F0E8D8;506  --t1: rgba(240, 232, 216, 0.50);507  --t2: rgba(240, 232, 216, 0.20);508  --t3: rgba(240, 232, 216, 0.07);509  --t4: rgba(240, 232, 216, 0.04);510  --surface-card: rgba(240, 232, 216, 0.02);511  --shell-accent-a: color-mix(in srgb, var(--peach-accent) 8%, transparent);512  --shell-accent-b: color-mix(in srgb, var(--peach-accent) 6%, transparent);513  --peach-bg: var(--bg);514  --peach-s1: var(--s1);515  --peach-s2: var(--s2);516  --peach-t0: var(--t0);517  --peach-t1: var(--t1);518  --peach-t2: var(--t2);519  --peach-t3: var(--t3);520  --peach-t4: var(--t4);521  --peach-bg-card: var(--surface-card);522  --peach-border: var(--peach-t3);523  --peach-text-dim: var(--peach-t1);524  background: var(--peach-bg);525  color: var(--peach-t0);526}527528/* Force html/body backgrounds dark when Settings is mounted so the popup529   frame chrome doesn't go white in light theme. */530html:has(.peach-settings-overlay),531html:has(.peach-settings-overlay) body {532  background: #0C0A06;533}534535/* Beat the .light .peach-btn--ghost rule in popup.css which would otherwise536   paint Settings buttons with the light-theme surface color. */537.peach-settings-overlay .stk-card .peach-btn--ghost:not(.peach-icon-btn) {538  background: color-mix(in srgb, var(--peach-t0) 8%, transparent);539  border-color: color-mix(in srgb, var(--peach-t0) 22%, transparent);540  color: var(--peach-t0);541}542.peach-settings-overlay .stk-card .peach-btn--ghost:not(.peach-icon-btn):hover {543  background: color-mix(in srgb, var(--peach-t0) 16%, transparent);544}545546.peach-settings-overlay .stk-shell {547  background: var(--peach-bg);548}549550.peach-settings-overlay .stk-card {551  box-shadow:552    0 1px 0 color-mix(in srgb, var(--peach-t0) 5%, transparent) inset,553    0 8px 20px rgba(0, 0, 0, 0.25);554}555556.peach-settings-overlay .stk-card.is-active {557  box-shadow:558    0 1px 0 color-mix(in srgb, var(--peach-t0) 8%, transparent) inset,559    0 18px 36px rgba(0, 0, 0, 0.42);560}561562[data-motion="reduce"] .stk-card,563[data-motion="reduce"] .stk-card-body {564  transition: none !important;565}566567/* ── Fan animation: measured card transitions during the Pro replay cycle ── */568.stk-deck.is-fanning .stk-card {569  transition:570    transform 140ms cubic-bezier(0.22, 1, 0.36, 1),571    height 140ms cubic-bezier(0.22, 1, 0.36, 1),572    box-shadow 140ms ease,573    opacity 140ms ease;574}575576/* ── Card shake when the pro card lands after the fan ── */577.stk-card.is-celebrating {578  transition: none !important;579  animation: stk-card-celebrate 880ms cubic-bezier(0.22, 1, 0.36, 1) both;580}581582@keyframes stk-card-celebrate {583  0%   { transform: translateY(var(--stk-card-top)); }584  24%  { transform: translateY(calc(var(--stk-card-top) - 10px)) rotate(-1.3deg); }585  48%  { transform: translateY(calc(var(--stk-card-top) + 5px)) rotate(0.9deg); }586  70%  { transform: translateY(calc(var(--stk-card-top) - 4px)) rotate(-0.45deg); }587  86%  { transform: translateY(calc(var(--stk-card-top) + 2px)); }588  100% { transform: translateY(var(--stk-card-top)); }589}590591/* ── Ambient sparkle dust on the Pro card when user is Pro ── */592.stk-deck.is-pro .stk-card[data-settings-card-id="pro"]::before {593  content: "";594  position: absolute;595  inset: 0;596  border-radius: inherit;597  pointer-events: none;598  background-image:599    radial-gradient(circle, rgba(255, 248, 220, 0.9) 0.5px, transparent 0.5px),600    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px),601    radial-gradient(circle, rgba(255, 238, 170, 0.6) 1px, transparent 1px);602  background-size: 38px 38px, 53px 47px, 71px 63px;603  background-position: 0 0, 19px 15px, 9px 30px;604  animation: stk-pro-dust 14s linear infinite;605  opacity: 0.11;606  z-index: 0;607  mix-blend-mode: screen;608}609610@keyframes stk-pro-dust {611  0%   { transform: translate(0, 0); }612  100% { transform: translate(53px, 47px); }613}614615[data-motion="reduce"] .stk-deck.is-pro .stk-card[data-settings-card-id="pro"]::before,616[data-motion="reduce"] .stk-card.is-celebrating {617  animation: none;618}619620/* ── Clickable card icon (easter egg trigger) ── */621.stk-card-icon--btn {622  background: transparent;623  border: 0;624  color: inherit;625  padding: 0;626  cursor: pointer;627  opacity: 0.85;628  display: inline-flex;629  align-items: center;630  justify-content: center;631}632633.stk-card-icon--btn:hover {634  opacity: 1;635}636637/* ── Chip highlight clipping fix ── */638/* .stk-card-body has overflow-x: hidden which clips the active chip's glow */639.stk-card .peach-feedback-chips {640  padding-left: 3px;641}