/* Atlas admin component system — original, namespaced styles. */
.fa-preview {
  --fa-primary: var(--cc-accent, #0066cc);
  --fa-ink: var(--cc-ink, #1d1d1f);
  --fa-muted: var(--cc-muted, #55555d);
  --fa-border: var(--cc-border, #cbd1d9);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--cc-canvas, #e9eaed);
  color: var(--fa-ink);
  font:
    14px/1.45 system-ui,
    sans-serif;
  overflow: hidden;

  font-family: var(--cc-font, system-ui, sans-serif);
}
.fa-preview:before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    115deg,
    transparent 44%,
    #fff7 50%,
    transparent 56%
  );
  pointer-events: none;
  z-index: -1;
  animation: fa-sweep 9s ease-in-out infinite;
}
.fa-preview * {
  box-sizing: border-box;
}
.fa-stage {
  width: 100%;
  display: grid;
  place-items: center;
}
.fa-preview button,
.fa-preview input,
.fa-preview select,
.fa-preview textarea {
  font: inherit;
}
.fa-preview button,
.fa-preview summary {
  cursor: pointer;
}
.fa-preview :is(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--cc-accent, #0066cc);
  outline-offset: 3px;
}
.fa-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.fa-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fa-stack {
  display: grid;
  gap: 10px;
}
.fa-muted,
.fa-preview small {
  color: var(--fa-muted);
  font-size: 12px;
}
.fa-preview p {
  font-size: 13px;
  color: var(--fa-muted);
  margin: 5px 0 10px;
}
.fa-preview strong {
  font-size: 14px;
}
.fa-btn {
  border: 1px solid var(--fa-primary);
  background: var(--fa-primary);

  color: var(--cc-on-accent, #fff);

  border-radius: var(--cc-radius-control, 12px);
  padding: 10px 14px;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.fa-btn:hover {
  transform: translateY(-3px);
  background: var(--cc-accent-strong, #0056ad);

  box-shadow: 0 7px 16px
    color-mix(in srgb, var(--cc-accent, #0066cc) 22%, transparent);
}
.fa-btn:active {
  transform: translateY(1px);
}
.fa-outline {
  background: var(--cc-surface, #f8f9fb);
  color: var(--cc-ink, #1d1d1f);
  border-color: var(--cc-border, #cbd1d9);
}
.fa-outline:hover {
  color: var(--cc-accent-strong, #0056ad);
  background: var(--cc-surface, #f8f9fb);
}
.fa-quiet {
  background: transparent;
  color: var(--cc-accent, #0066cc);
  border-color: transparent;
}
.fa-quiet:hover {
  background: var(--cc-accent-soft, #e4effa);
  color: var(--cc-accent-strong, #0056ad);
}
.fa-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fa-border);

  background: var(--cc-surface, #f8f9fb);
  color: var(--cc-muted, #55555d);
  border-radius: 11px;
  font-size: 20px !important;
  transition:
    transform 0.2s,
    background 0.2s;
}
.fa-icon:hover {
  transform: translateY(-3px);
  background: var(--cc-accent-soft, #e4effa);
}
.fa-icon[aria-pressed="true"] {
  background: var(--cc-accent, #0066cc);

  color: var(--cc-on-accent, #fff);
}
.fa-card {
  width: min(100%, 300px);
  padding: 18px;

  background: var(--cc-glass, linear-gradient(135deg, #ffffffeb, #edf3f9d9));
  border: 1px solid var(--fa-border);

  border-radius: var(--cc-radius-surface, 20px);

  box-shadow: var(--cc-shadow, 0 10px 28px -14px #26344942, inset 0 1px 0 #fff);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.fa-preview:hover .fa-card,
.fa-preview:focus-within .fa-card {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #10182814;
}
.fa-card > strong {
  display: block;
}
.fa-kicker {
  color: var(--cc-muted, #55555d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.fa-stat {
  font-size: 27px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.05em;
  margin: 10px 0;
}
.fa-stat small {
  font-size: 12px;
  letter-spacing: 0;
}
.fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.fa-badge.good {
  background: var(--cc-success-soft, #e5f4ed);
  color: var(--cc-success, #187958);
}
.fa-badge.warning {
  background: var(--cc-warning-soft, #fff2d9);
  color: var(--cc-warning, #986000);
}
.fa-badge.error {
  background: var(--cc-danger-soft, #fbecef);
  color: var(--cc-danger, #b63645);
}
.fa-badge.info {
  background: var(--cc-accent-soft, #e4effa);
  color: var(--cc-accent, #0066cc);
}
.fa-spark,
.fa-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 45px;
  margin-top: 15px;
}
.fa-spark i,
.fa-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;

  background: color-mix(in srgb, var(--cc-accent, #0066cc) 36%, white);
  animation: fa-bars 0.7s ease both;
}
.fa-spark i:nth-child(1) {
  height: 30%;
}
.fa-spark i:nth-child(2) {
  height: 65%;
}
.fa-spark i:nth-child(3) {
  height: 45%;
}
.fa-spark i:nth-child(4) {
  height: 75%;
}
.fa-spark i:nth-child(5) {
  height: 60%;
}
.fa-spark i:nth-child(6) {
  height: 100%;
}
.fa-spark i:nth-child(7) {
  height: 85%;
}
.fa-bars {
  height: 80px;
}
.fa-bars i:nth-child(even) {
  background: var(--cc-accent, #0066cc);
}
.fa-meter {
  height: 8px;
  background: var(--cc-border, #cbd1d9);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}
.fa-meter i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--cc-accent, #0066cc);
  animation: fa-grow 0.9s ease both;
}
.fa-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--cc-accent-soft, #e4effa);
  color: var(--cc-accent, #0066cc);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.fa-avatar.large {
  width: 58px;
  height: 58px;
  font-size: 17px;
}
.fa-center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 7px;
}
.fa-center p {
  margin: 0;
}
.fa-timeline {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.fa-timeline > div {
  display: flex;
  gap: 10px;
  align-items: start;
}
.fa-timeline i {
  width: 10px;
  height: 10px;
  background: var(--cc-accent, #0066cc);
  border: 2px solid var(--cc-accent-soft, #e4effa);
  border-radius: 50%;
  margin-top: 4px;
}
.fa-timeline small {
  display: block;
}
.fa-field {
  display: grid;
  gap: 7px;
  width: min(100%, 270px);
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--cc-ink, #1d1d1f);
  font-size: 13px;
  font-weight: 700;
}
.fa-field legend {
  margin-bottom: 9px;
}
.fa-field small {
  font-weight: 400;
}
.fa-input {
  width: 100%;
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 9px;

  background: var(--cc-surface, #f8f9fb);
  color: var(--cc-ink, #1d1d1f);
  padding: 10px 12px;
  font-size: 13px !important;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.fa-input:focus {
  border-color: var(--cc-accent, #0066cc);
  box-shadow: 0 0 0 4px #0066cc1a;
}
.fa-input-wrap {
  position: relative;
}
.fa-input-wrap > span {
  position: absolute;
  left: 12px;
  top: 4px;
  font-size: 22px;
  color: var(--cc-muted, #55555d);
}
.fa-input-wrap .fa-input {
  padding-left: 35px;
}
.fa-success {
  border-color: #32d583;
}
.fa-error {
  border-color: #f97066;
}
.fa-text-good {
  color: var(--cc-success, #187958) !important;
}
.fa-text-error {
  color: var(--cc-danger, #b63645) !important;
}
.fa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.fa-check input,
.fa-range {
  accent-color: var(--cc-accent, #0066cc);
}
/* The row is the selection surface; its native input keeps keyboard and form behavior. */
.fa-check.fa-choice {
  --fa-choice-accent: var(--cc-accent, #0066cc);
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.fa-preview .fa-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.fa-preview .fa-choice > input:focus-visible {
  outline: none;
}
.fa-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  width: 100%;
  padding: 11px 12px 11px 15px;
  border: 1px solid #ffffffb3;
  border-radius: 11px;

  background: var(--cc-glass, linear-gradient(135deg, #ffffffeb, #edf3f9d9));

  color: var(--cc-ink, #1d1d1f);
  box-shadow:
    inset 0 1px #fff,
    0 2px 5px #1d1d1f08;
  transition:
    background-color 0.25s,
    box-shadow 0.3s,
    color 0.25s;

  border-color: var(--cc-glass-edge, #ffffffe0);
}
.fa-choice-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.fa-choice-state {
  flex: none;
  opacity: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  transition: opacity 0.25s;
}
.fa-choice:hover > input:not(:disabled) + .fa-choice-row {
  box-shadow:
    inset 0 1px #fff,
    0 4px 14px #1d1d1f14;
}
.fa-choice > input:checked + .fa-choice-row {
  background: linear-gradient(
    125deg,
    var(--cc-accent-soft, #e4effa),
    var(--cc-surface, #f8f9fb)
  );

  color: var(--cc-accent-strong, #0056ad);
  box-shadow:
    inset 3px 0 var(--fa-choice-accent),
    inset 0 1px #fff,
    0 2px 7px #1d1d1f0d;
}
.fa-choice > input:checked + .fa-choice-row .fa-choice-label {
  font-weight: 650;
}
.fa-choice > input:checked + .fa-choice-row .fa-choice-state {
  opacity: 1;
}
.fa-choice > input:focus-visible + .fa-choice-row {
  box-shadow:
    inset 0 1px #fff,
    0 0 0 3px color-mix(in srgb, var(--fa-choice-accent) 16%, transparent),
    0 6px 18px -5px color-mix(in srgb, var(--fa-choice-accent) 28%, transparent);
}
.fa-choice > input:checked:focus-visible + .fa-choice-row {
  box-shadow:
    inset 3px 0 var(--fa-choice-accent),
    inset 0 1px #fff,
    0 0 0 3px color-mix(in srgb, var(--fa-choice-accent) 16%, transparent),
    0 6px 18px -5px color-mix(in srgb, var(--fa-choice-accent) 28%, transparent);
}
.fa-choice > input:disabled + .fa-choice-row {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (forced-colors: active) {
  .fa-choice-row {
    border-color: ButtonText;
  }
  .fa-choice > input:checked + .fa-choice-row {
    forced-color-adjust: none;
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
  .fa-choice > input:focus-visible + .fa-choice-row {
    outline: 2px solid Highlight;
    outline-offset: 3px;
  }
  .fa-choice > input:disabled + .fa-choice-row {
    color: GrayText;
    border-color: GrayText;
  }
}
.fa-switch {
  appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 99px;
  background: var(--cc-border, #cbd1d9);
  transition: background 0.2s;
}
.fa-switch:checked {
  background: var(--cc-accent, #0066cc);
}
.fa-switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px #0003;
}
.fa-switch:checked:after {
  transform: translateX(18px);
}
.fa-range {
  width: 100%;
}
.fa-alert {
  display: flex;
  align-items: start;
  gap: 10px;
  width: min(100%, 300px);
  padding: 14px;
  background: var(--cc-accent-soft, #e4effa);
  border: 1px solid #b9d3eb;
  color: var(--cc-accent, #0066cc);
  border-radius: 12px;
}
.fa-alert p {
  margin: 3px 0 0;
  color: var(--cc-accent, #0066cc);
}
.fa-alert button {
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.fa-segment {
  display: flex;
  background: var(--cc-canvas, #e9eaed);
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 10px;
  padding: 4px;
  gap: 3px;
}
.fa-segment button {
  border: 0;
  background: transparent;
  color: var(--cc-muted, #55555d);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
}
.fa-segment button[aria-pressed="true"] {
  background: var(--cc-surface, #f8f9fb);
  color: var(--cc-accent-strong, #0056ad);
  box-shadow: 0 1px 4px #10182820;
}
.fa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cc-muted, #55555d);
  font-size: 13px;
}
.fa-breadcrumb button {
  border: 0;
  background: none;
  color: var(--cc-muted, #55555d);
  padding: 5px;
}
.fa-breadcrumb strong {
  color: var(--cc-ink, #1d1d1f);
  font-size: 13px;
}
.fa-pages {
  display: flex;
  gap: 5px;
}
.fa-pages button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--cc-border, #cbd1d9);

  background: var(--cc-surface, #f8f9fb);
  border-radius: 9px;
  color: var(--cc-muted, #55555d);
}
.fa-pages button[aria-current="page"] {
  background: var(--cc-accent, #0066cc);

  color: var(--cc-on-accent, #fff);
  border-color: var(--cc-accent, #0066cc);
}
.fa-details summary {
  font-weight: 700;
}
.fa-details p {
  margin: 12px 0 0;
}
.fa-dropdown {
  position: relative;
}
.fa-dropdown summary {
  list-style: none;

  background: var(--cc-surface, #f8f9fb);
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 9px;
  padding: 10px 14px;
  min-width: 140px;
  font-weight: 700;
}
.fa-dropdown summary::-webkit-details-marker {
  display: none;
}
.fa-dropdown summary span {
  float: right;
}
.fa-dropdown > div {
  position: relative;
  z-index: 3;
  margin-top: 6px;
  width: 100%;

  background: var(--cc-glass, linear-gradient(135deg, #ffffffeb, #edf3f9d9));
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 10px;
  padding: 5px;

  box-shadow: var(--cc-shadow, 0 10px 28px -14px #26344942, inset 0 1px 0 #fff);
}
.fa-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;

  background: transparent;
  border-radius: 6px;
  padding: 8px;
  color: var(--cc-ink, #1d1d1f);
}
.fa-dropdown button:hover {
  background: var(--cc-accent-soft, #e4effa);
}
.fa-dialog {
  border: 0;
  border-radius: 16px;
  padding: 24px;
  color: var(--cc-ink, #1d1d1f);
  max-width: 380px;

  box-shadow: 0 24px 70px #17283e40;

  background: var(--cc-glass, linear-gradient(135deg, #ffffffeb, #edf3f9d9));
}
.fa-dialog::backdrop {
  background: #10182899;
}
.fa-dialog h3 {
  margin: 0 0 10px;
}
.fa-tooltip {
  position: relative;
  overflow: visible;
}
.fa-tooltip span {
  position: absolute;
  bottom: calc(100% + 10px);

  background: var(--cc-night, #142235);
  color: white;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.fa-tooltip:hover span,
.fa-tooltip:focus-visible span {
  opacity: 1;
}
.fa-avatars {
  display: flex;
  padding-left: 8px;
}
.fa-avatars span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -8px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--cc-accent-soft, #e4effa);
  color: var(--cc-accent, #0066cc);
  font-size: 11px;
  font-weight: 800;
}
.fa-avatars span:nth-child(2) {
  background: var(--cc-surface, #f8f9fb);

  color: var(--cc-ink, #1d1d1f);
}
.fa-avatars span:nth-child(3) {
  background: var(--cc-accent-soft, #e4effa);

  color: var(--cc-accent-strong, #0056ad);
}
.fa-avatars span:last-child {
  background: var(--cc-canvas, #e9eaed);
  color: var(--cc-muted, #55555d);
}
.fa-table-wrap {
  width: 100%;
  overflow: auto;

  background: var(--cc-surface, #f8f9fb);
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 12px;
}
.fa-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.fa-table th,
.fa-table td {
  padding: 10px;
  border-bottom: 1px solid var(--cc-canvas, #e9eaed);
  white-space: nowrap;
}
.fa-table th {
  background: var(--cc-surface, #f8f9fb);
  color: var(--cc-muted, #55555d);
}
.fa-table tr:last-child td {
  border: 0;
}
.fa-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;

  background: var(--cc-accent-soft, #e4effa);
  color: var(--cc-accent, #0066cc);
  border-radius: 12px;
  font-size: 24px;
}
.fa-stepper {
  display: flex;
  align-items: center;
  gap: 14px;

  background: var(--cc-surface, #f8f9fb);
  border: 1px solid var(--cc-border, #cbd1d9);
  border-radius: 10px;
  padding: 4px;
}
.fa-stepper button {
  border: 0;
  background: var(--cc-canvas, #e9eaed);
  border-radius: 7px;
  width: 32px;
  height: 32px;
  color: var(--cc-ink, #1d1d1f);
}
.fa-upload {
  width: min(100%, 270px);
  display: grid;
  gap: 6px;
  text-align: center;
  padding: 20px;
  border: 1px dashed #b4c0d7;
  border-radius: 12px;

  background: var(--cc-surface, #f8f9fb);
  cursor: pointer;
}
.fa-upload span {
  font-size: 12px;
  color: var(--cc-muted, #55555d);
}
.fa-upload input {
  max-width: 100%;
  font-size: 12px;
}
.fa-skeleton {
  height: 10px;
  border-radius: 8px;

  background: linear-gradient(
    90deg,
    var(--cc-border, #cbd1d9),
    var(--cc-surface, #f8f9fb),
    var(--cc-border, #cbd1d9)
  );
  background-size: 200% 100%;
  animation: fa-shimmer 1.5s linear infinite;
}
.fa-spinner {
  width: 43px;
  height: 43px;
  border: 4px solid var(--cc-border, #cbd1d9);

  border-top-color: var(--cc-accent, #0066cc);
  border-radius: 50%;
  animation: fa-spin 0.8s linear infinite;
}
.fa-toast {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  right: 20px;

  background: var(--cc-night, #142235);
  color: white;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px #10182833;
  font: 600 13px system-ui;
}
.fa-note {
  font-size: 12px;
  color: var(--cc-success, #187958);
}
@keyframes fa-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fa-shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fa-grow {
  from {
    width: 0;
  }
}
@keyframes fa-bars {
  from {
    transform: scaleY(0.2);
    transform-origin: bottom;
  }
}
@keyframes fa-sweep {
  0%,
  30% {
    transform: translateX(-35%);
  }
  70%,
  100% {
    transform: translateX(35%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fa-preview,
  .fa-preview *,
  .fa-preview:before,
  .fa-preview:after,
  .fa-preview *:before,
  .fa-preview *:after {
    animation: none !important;
    transition: none !important;
  }
  .fa-preview:hover .fa-card,
  .fa-preview:focus-within .fa-card {
    transform: none;
  }
}
