.cfs-eyebrow {
  margin: 0 0 6px;
  color: var(--gold, #c9a84c);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#commander-deck-audit-sharing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 14px;
  background: rgba(201, 168, 76, .055);
}
#commander-deck-audit-sharing[hidden] { display: none; }
#commander-deck-audit-sharing h2 { margin: 0; font-size: 20px; }
#commander-deck-audit-sharing p:last-child { margin: 6px 0 0; color: var(--muted, #aaa7a0); }
.cfs-share-trigger {
  position: relative;
  isolation: isolate;
  min-width: 178px;
  overflow: hidden;
  border-color: #8f6bff !important;
  background: linear-gradient(110deg, #6d3bf0, #a06bff 45%, #6d3bf0) !important;
  background-size: 220% 100% !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0 rgba(160, 107, 255, .45), 0 10px 28px rgba(109, 59, 240, .3);
  animation: cfs-share-glow 5.5s ease-in-out infinite, cfs-share-shimmer 6.5s linear infinite;
}
.cfs-share-trigger::after {
  content: "↗";
  margin-left: 8px;
  font-size: 1.05em;
}
.cfs-share-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(160, 107, 255, .16), 0 14px 34px rgba(109, 59, 240, .42);
}
@keyframes cfs-share-glow {
  0%, 16%, 100% { box-shadow: 0 0 0 0 rgba(160, 107, 255, .45), 0 10px 28px rgba(109, 59, 240, .3); }
  8% { box-shadow: 0 0 0 8px rgba(160, 107, 255, 0), 0 14px 34px rgba(109, 59, 240, .45); }
}
@keyframes cfs-share-shimmer {
  0%, 34% { background-position: 100% 0; }
  52%, 100% { background-position: 0 0; }
}
.cfs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
}
.cfs-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 18px;
  background: #111115;
  color: #ecebe6;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .6);
}
.cfs-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cfs-dialog h2 { margin: 0; font-size: 26px; }
.cfs-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: #19191e;
  color: #ecebe6;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.cfs-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 0; }
.cfs-preview { min-height: 460px; padding: 32px; background: radial-gradient(circle at 90% 5%, rgba(201, 168, 76, .12), transparent 50%), #0b0b0e; }
.cfs-preview h3 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.cfs-preview-commander { color: #aaa7a0; }
.cfs-preview-insight { display: block; margin: 70px 0 22px; font-size: 24px; line-height: 1.25; }
.cfs-preview-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cfs-preview-scores span { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; background: #17171c; }
.cfs-preview-scores strong { color: #efd58b; overflow-wrap: anywhere; }
.cfs-preview-scores small { color: #85827b; }
.cfs-preview-privacy { margin-top: 18px; color: #85827b; font-size: 12px; }
.cfs-form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.cfs-public-fields,
.cfs-toggle,
.cfs-field,
.cfs-confirm { padding: 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 11px; background: #18181d; }
.cfs-public-fields p { margin: 4px 0 0; color: #aaa7a0; font-size: 12px; }
.cfs-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.cfs-toggle span { display: grid; gap: 4px; }
.cfs-toggle small { color: #85827b; }
.cfs-toggle input { width: 20px; height: 20px; accent-color: #c9a84c; }
.cfs-field { display: grid; gap: 7px; font-weight: 700; }
.cfs-field select { min-height: 42px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: #0f0f12; color: #ecebe6; font: inherit; }
.cfs-confirm { display: flex; gap: 10px; color: #efd58b; font-size: 12px; }
.cfs-confirm[hidden] { display: none; }
.cfs-confirm input { flex: none; margin-top: 3px; accent-color: #c9a84c; }
.cfs-status { min-height: 22px; margin: 0; color: #efd58b; font-size: 12px; }
.cfs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cfs-revoke { color: #f08a8a; border-color: rgba(232, 112, 112, .35); background: rgba(232, 112, 112, .08); }
.cfs-success { padding: 32px; }
.cfs-success h2 { font-size: 34px; }
.cfs-success > p:not(.cfs-eyebrow) { color: #aaa7a0; }
.cfs-link { display: grid; gap: 8px; margin: 22px 0; font-weight: 750; }
.cfs-link input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; background: #0f0f12; color: #ecebe6; }
.cfs-social {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(201, 168, 76, .28);
  border-radius: 12px;
  background: rgba(201, 168, 76, .055);
}
.cfs-social h3 { margin: 0; font-size: 17px; }
.cfs-social p { margin: 5px 0 14px; color: #aaa7a0; font-size: 13px; }
.cfs-social-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.cfs-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: #1b1b21;
  color: #ecebe6;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.cfs-social-button:hover { border-color: rgba(239, 213, 139, .65); background: #24231f; }
.cfs-social-button--native { border-color: #c9a84c; background: #c9a84c; color: #100e08; }
.cfs-modal-open { overflow: hidden; }
.cfs-challenge-banner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  gap: 20px;
  align-items: start;
  max-height: 25vh;
  margin: 18px 0;
  padding: 18px 22px;
  overflow: auto;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 14px;
  background: rgba(201, 168, 76, .07);
}
.cfs-challenge-banner strong { font-size: 20px; }
.cfs-challenge-banner p:not(.cfs-eyebrow) { margin: 5px 0; color: #aaa7a0; }
.cfs-challenge-banner small { color: #85827b; }
.cfs-challenge-banner button { border: 0; background: none; color: #aaa7a0; font-size: 24px; cursor: pointer; }
.cfs-comparison { width: 100%; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cfs-comparison h2 { margin: 0; }
.cfs-comparison > p:not(.cfs-eyebrow) { color: #aaa7a0; }
.cfs-comparison-grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(70px, 10fr) minmax(0, 45fr); gap: 12px; }
.cfs-comparison-side,
.cfs-comparison-diffs { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: #17171c; }
.cfs-comparison-side span,
.cfs-comparison-diffs span { min-height: 24px; color: #aaa7a0; }
.cfs-comparison-diffs { text-align: center; color: #efd58b; }

@media (max-width: 820px) {
  .cfs-layout { grid-template-columns: minmax(0, 5fr) minmax(300px, 3fr); }
  .cfs-preview { min-height: 420px; padding: 24px; }
  .cfs-preview-insight { margin-top: 50px; }
}
@media (max-width: 680px) {
  #commander-deck-audit-sharing { align-items: stretch; flex-direction: column; }
  .cfs-backdrop { place-items: end center; padding: 0; }
  .cfs-dialog { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .cfs-layout { display: flex; flex-direction: column; }
  .cfs-preview { min-height: auto; padding: 20px; }
  .cfs-preview-insight { margin: 28px 0 16px; font-size: 20px; }
  .cfs-preview-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfs-form { padding: 18px; }
  .cfs-success { padding: 22px 18px; }
  .cfs-success h2 { font-size: 28px; }
  .cfs-share-trigger { width: 100%; }
  .cfs-social-button { flex: 1 1 120px; }
  .cfs-comparison-grid { grid-template-columns: 1fr; }
  .cfs-comparison-diffs { order: 3; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .cfs-share-trigger { animation: none; }
}
