/* FL1GHT5 Network / Control Contre design foundation, v1.
   Joseph El-Kadi - FL1GHT5 Network. Load with the component styles.
   Public tokens describe roles; component-specific geometry stays in its own CSS. */
:root {
  color-scheme: light;
  --cc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cc-display-font:
    "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --cc-glass-clear: color-mix(in srgb, var(--cc-surface) 68%, transparent);
  --cc-glass-solid: var(--cc-surface);
  --cc-canvas: #e9eaed;
  --cc-surface: #f8f9fb;
  /* Reading planes stay quiet; glass is reserved for a layer above them. */
  --cc-surface-raised: var(--cc-surface);
  --cc-surface-quiet: color-mix(in srgb, var(--cc-surface) 96%, var(--cc-ink));
  --cc-ink: #1d1d1f;
  --cc-muted: #55555d;
  --cc-accent: #0066cc;
  --cc-accent-rgb: 0, 102, 204;
  --cc-palette-base: #e9eaed;
  --cc-accent-strong: #0056ad;
  --cc-accent-soft: #e4effa;
  --cc-accent-light: #79b5ee;
  --cc-on-accent: #fff;
  --cc-border: #cbd1d9;
  --cc-glass-edge: rgb(255 255 255 / 88%);
  --cc-glass-fill: rgb(248 249 251 / 88%);
  --cc-glass: linear-gradient(
    135deg,
    rgb(255 255 255 / 96%),
    rgb(248 249 251 / 88%) 55%,
    rgb(232 240 249 / 82%)
  );
  --cc-stage:
    radial-gradient(ellipse at 12% 5%, #ffffffc7, transparent 52%),
    linear-gradient(145deg, #e9eff6, #d3dfec 62%, #e5ecf3);
  --cc-shadow: 0 10px 28px -14px #26344942, inset 0 1px 0 #fff;
  --cc-shadow-ink: #263449;
  --cc-inset: inset 3px 3px 8px #2634491a, inset -3px -3px 8px #ffffffd9;
  --cc-focus: 0 0 0 3px #0066cc26, 0 6px 18px -5px #0066cc40;
  --cc-success: #187958;
  --cc-success-soft: #e5f4ed;
  --cc-warning: #986000;
  --cc-warning-soft: #fff2d9;
  --cc-danger: #b63645;
  --cc-danger-soft: #fbecef;
  --cc-night: #142235;
  --cc-night-muted: #bfd0e1;
  --cc-radius-sm: 10px;
  --cc-radius-control: 13px;
  --cc-radius-card: 20px;
  --cc-radius-surface: var(--cc-radius-card);
  --cc-radius-panel: 24px;
  --cc-space-1: 4px;
  --cc-space-2: 8px;
  --cc-space-3: 12px;
  --cc-space-4: 16px;
  --cc-space-6: 24px;
  --cc-space-8: 32px;
  --cc-space-section: 32px;
  --cc-space-row: 24px;
  --cc-space-action: 16px;
  --cc-type-body: 1rem;
  --cc-type-label: 0.875rem;
  --cc-type-metric: clamp(2.5rem, 4vw, 3rem);
  --cc-frost: 15px;
  --cc-ease: cubic-bezier(0.16, 0.82, 0.24, 1);
  --cc-duration-fast: 160ms;
  --cc-duration: 260ms;
  --cc-duration-slow: 480ms;
  /* Small controls use soft directional light, not a second outlined surface. */
  --cc-control-shade: color-mix(in srgb, var(--cc-shadow-ink) 22%, transparent);
  --cc-control-highlight: color-mix(
    in srgb,
    var(--cc-glass-edge) 55%,
    transparent
  );
  --cc-control-raised:
    3px 3px 8px var(--cc-control-shade),
    -3px -3px 8px var(--cc-control-highlight);
  --cc-control-inset:
    inset 2px 2px 5px var(--cc-control-shade),
    inset -2px -2px 5px var(--cc-control-highlight);
}
html.dark,
:root:has(body.dark),
:root[data-theme="dark"] {
  color-scheme: dark;
  --cc-canvas: #101925;
  --cc-surface: #1b293b;
  --cc-ink: #f1f5fa;
  --cc-muted: #bdc8d7;
  --cc-accent: #79b5ee;
  --cc-accent-rgb: 121, 181, 238;
  --cc-accent-strong: #a3cefa;
  --cc-accent-soft: #233e5a;
  --cc-on-accent: #10243a;
  --cc-border: #435469;
  --cc-glass-edge: #ffffff21;
  --cc-glass-fill: #1b293be8;
  --cc-glass: linear-gradient(135deg, #26374ae8, #1b293be8 55%, #192638e8);
  --cc-stage:
    radial-gradient(ellipse at 12% 5%, #42668c38, transparent 52%),
    linear-gradient(145deg, #18283a, #101925);
  --cc-shadow: 0 10px 28px -14px #0009, inset 0 1px 0 #ffffff18;
  --cc-shadow-ink: #000;
  --cc-inset: inset 3px 3px 8px #0005, inset -3px -3px 8px #ffffff0c;
  --cc-focus: 0 0 0 3px #79b5ee40, 0 6px 18px -5px #79b5ee50;
  --cc-success: #79d4af;
  --cc-success-soft: #153b30;
  --cc-warning: #f2c36f;
  --cc-warning-soft: #3c301b;
  --cc-danger: #ffa4af;
  --cc-danger-soft: #42242d;
}
body {
  font-family: var(--cc-font);
}
/* A shared, keyboard-accessible palette chooser. The colour is applied through tokens. */
.cc-theme-picker {
  position: relative;
  width: 100%;
  max-width: 260px;
  color: var(--cc-ink);
  font: 14px/1.4 var(--cc-font);
}
.cc-theme-picker,
.cc-theme-picker * {
  box-sizing: border-box;
}
.cc-theme-picker > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-control);
  background: var(--cc-glass);
  box-shadow: var(--cc-shadow);
  cursor: pointer;
  list-style: none;
}
.cc-theme-picker > summary::-webkit-details-marker {
  display: none;
}
.cc-theme-chip,
.cc-theme-options button i {
  flex: 0 0 auto;
  display: block;
  width: 30px;
  height: 30px;
  background: var(--swatch);
  border-radius: 10px;
  border: 1px solid #8886;
  box-shadow:
    inset 0 1px 2px #ffffff60,
    0 2px 4px #0002;
}
.cc-theme-caption {
  display: block;
  color: var(--cc-muted);
  font-size: 12px;
}
.cc-theme-current {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.cc-theme-picker > summary > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.cc-theme-mix-chips {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
}
.cc-theme-mix-chips:not(:has(i:not([hidden]))) {
  display: none;
}
.cc-theme-mix-chips i {
  width: 14px;
  height: 22px;
  margin-left: -3px;
  border: 1px solid var(--cc-surface);
  border-radius: 6px;
}
.cc-theme-mix-chips [hidden] {
  display: none;
}
.cc-theme-mix-chips:has(i:not([hidden])) + .cc-theme-chevron {
  margin-left: 2px;
}
.cc-theme-presets {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-border);
}
.cc-theme-presets > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cc-theme-presets > summary span {
  color: var(--cc-muted);
  font-size: 12px;
  font-weight: 400;
}
.cc-theme-presets .cc-theme-options {
  margin-top: 8px;
}
.cc-theme-chevron {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform var(--cc-duration) var(--cc-ease);
}
.cc-theme-picker[open] {
  z-index: 90;
}
.cc-theme-picker[open] .cc-theme-chevron {
  transform: rotate(225deg);
}
.cc-theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(460px, calc(100vw - 40px));
  max-height: min(var(--cc-picker-height, 540px), 70dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-card);
  background: var(--cc-surface);
  box-shadow:
    0 18px 60px -18px #0007,
    inset 0 1px 0 var(--cc-glass-edge);
  scrollbar-color: var(--cc-border) transparent;
}
/* Keep the commit action in view while the colour editor scrolls. */
.cc-theme-panel:has(.cc-mix-body) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cc-theme-panel:has(.cc-mix-body) > .cc-theme-heading {
  flex: 0 0 auto;
}
.cc-theme-panel > .cc-mix:has(.cc-mix-body) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cc-theme-panel .cc-mix-body {
  min-height: 0;
  padding: 4px;
  margin: -4px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--cc-border) transparent;
}
.cc-theme-panel .cc-mix-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: var(--cc-surface);
  -webkit-backdrop-filter: blur(var(--cc-frost, 15px));
  backdrop-filter: blur(var(--cc-frost, 15px));
}
.cc-theme-picker[open] .cc-theme-panel {
  animation: cc-palette-open 180ms var(--cc-ease) both;
}
.cc-theme-picker[data-placement="up"] .cc-theme-panel {
  top: auto;
  bottom: calc(100% + 10px);
}
.cc-theme-heading {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
}
.cc-theme-heading strong {
  color: var(--cc-ink);
  font-size: 16px;
  font-weight: 650;
}
.cc-theme-heading span,
.cc-theme-status {
  color: var(--cc-muted);
  font-size: 13px;
}
.cc-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.cc-theme-options button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--cc-radius-control);
  color: var(--cc-ink);
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--cc-duration-fast),
    box-shadow var(--cc-duration-fast);
}
.cc-theme-options button:hover {
  background: var(--cc-canvas);
}
.cc-theme-options button[aria-pressed="true"] {
  background: var(--cc-accent-soft);
  border-color: var(--cc-accent);
  box-shadow: var(--cc-inset);
}
.cc-theme-options button i {
  width: 26px;
  height: 32px;
  border-radius: 8px;
}
.cc-theme-options strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cc-theme-options small {
  display: block;
  font: 12px/1.5 var(--cc-font);
  color: var(--cc-muted);
}
.cc-theme-selected {
  margin-left: auto;
  color: var(--cc-accent);
  font-size: 14px;
  visibility: hidden;
}
.cc-theme-options button[aria-pressed="true"] .cc-theme-selected {
  visibility: visible;
}
.cc-theme-status {
  margin: 14px 0 0;
  line-height: 1.5;
}
.cc-theme-picker :is(summary, button):focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
}
/* Complete, coordinated themes. Only the list scrolls; preview and Apply stay visible. */
.cc-theme-picker[data-curated] .cc-theme-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(480px, calc(100vw - 40px));
}
.cc-theme-picker[data-curated] .cc-theme-heading {
  flex: 0 0 auto;
  margin-bottom: 12px;
}
.cc-theme-picker[data-curated] .cc-theme-options {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 4px;
  margin: -4px;
  scroll-padding: 4px;
}
.cc-theme-picker[data-curated] .cc-theme-options button {
  min-height: 76px;
  gap: 10px;
  padding: 10px 8px;
  align-items: center;
}
.cc-theme-picker[data-curated] .cc-theme-options button[aria-pressed="true"] {
  background: var(--cc-canvas);
  border-color: var(--cc-border);
  box-shadow: var(--cc-control-inset);
}
.cc-theme-colours {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  flex: 0 0 42px;
  height: 36px;
  border: 1px solid #8885;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px #0002;
}
.cc-theme-picker[data-curated] .cc-theme-colours i {
  width: auto;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 1px 1px #ffffff40;
}
.cc-theme-choice-label {
  flex: 1;
  min-width: 0;
}
.cc-theme-picker[data-curated] .cc-theme-options small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}
.cc-theme-picker[data-curated] .cc-theme-selected {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
}
.cc-theme-commit {
  flex: 0 0 auto;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--cc-border);
}
.cc-theme-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-control);
  background: var(--cc-interior-stage, var(--cc-glass));
  color: var(--cc-interior-ink, var(--cc-ink));
  box-shadow: var(--cc-interior-inset, var(--cc-inset));
}
.cc-theme-preview-mark {
  width: 8px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--cc-interior-glass, var(--cc-secondary-surface-paint));
  border: 1px solid var(--cc-border);
  border-radius: 5px;
}
.cc-theme-preview > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.cc-theme-preview strong {
  display: block;
  font-size: 14px;
}
.cc-theme-preview small {
  display: block;
  margin-top: 3px;
  color: var(--cc-interior-muted, var(--cc-muted));
  font-size: 11px;
}
.cc-theme-preview-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  background: var(--cc-pop-fill);
  color: var(--cc-on-pop);
  font-weight: 600;
}
.cc-theme-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
}
.cc-theme-footer .cc-theme-status {
  flex: 1;
  margin: 0;
  font-size: 11px;
}
.cc-theme-footer button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--cc-radius-control);
  background: var(--cc-pop-fill, var(--cc-accent));
  color: var(--cc-on-pop, var(--cc-on-accent));
  font: 600 12px/1.2 var(--cc-font);
  cursor: pointer;
}
@media (max-height: 560px) {
  .cc-theme-picker[data-curated] .cc-theme-panel {
    max-height: min(var(--cc-picker-height, 540px), calc(100dvh - 30px));
  }
  .cc-theme-picker[data-curated] .cc-theme-heading span,
  .cc-theme-preview small {
    display: none;
  }
  .cc-theme-preview {
    min-height: 44px;
    padding-block: 6px;
  }
}
.cc-theme-floating {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 95;
  width: 220px;
}
.cc-theme-floating .cc-theme-panel {
  inset: auto 0 calc(100% + 10px) auto;
}
.hero-copy > [data-cc-theme-picker] {
  margin-top: 24px;
}
@keyframes cc-palette-open {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 420px) {
  .cc-theme-panel {
    padding: 12px;
  }
  .cc-theme-options {
    gap: 4px;
  }
  .cc-theme-options button {
    padding: 8px 6px;
    gap: 7px;
  }
  .cc-theme-floating {
    bottom: 12px;
    right: 12px;
    width: 190px;
  }
}
@media (max-height: 480px) {
  .cc-theme-panel:has(.cc-mix-body) {
    padding: 10px 12px;
  }
  .cc-theme-panel:has(.cc-mix-body) .cc-theme-heading {
    margin-bottom: 10px;
  }
  .cc-theme-panel:has(.cc-mix-body) .cc-theme-heading > span {
    display: none;
  }
  .cc-theme-panel .cc-mix-footer {
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-theme-picker[open] .cc-theme-panel {
    animation: none;
  }
  .cc-theme-picker * {
    transition: none;
  }
}
html[data-motion="paused"] .cc-theme-picker[open] .cc-theme-panel,
html[data-ff-motion="off"] .cc-theme-picker[open] .cc-theme-panel {
  animation: none;
}
@media (forced-colors: active) {
  .cc-theme-options button[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
  .cc-theme-panel {
    border: 1px solid CanvasText;
  }
}
/* Opt-in primitives for new applications; no blanket card/button repainting. */
.cc-app {
  margin: 0;
  background: var(--cc-canvas);
  color: var(--cc-ink);
  font: 16px/1.55 var(--cc-font);
  -webkit-font-smoothing: antialiased;
}
.cc-app *,
.cc-app *::before,
.cc-app *::after {
  box-sizing: border-box;
}
.cc-surface {
  background: var(--cc-glass);
  color: var(--cc-ink);
  border: 1px solid var(--cc-glass-edge);
  border-radius: var(--cc-radius-card);
  box-shadow: var(--cc-shadow);
  -webkit-backdrop-filter: blur(var(--cc-frost, 15px));
  backdrop-filter: blur(var(--cc-frost, 15px));
}
.cc-panel {
  padding: var(--cc-space-6);
}
.cc-surface--clear {
  background: var(--cc-glass-clear);
}
.cc-surface--solid {
  background: var(--cc-glass-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.cc-surface--quiet {
  background: var(--cc-surface-quiet);
  box-shadow: var(--cc-inset);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.cc-metric {
  font-size: var(--cc-type-metric);
  font-weight: 450;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.cc-muted {
  color: var(--cc-muted);
}
.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cc-space-2);
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-control);
  background: var(--cc-surface-raised);
  color: var(--cc-ink);
  box-shadow: var(--cc-shadow);
  font: 600 14px/1.4 var(--cc-font);
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow var(--cc-duration) var(--cc-ease),
    background-color var(--cc-duration),
    transform var(--cc-duration-fast);
}
.cc-button--primary {
  background: var(--cc-accent);
  border-color: transparent;
  color: var(--cc-on-accent);
}
.cc-button:hover:not(:disabled) {
  box-shadow: var(--cc-control-raised);
}
.cc-button--primary:hover:not(:disabled) {
  background: var(--cc-accent-strong);
}
.cc-button:active:not(:disabled) {
  box-shadow: var(--cc-control-inset);
}
.cc-button:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
}
.cc-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.cc-field {
  display: grid;
  gap: var(--cc-space-2);
  color: var(--cc-ink);
  font: 500 14px/1.5 var(--cc-font);
}
.cc-field
  > :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
        [type="color"]
      ):not([type="file"]),
    select,
    textarea
  ) {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--cc-radius-control);
  background: var(--cc-surface);
  color: var(--cc-ink);
  box-shadow: var(--cc-inset);
  font: inherit;
}
.cc-field > :is(input, select, textarea):focus-visible {
  outline: none;
  box-shadow: var(--cc-inset), var(--cc-focus);
}
/* A raised plane is shaped by light and shade, not an outlined rectangle. */
:root
  body
  :is(
    .cc-surface,
    .cc-panel,
    .cc-action-note,
    .cc-action-draft,
    .cc-media-demo,
    .fa-card,
    .ic-bookmark-card,
    .ff-card
  ) {
  border-color: transparent;
  box-shadow: var(--cc-shadow);
}
:root
  body
  :is(
    .cc-action-button:not([data-danger="true"]),
    .cc-media-like,
    .view-code,
    .cc-button:not(.cc-button--primary)
  ) {
  border-color: transparent;
  box-shadow: var(--cc-control-raised);
}
/* Shared feedback across the library, workspace, templates and exported themes.
   Own only the lighting. Keep each control's colour, shape, layout and icon motion.
   Important shadows deliberately replace older component-specific glow/rim rules. */
:where(
  button,
  a[href],
  summary,
  [role="button"],
  [role="tab"],
  [role="menuitem"],
  [role="menuitemcheckbox"],
  [role="menuitemradio"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
) {
  border-radius: var(--cc-radius-control, 13px);
  transition:
    box-shadow 180ms var(--cc-ease),
    background-color 180ms,
    color 180ms;
}
:where(a[href]) {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html.dark,
:root:has(body.dark),
:root[data-theme="dark"],
:root[data-cc-scheme="dark"] {
  --cc-control-shade: color-mix(in srgb, var(--cc-shadow-ink) 34%, transparent);
  --cc-control-highlight: color-mix(
    in srgb,
    var(--cc-glass-edge) 45%,
    transparent
  );
}
@media (hover: hover) {
  :root
    body
    :is(
      button,
      a[href],
      summary,
      [role="button"],
      [role="tab"],
      [role="menuitem"],
      [role="menuitemcheckbox"],
      [role="menuitemradio"],
      input[type="button"],
      input[type="submit"],
      input[type="reset"]
    ):not(
      :disabled,
      [aria-disabled="true"],
      [data-cc-neumorphism="off"]
    ):hover {
    box-shadow: var(--cc-control-raised) !important;
  }
}
:root
  body
  :is(
    button,
    a[href],
    summary,
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [role="menuitemcheckbox"],
    [role="menuitemradio"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
  ):not(
    :disabled,
    [aria-disabled="true"],
    [data-cc-neumorphism="off"]
  ):focus-visible {
  box-shadow: var(--cc-control-raised) !important;
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
}
:root
  body
  :is(
    button,
    a[href],
    summary,
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [role="menuitemcheckbox"],
    [role="menuitemradio"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
  ):not(:disabled, [aria-disabled="true"], [data-cc-neumorphism="off"]):is(
    :active,
    [aria-pressed="true"],
    [aria-selected="true"],
    [aria-checked="true"],
    [aria-current="page"],
    [aria-current="step"],
    [aria-expanded="true"]
  ) {
  box-shadow: var(--cc-control-inset) !important;
}
/* Common application actions stay still; the depth change supplies the feedback.
   Purpose-built animated specimens retain their authored transform behaviour. */
:root
  body
  :is(
    .cc-button,
    .button,
    .ui-btn,
    .fa-btn,
    .ff-button,
    .w-button,
    .w-icon-button,
    .library-bookmark,
    .library-more,
    .library-options-toggle,
    .library-motion-toggle,
    .view-code,
    .primary-action,
    .header-cta,
    .clear-filters,
    .cc-context-item,
    .cc-theme-options button,
    .cc-theme-trigger,
    .cc-mix-apply
  ):is(:hover, :active) {
  translate: none;
  scale: none;
  transform: none;
}
:root
  body
  :is(
    button,
    a[href],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [role="menuitemcheckbox"],
    [role="menuitemradio"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
  ):is(:disabled, [aria-disabled="true"]):not([data-cc-neumorphism="off"]) {
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  :root
    body
    :is(
      button,
      a[href],
      summary,
      [role="button"],
      [role="tab"],
      [role="menuitem"],
      [role="menuitemcheckbox"],
      [role="menuitemradio"],
      input[type="button"],
      input[type="submit"],
      input[type="reset"]
    ) {
    transition-duration: 0s !important;
  }
}
@media (forced-colors: active) {
  :root
    body
    :is(
      button,
      a[href],
      summary,
      [role="button"],
      [role="tab"],
      [role="menuitem"],
      [role="menuitemcheckbox"],
      [role="menuitemradio"],
      input[type="button"],
      input[type="submit"],
      input[type="reset"]
    ):not(:disabled, [aria-disabled="true"], [data-cc-neumorphism="off"]):is(
      :hover,
      :active,
      :focus-visible,
      [aria-pressed="true"],
      [aria-selected="true"],
      [aria-checked="true"],
      [aria-current="page"],
      [aria-current="step"],
      [aria-expanded="true"]
    ) {
    box-shadow: none !important;
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-button {
    transition: none;
  }
}
@media (forced-colors: active) {
  .cc-surface,
  .cc-button {
    border: 1px solid ButtonText;
  }
  .cc-field > :is(input, select, textarea):focus-visible {
    outline: 2px solid Highlight;
  }
}
