:root{
  --gct-primary:#2f7f73;
  --gct-bg:#ffffff;
  --gct-muted:#6b7280;
  --gct-border:#e5e7eb;
}

.gct-selector,.gct-exam{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/*
 * NOTE: Avoid using `all: revert` here.
 * It breaks Font Awesome icons (they render via ::before) and other pseudo-element based UI.
 * We isolate by hardening the specific components we render (buttons/selects/cards) instead.
 */

/* Branded UI base isolation */
.gct-ui{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  isolation: isolate;
  contain: layout paint style;
}
.gct-ui *,
.gct-ui *::before,
.gct-ui *::after{
  box-sizing: border-box;
}
.gct-ui button,
.gct-ui input,
.gct-ui select,
.gct-ui textarea{
  font: inherit;
  letter-spacing: normal !important;
  text-transform: none !important;
  background-image: none !important;
}

.gct-ui .gct-result__notice{
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
  background: rgba(15,23,42,.03);
  font-size: 12px;
  font-style: italic;
}
.dark .gct-ui .gct-result__notice,
.gct-ui.gct-dark .gct-result__notice{
  border-color: rgba(255,255,255,.12);
  background: rgba(148,163,184,.08);
}

.gct-ui .gct-section-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: rgba(15,23,42,.02);
}
.dark .gct-ui .gct-section-row,
.gct-ui.gct-dark .gct-section-row{
  border-color: rgba(255,255,255,.12);
  background: rgba(148,163,184,.06);
}

.gct-ui .gct-section-row + .gct-section-row{
  margin-top: 8px;
}

.gct-ui .gct-section-row__title{
  font-weight: 800;
  line-height: 1.2;
}

.gct-ui .gct-section-row__meta{
  font-size: 11px;
  font-weight: 900;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gct-ui .gct-section-row--reserve{
  margin-left: 18px;
  border-style: dashed;
  border-color: rgba(217,119,6,.24);
  background: rgba(255,251,235,.72);
}

.gct-ui .gct-section-row--reserve + .gct-section-row--reserve{
  margin-top: 6px;
}

.dark .gct-ui .gct-section-row--reserve,
.gct-ui.gct-dark .gct-section-row--reserve{
  border-color: rgba(251,191,36,.26);
  background: rgba(146,64,14,.16);
}

.dark .gct-ui .gct-section-row__meta,
.gct-ui.gct-dark .gct-section-row__meta{
  color: #fbbf24;
}

.gct-ui .gct-section-row__chips{
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gct-ui .gct-section-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  min-width: 120px;
  justify-content: center;
}
.dark .gct-ui .gct-section-chip,
.gct-ui.gct-dark .gct-section-chip{
  border-color: rgba(255,255,255,.12);
  background: rgba(148,163,184,.08);
}

.gct-ui .gct-section-chip .fa-solid{
  opacity: .85;
}

.gct-ui .gct-section-chip__value{
  font-weight: 900;
  font-size: 14px;
}

.gct-ui .gct-section-chip__label{
  font-size: 12px;
  opacity: .85;
}

.gct-ui .gct-section-chip--ok{
  background: rgba(0,0,0,.02);
}

.gct-ui .gct-section-chip--bad{
  background: rgba(0,0,0,.02);
}

.gct-ui .gct-section-chip--neutral{
  background: rgba(0,0,0,.02);
}

@media (max-width: 520px){
  .gct-ui .gct-section-row{
    flex-direction: column;
    align-items: stretch;
  }
  .gct-ui .gct-section-row__chips{
    justify-content: flex-start;
  }
  .gct-ui .gct-section-chip{
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Branded helpers (must live in the file so they also apply inside Shadow DOM) */
.gct-ui .badge-shape{
  clip-path: polygon(0% 0%,100% 0%,100% 85%,50% 100%,0% 85%);
}
.gct-ui .custom-scroll::-webkit-scrollbar{ width: 6px; }
.gct-ui .custom-scroll::-webkit-scrollbar-track{ background: transparent; }
.gct-ui .custom-scroll::-webkit-scrollbar-thumb{ background-color: #cbd5e1; border-radius: 20px; }
.gct-ui.gct-dark .custom-scroll::-webkit-scrollbar-thumb{ background-color: #475569; }

/* Scoped reset to avoid theme styles bleeding into the widget */
.gct-ui :where(h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd){
  margin: 0;
}
.gct-ui :where(ul,ol){
  margin: 0;
  padding: 0;
}
.gct-ui :where(a){
  color: inherit;
  text-decoration: none;
}
.gct-ui :where(button){
  cursor: pointer;
}
.gct-ui :where(button,input,select,textarea){
  letter-spacing: normal;
  text-transform: none;
}
.gct-ui :where(img,svg,video,canvas){
  display: block;
  max-width: 100%;
  height: auto;
}

/* Fallback (no Tailwind): keep widget readable and isolated */
.gct-ui.gct-no-tw [data-gct-main]{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  min-height: 85vh;
}
@media (min-width: 1024px){
  .gct-ui.gct-no-tw [data-gct-main]{
    flex-direction: row !important;
    height: 800px;
  }
}

.gct-ui.gct-no-tw [data-gct-left]{
  background: #094046;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 260px !important;
  display: block !important;
}
.gct-ui.gct-no-tw [data-gct-left]::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,64,70,1), rgba(9,64,70,.80), rgba(9,64,70,.40));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.gct-ui.gct-no-tw [data-gct-left]::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,0));
  opacity: .60;
  pointer-events: none;
}
.gct-ui.gct-no-tw [data-gct-left] > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .50;
  mix-blend-mode: overlay;
  transform: scale(1);
  transition: transform .7s ease;
}
.gct-ui.gct-no-tw [data-gct-left]:hover > img{ transform: scale(1.05); }

.gct-ui.gct-no-tw [data-gct-left] > .relative{
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  padding-bottom: 48px;
}
.gct-ui.gct-no-tw [data-gct-left] > .relative > div:first-child{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.gct-ui.gct-no-tw [data-gct-left] > .relative > div:first-child i{
  color: #DAD900;
  font-size: 22px;
}

.gct-ui.gct-no-tw [data-gct-left] h1{ color: #ffffff; margin-bottom: 16px; }
.gct-ui.gct-no-tw [data-gct-left] p{ color: rgba(229,231,235,.92); font-size: 16px; max-width: 28rem; }
@media (min-width: 1024px){
  .gct-ui.gct-no-tw [data-gct-left]{
    flex: 0 0 41.6667% !important;
    width: 41.6667% !important;
    min-height: auto !important;
    height: auto;
  }
}

.gct-ui.gct-no-tw [data-gct-right]{
  background: #ffffff;
  color: #111827;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}
@media (min-width: 1024px){
  .gct-ui.gct-no-tw [data-gct-right]{
    flex: 1 1 58.3333% !important;
    width: 58.3333% !important;
  }
}

.gct-ui.gct-no-tw .custom-scroll{
  padding: 24px 0;
  overflow: auto;
}
@media (min-width: 768px){
  .gct-ui.gct-no-tw .custom-scroll{ padding: 40px 0; }
}

/* Right panel headings & intro */
.gct-ui.gct-no-tw [data-gct-right] header:not(.gct-exam-header){
  margin-bottom: 32px;
  padding-right: 48px;
}
.gct-ui.gct-no-tw [data-gct-right] header:not(.gct-exam-header) h2{
  color: #094046;
  margin-bottom: 8px;
}
.dark .gct-ui.gct-no-tw [data-gct-right] header:not(.gct-exam-header) h2,
.gct-ui.gct-dark.gct-no-tw [data-gct-right] header:not(.gct-exam-header) h2{
  color: #ffffff;
}
.gct-ui.gct-no-tw [data-gct-right] header:not(.gct-exam-header) p{
  color: #6b7280;
  font-size: 14px;
}

/* Form spacing */
.gct-ui.gct-no-tw form[data-gct-form]{
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Section header with divider */
.gct-ui.gct-no-tw form[data-gct-form] .gct-section-head{
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.gct-ui.gct-no-tw form[data-gct-form] .gct-section-head > div{
  height: 1px;
  background: #e5e7eb;
  flex: 1 1 auto;
  margin-left: 12px;
}
.dark .gct-ui.gct-no-tw form[data-gct-form] .gct-section-head > div,
.gct-ui.gct-dark.gct-no-tw form[data-gct-form] .gct-section-head > div{
  background: #334155;
}

/* Two-column grid for select inputs */
.gct-ui.gct-no-tw form[data-gct-form] > section.grid{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  padding-top: 8px;
  width: 100%;
}
@media (min-width: 768px){
  .gct-ui.gct-no-tw form[data-gct-form] > section.grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Labels */
.gct-ui.gct-no-tw label{
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Step heading used for fields (2/3) */
.gct-ui .gct-step-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 0;
}
.gct-ui .gct-step-num{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(9,64,70,.10);
  color: #094046;
}
.gct-ui .gct-step-text{
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
}
.gct-ui.gct-dark .gct-step-num{
  background: rgba(218,217,0,.12);
  color: #DAD900;
}
.gct-ui.gct-dark .gct-step-text{
  color: #94a3b8;
}

/* Reliable field labels (avoid mobile overlap if utility classes are missing/overridden) */
.gct-ui .gct-field-label{
  display: block !important;
  margin: 0 0 8px 0 !important;
  position: relative;
  z-index: 2;
}

/* Dark toggle button */
.gct-ui.gct-no-tw [data-gct-action="toggle-dark"]{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dark .gct-ui.gct-no-tw [data-gct-action="toggle-dark"],
.gct-ui.gct-dark.gct-no-tw [data-gct-action="toggle-dark"]{
  background: #1f2937;
  color: #d1d5db;
  border-color: rgba(255,255,255,.08);
}

.gct-ui.gct-no-tw h1{ font-size: 40px !important; line-height: 1.05 !important; font-weight: 800 !important; }
.gct-ui.gct-no-tw h2{ font-size: 28px !important; line-height: 1.15 !important; font-weight: 800 !important; }
.gct-ui.gct-no-tw h3{ font-size: 12px !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #6b7280 !important; font-weight: 800 !important; }

/* Basic color helpers used in markup */
.gct-ui.gct-no-tw .text-primary{ color: #094046 !important; }
.gct-ui.gct-no-tw .text-accent{ color: #DAD900 !important; }
.gct-ui.gct-no-tw .bg-primary{ background-color: #094046 !important; }
.gct-ui.gct-no-tw .bg-surface-light{ background-color: #ffffff !important; }
.gct-ui.gct-no-tw .bg-surface-dark{ background-color: #1e293b !important; }

.dark .gct-ui.gct-no-tw [data-gct-right] h2,
.gct-ui.gct-dark.gct-no-tw [data-gct-right] h2{ color: #ffffff !important; }

.gct-ui.gct-no-tw [data-gct-tracks]{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 768px){
  .gct-ui.gct-no-tw [data-gct-tracks]{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gct-ui.gct-no-tw [data-gct-tracks] label{
  display: block;
  position: relative;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input + div{
  position: relative;
  min-height: 140px;
  border-radius: 20px;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: 0 10px 30px rgba(2,6,23,.06) !important;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  filter: none !important;
  -webkit-filter: none !important;
}
.dark .gct-ui.gct-no-tw [data-gct-tracks] label > input + div,
.gct-ui.gct-dark.gct-no-tw [data-gct-tracks] label > input + div{
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
}
.gct-ui.gct-no-tw [data-gct-tracks] label:hover > input + div{
  filter: none !important;
  border-color: rgba(15,23,42,.22) !important;
  transform: translateY(-1px);
}
.dark .gct-ui.gct-no-tw [data-gct-tracks] label:hover > input + div,
.gct-ui.gct-dark.gct-no-tw [data-gct-tracks] label:hover > input + div{
  border-color: rgba(255,255,255,.20) !important;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input:checked + div{
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #094046 !important;
  box-shadow: 0 18px 40px rgba(9,64,70,.12), 0 0 0 2px rgba(9,64,70,.22) !important;
  transform: translateY(-2px);
  filter: none !important;
  -webkit-filter: none !important;
}
.dark .gct-ui.gct-no-tw [data-gct-tracks] label > input:checked + div,
.gct-ui.gct-dark.gct-no-tw [data-gct-tracks] label > input:checked + div{
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #DAD900 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 2px rgba(218,217,0,.25) !important;
}

/* Track card badge sizing: avoid relying on missing Tailwind utilities */
.gct-ui.gct-no-tw [data-gct-tracks] label > input + div > div:first-child{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f4f6 !important;
}
.dark .gct-ui.gct-no-tw [data-gct-tracks] label > input + div > div:first-child,
.gct-ui.gct-dark.gct-no-tw [data-gct-tracks] label > input + div > div:first-child{
  background: rgba(148,163,184,.14) !important;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input + div > div:first-child img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input + div > div:first-child i{
  font-size: 18px;
  line-height: 1;
}
.gct-ui.gct-no-tw .gct-qcard [data-gct-choice]{
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  background-image: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.gct-ui.gct-no-tw .gct-qcard [data-gct-choice].bg-accent{
  background: #DAD900 !important;
  border-color: #DAD900 !important;
  color: #094046 !important;
  box-shadow: 0 6px 14px rgba(218,217,0,.25) !important;
}

.gct-ui .gct-qcard--marked{
  position: relative;
  overflow: hidden;
}
.dark .gct-ui .gct-qcard--marked,
.gct-ui.gct-dark .gct-qcard--marked{
  background: #0f172a;
}
.gct-ui .gct-marked-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.gct-ui .gct-marked-choice{
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #334155;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: none;
}
.gct-ui .gct-marked-choice:hover{
  transform: translateY(-1px);
  border-color: rgba(9,64,70,.42);
}
.gct-ui .gct-marked-choice--selected{
  border-color: #094046;
  background: rgba(9,64,70,.06);
  color: #094046;
  box-shadow: 0 4px 10px rgba(9,64,70,.08);
}
.gct-ui .gct-marked-choice__label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gct-ui .gct-marked-choice__box{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid currentColor;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  background: rgba(255,255,255,.92);
}
.dark .gct-ui .gct-marked-choice,
.gct-ui.gct-dark .gct-marked-choice{
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
  box-shadow: none;
}
.dark .gct-ui .gct-marked-choice:hover,
.gct-ui.gct-dark .gct-marked-choice:hover{
  border-color: rgba(218,217,0,.45);
}
.dark .gct-ui .gct-marked-choice--selected,
.gct-ui.gct-dark .gct-marked-choice--selected{
  background: rgba(218,217,0,.08);
  border-color: #DAD900;
  color: #DAD900;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.dark .gct-ui .gct-marked-choice__box,
.gct-ui.gct-dark .gct-marked-choice__box{
  background: rgba(15,23,42,.88);
}
@media (max-width: 640px){
  .gct-ui .gct-marked-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Question card title ("Pregunta X"): match icon primary color */
.gct-ui .gct-qcard__title{
  color: #094046 !important;
}
.dark .gct-ui .gct-qcard__title,
.gct-ui.gct-dark .gct-qcard__title{
  color: #DAD900 !important;
}

/* Graded question cards: paint card background by correctness */
.gct-ui .gct-qcard.gct-qcard--ok,
.gct-ui .gct-qcard--ok{
  background-color: rgba(34,197,94,.22) !important;
  border-color: rgba(34,197,94,.45) !important;
}
.gct-ui .gct-qcard.gct-qcard--bad,
.gct-ui .gct-qcard--bad{
  background-color: rgba(244,63,94,.22) !important;
  border-color: rgba(244,63,94,.48) !important;
}
.dark .gct-ui .gct-qcard--ok,
.gct-ui.gct-dark .gct-qcard--ok{
  background-color: rgba(34,197,94,.22) !important;
  border-color: rgba(34,197,94,.48) !important;
}
.dark .gct-ui .gct-qcard--bad,
.gct-ui.gct-dark .gct-qcard--bad{
  background-color: rgba(244,63,94,.22) !important;
  border-color: rgba(244,63,94,.52) !important;
}
.gct-ui .gct-qcard--boolean{
  min-height: 152px;
}
.gct-ui .gct-bool-choice-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gct-ui .gct-bool-choice{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  padding: 10px 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.gct-ui .gct-bool-choice:hover{
  border-color: rgba(9,64,70,.34);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.gct-ui .gct-bool-choice--selected{
  border-color: #094046;
  background: rgba(9,64,70,.08);
  color: #094046;
  box-shadow: 0 0 0 3px rgba(9,64,70,.10);
}
.gct-ui .gct-bool-choice:focus-visible{
  outline: none;
  border-color: #094046;
  box-shadow: 0 0 0 3px rgba(9,64,70,.16);
}
.dark .gct-ui .gct-bool-choice,
.gct-ui.gct-dark .gct-bool-choice{
  border-color: #475569;
  background: #0f172a;
  color: #e5e7eb;
}
.dark .gct-ui .gct-bool-choice:hover,
.gct-ui.gct-dark .gct-bool-choice:hover{
  border-color: rgba(218,217,0,.45);
}
.dark .gct-ui .gct-bool-choice--selected,
.gct-ui.gct-dark .gct-bool-choice--selected{
  border-color: #DAD900;
  background: rgba(218,217,0,.14);
  color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(218,217,0,.12);
}
.dark .gct-ui .gct-bool-choice:focus-visible,
.gct-ui.gct-dark .gct-bool-choice:focus-visible{
  border-color: #DAD900;
  box-shadow: 0 0 0 3px rgba(218,217,0,.18);
}
.gct-ui.gct-no-tw .gct-qcard [data-gct-choice].border-gray-300{
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
.gct-ui.gct-no-tw .gct-qcard [data-gct-choice].border-gray-600{
  border-color: #4b5563 !important;
  color: #d1d5db !important;
}
.dark .gct-ui.gct-no-tw .gct-qcard [data-gct-choice],
.gct-ui.gct-dark.gct-no-tw .gct-qcard [data-gct-choice]{
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
.dark .gct-ui.gct-no-tw .gct-qcard [data-gct-choice].bg-accent,
.gct-ui.gct-dark.gct-no-tw .gct-qcard [data-gct-choice].bg-accent{
  background: #DAD900 !important;
  border-color: #DAD900 !important;
  color: #0f172a !important;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input:checked + div > div:nth-child(2) > span:first-child{
  color: #094046;
}
.dark .gct-ui.gct-no-tw [data-gct-tracks] label > input:checked + div > div:nth-child(2) > span:first-child,
.gct-ui.gct-dark.gct-no-tw [data-gct-tracks] label > input:checked + div > div:nth-child(2) > span:first-child{
  color: #DAD900;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input + div > div:last-child{
  opacity: 0;
  transition: opacity .15s ease;
}
.gct-ui.gct-no-tw [data-gct-tracks] label > input:checked + div > div:last-child{
  opacity: 1;
}

.gct-ui.gct-no-tw select[data-gct-filter]:not(.gct-control__select){
  width: 100%;
  display: block !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 14px 44px 14px 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16) !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-weight: 600;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.24a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
  box-shadow: 0 1px 2px rgba(2,6,23,.06) !important;
  line-height: 1.2 !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gct-ui.gct-no-tw select[data-gct-filter]:not(.gct-control__select):hover{
  border-color: rgba(15,23,42,.28) !important;
}
.gct-ui.gct-no-tw select[data-gct-filter]:not(.gct-control__select):focus{
  outline: none !important;
  border-color: #094046 !important;
  box-shadow: 0 1px 2px rgba(2,6,23,.06), 0 0 0 3px rgba(9,64,70,.15) !important;
}
.dark .gct-ui.gct-no-tw select[data-gct-filter]:not(.gct-control__select),
.gct-ui.gct-dark.gct-no-tw select[data-gct-filter]:not(.gct-control__select){
  border-color: rgba(255,255,255,.14) !important;
  background: #0f172a !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.24a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}
.dark .gct-ui.gct-no-tw select[data-gct-filter]:not(.gct-control__select):focus,
.gct-ui.gct-dark.gct-no-tw select[data-gct-filter]:not(.gct-control__select):focus{
  border-color: #DAD900 !important;
  box-shadow: 0 0 0 3px rgba(218,217,0,.16) !important;
}

/* Ensure selector fields span full column width (avoid Elementor/theme constraints) */
.gct-ui.gct-no-tw form[data-gct-form] > section.grid > div{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mobile: prevent label overlap between the two select fields */
.gct-ui.gct-no-tw form[data-gct-form] > section.grid > div > label{
  display: block !important;
  margin-bottom: 8px !important;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px){
  .gct-ui.gct-no-tw form[data-gct-form] > section.grid > div + div{
    margin-top: 8px;
  }
}
.gct-ui.gct-no-tw form[data-gct-form] > section.grid .relative{
  width: 100%;
  display: block;
  min-width: 0;
  position: relative !important;
}

/* Selector fields (steps 2/3): clean, symmetric, no Tailwind dependency */
.gct-ui .gct-fields{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  padding-top: 8px;
  width: 100%;
}
@media (min-width: 768px){
  .gct-ui .gct-fields{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gct-ui .gct-field{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* Some themes apply padding to generic field wrappers; hard-reset for symmetry */
  padding: 0 !important;
  margin: 0 !important;
}

.gct-ui .gct-field-title{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9ca3af;
}
.gct-ui .gct-field-title__num{ color: #094046; }
.dark .gct-ui .gct-field-title,
.gct-ui.gct-dark .gct-field-title{ color: #94a3b8; }
.dark .gct-ui .gct-field-title__num,
.gct-ui.gct-dark .gct-field-title__num{ color: #DAD900; }

.gct-ui .gct-control{
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;

  /* unified input group (icon + select) */
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(2,6,23,.06);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gct-ui .gct-control:hover{
  border-color: rgba(15,23,42,.28);
}

.gct-ui .gct-control:focus-within{
  border-color: #094046;
  box-shadow: 0 1px 2px rgba(2,6,23,.06), 0 0 0 3px rgba(9,64,70,.15);
}

.dark .gct-ui .gct-control,
.gct-ui.gct-dark .gct-control{
  border-color: rgba(255,255,255,.14);
  background: #0f172a;
  box-shadow: none;
}

.dark .gct-ui .gct-control:hover,
.gct-ui.gct-dark .gct-control:hover{
  border-color: rgba(255,255,255,.20);
}

.dark .gct-ui .gct-control:focus-within,
.gct-ui.gct-dark .gct-control:focus-within{
  border-color: #DAD900;
  box-shadow: 0 0 0 3px rgba(218,217,0,.16);
}

.gct-ui .gct-control__icon{
  width: 54px;
  min-height: 54px;
  flex: 0 0 54px;
  border-radius: 0;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-right: 1px solid rgba(15,23,42,.12);
}
.dark .gct-ui .gct-control__icon,
.gct-ui.gct-dark .gct-control__icon{
  background: rgba(148,163,184,.14);
  color: #cbd5e1;
  border-right-color: rgba(255,255,255,.10);
}

.gct-ui .gct-control__select{
  flex: 1 1 0%;
  min-width: 0;
  width: 100% !important; /* fill available width (prevents narrow selects on some themes) */
  max-width: none !important;

  display: block !important;
  box-sizing: border-box;
  height: 100%;
  min-height: 54px;
  padding: 0 44px 0 16px;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-weight: 600;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.24a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;

  box-shadow: none !important;
  line-height: 1.2 !important;
  transition: none;
}

.gct-ui .gct-control__select:focus,
.gct-ui .gct-control__select:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* Some themes apply radius/border to selects via high-specificity selectors */
.gct-ui .gct-control > select.gct-control__select{
  border-radius: 0 !important;
  border: 0 !important;
}
.dark .gct-ui .gct-control__select,
.gct-ui.gct-dark .gct-control__select{
  background: transparent !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.24a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}
/* Backstop for legacy markup (absolute icon wrapper) */
.gct-ui.gct-no-tw form[data-gct-form] > section.grid .relative > .absolute.inset-y-0.left-0{
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  height: auto !important;
}
.gct-ui.gct-no-tw form[data-gct-form] > section.grid .relative > .absolute.inset-y-0.left-0 i{
  line-height: 1 !important;
  display: block;
}

.gct-ui.gct-no-tw [data-gct-action="continue"]{
  width: 100%;
  border: 0 !important;
  background: #094046 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 22px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 14px 30px rgba(9,64,70,.20) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
.gct-ui.gct-no-tw [data-gct-action="continue"] + p{
  /* Tailwind utility classes may be missing; enforce spacing + centering */
  margin-top: 12px !important;
  text-align: center !important;
  width: 100%;
  line-height: 1.35;
}
.gct-ui.gct-no-tw [data-gct-action="continue"] > div{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #DAD900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gct-ui.gct-no-tw button{
  filter: none !important;
  -webkit-filter: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.gct-ui.gct-no-tw [data-gct-choice]{
  filter: none !important;
  -webkit-filter: none !important;
}

.gct-ui.gct-no-tw [data-gct-action="back"]{
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
}

/* Minimal scoped utilities so markup doesn't collapse without Tailwind */
.gct-ui.gct-no-tw .relative{ position: relative; }
.gct-ui.gct-no-tw .absolute{ position: absolute; }
.gct-ui.gct-no-tw .inset-0{ top: 0; right: 0; bottom: 0; left: 0; }
.gct-ui.gct-no-tw .inset-y-0{ top: 0; bottom: 0; }
.gct-ui.gct-no-tw .left-0{ left: 0; }
.gct-ui.gct-no-tw .top-0{ top: 0; }
.gct-ui.gct-no-tw .right-0{ right: 0; }
.gct-ui.gct-no-tw .top-6{ top: 24px; }
.gct-ui.gct-no-tw .right-6{ right: 24px; }
.gct-ui.gct-no-tw .z-10{ z-index: 10; }
.gct-ui.gct-no-tw .z-20{ z-index: 20; }
.gct-ui.gct-no-tw .z-40{ z-index: 40; }

.gct-ui.gct-no-tw .flex{ display: flex; }
.gct-ui.gct-no-tw .inline-flex{ display: inline-flex; }
.gct-ui.gct-no-tw .block{ display: block; }
.gct-ui.gct-no-tw .flex-col{ flex-direction: column; }
.gct-ui.gct-no-tw .flex-row{ flex-direction: row; }
.gct-ui.gct-no-tw .flex-wrap{ flex-wrap: wrap; }
.gct-ui.gct-no-tw .flex-grow{ flex-grow: 1; }
.gct-ui.gct-no-tw .flex-1{ flex: 1 1 0%; }
.gct-ui.gct-no-tw .items-center{ align-items: center; }
.gct-ui.gct-no-tw .items-end{ align-items: flex-end; }
.gct-ui.gct-no-tw .justify-center{ justify-content: center; }
.gct-ui.gct-no-tw .justify-between{ justify-content: space-between; }
.gct-ui.gct-no-tw .justify-start{ justify-content: flex-start; }
.gct-ui.gct-no-tw .justify-end{ justify-content: flex-end; }
.gct-ui.gct-no-tw .overflow-hidden{ overflow: hidden; }
.gct-ui.gct-no-tw .pointer-events-none{ pointer-events: none; }
.gct-ui.gct-no-tw .min-w-0{ min-width: 0; }
.gct-ui.gct-no-tw .w-full{ width: 100%; }
.gct-ui.gct-no-tw .h-full{ height: 100%; }
.gct-ui.gct-no-tw .w-1{ width: 4px; }
.gct-ui.gct-no-tw .w-2{ width: 8px; }
.gct-ui.gct-no-tw .w-4{ width: 16px; }
.gct-ui.gct-no-tw .w-8{ width: 32px; }
.gct-ui.gct-no-tw .w-12{ width: 48px; }
.gct-ui.gct-no-tw .h-1{ height: 4px; }
.gct-ui.gct-no-tw .h-1\.5{ height: 6px; }
.gct-ui.gct-no-tw .h-2{ height: 8px; }
.gct-ui.gct-no-tw .h-6{ height: 24px; }
.gct-ui.gct-no-tw .h-8{ height: 32px; }
.gct-ui.gct-no-tw .h-16{ height: 64px; }
.gct-ui.gct-no-tw .h-24{ height: 96px; }

.gct-ui.gct-no-tw .p-2{ padding: 8px; }
.gct-ui.gct-no-tw .p-4{ padding: 16px; }
.gct-ui.gct-no-tw .p-6{ padding: 24px; }
.gct-ui.gct-no-tw .p-8{ padding: 32px; }
.gct-ui.gct-no-tw .px-3{ padding-left: 12px; padding-right: 12px; }
.gct-ui.gct-no-tw .pl-3{ padding-left: 12px; }
.gct-ui.gct-no-tw .px-4{ padding-left: 16px; padding-right: 16px; }
.gct-ui.gct-no-tw .px-5{ padding-left: 20px; padding-right: 20px; }
.gct-ui.gct-no-tw .px-6{ padding-left: 24px; padding-right: 24px; }
.gct-ui.gct-no-tw .py-1{ padding-top: 4px; padding-bottom: 4px; }
.gct-ui.gct-no-tw .py-3{ padding-top: 12px; padding-bottom: 12px; }
.gct-ui.gct-no-tw .pt-6{ padding-top: 24px; }
.gct-ui.gct-no-tw .pt-8{ padding-top: 32px; }
.gct-ui.gct-no-tw .pb-4{ padding-bottom: 16px; }
.gct-ui.gct-no-tw .pb-12{ padding-bottom: 48px; }
.gct-ui.gct-no-tw .pb-24{ padding-bottom: 96px; }
.gct-ui.gct-no-tw .pb-32{ padding-bottom: 128px; }
.gct-ui.gct-no-tw .pt-2{ padding-top: 8px; }
.gct-ui.gct-no-tw .mt-1{ margin-top: 4px; }
.gct-ui.gct-no-tw .mt-3{ margin-top: 12px; }
.gct-ui.gct-no-tw .mt-8{ margin-top: 32px; }
.gct-ui.gct-no-tw .mb-2{ margin-bottom: 8px; }
.gct-ui.gct-no-tw .mb-3{ margin-bottom: 12px; }
.gct-ui.gct-no-tw .mb-4{ margin-bottom: 16px; }
.gct-ui.gct-no-tw .mb-6{ margin-bottom: 24px; }
.gct-ui.gct-no-tw .mb-8{ margin-bottom: 32px; }
.gct-ui.gct-no-tw .mr-2{ margin-right: 8px; }
.gct-ui.gct-no-tw .mx-auto{ margin-left: auto; margin-right: auto; }

.gct-ui.gct-no-tw .grid{ display: grid; }
.gct-ui.gct-no-tw .grid-cols-1{ grid-template-columns: repeat(1, minmax(0,1fr)); }
.gct-ui.gct-no-tw .grid-cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.gct-ui.gct-no-tw .grid-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.gct-ui.gct-no-tw .grid-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.gct-ui.gct-no-tw .grid-cols-5{ grid-template-columns: repeat(5, minmax(0,1fr)); }
.gct-ui.gct-no-tw .grid-cols-6{ grid-template-columns: repeat(6, minmax(0,1fr)); }
.gct-ui.gct-no-tw .gap-1{ gap: 4px; }
.gct-ui.gct-no-tw .gap-2{ gap: 8px; }
.gct-ui.gct-no-tw .gap-3{ gap: 12px; }
.gct-ui.gct-no-tw .gap-4{ gap: 16px; }
.gct-ui.gct-no-tw .gap-6{ gap: 24px; }
.gct-ui.gct-no-tw .gap-8{ gap: 32px; }
.gct-ui.gct-no-tw .gap-12{ gap: 48px; }

.gct-ui.gct-no-tw .rounded-full{ border-radius: 999px; }
.gct-ui.gct-no-tw .rounded-lg{ border-radius: 12px; }
.gct-ui.gct-no-tw .rounded-xl{ border-radius: 16px; }
.gct-ui.gct-no-tw .rounded-2xl{ border-radius: 24px; }

.gct-ui.gct-no-tw .border{ border: 1px solid rgba(15,23,42,.12); }
.gct-ui.gct-no-tw .border-b{ border-bottom: 1px solid rgba(15,23,42,.12); }
.gct-ui.gct-no-tw .border-gray-200{ border-color: #e5e7eb; }
.gct-ui.gct-no-tw .border-gray-300{ border-color: #d1d5db; }
.gct-ui.gct-no-tw .border-gray-600{ border-color: #4b5563; }
.gct-ui.gct-no-tw .border-gray-700{ border-color: #334155; }
.gct-ui.gct-no-tw .border-primary\/20{ border-color: rgba(9,64,70,.20); }

.gct-ui.gct-no-tw .shadow-sm{ box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.gct-ui.gct-no-tw .shadow-md{ box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.gct-ui.gct-no-tw .shadow-lg{ box-shadow: 0 10px 24px rgba(0,0,0,.14); }

.gct-ui.gct-no-tw .text-white{ color: #ffffff; }
.gct-ui.gct-no-tw .text-gray-300{ color: #d1d5db; }
.gct-ui.gct-no-tw .text-gray-200{ color: #e5e7eb; }
.gct-ui.gct-no-tw .text-gray-400{ color: #9ca3af; }
.gct-ui.gct-no-tw .text-gray-500{ color: #6b7280; }
.gct-ui.gct-no-tw .text-gray-600{ color: #4b5563; }
.gct-ui.gct-no-tw .text-gray-700{ color: #374151; }
.gct-ui.gct-no-tw .text-teal-200{ color: #99f6e4; }
.gct-ui.gct-no-tw .text-xs{ font-size: 12px; }
.gct-ui.gct-no-tw .text-sm{ font-size: 14px; }
.gct-ui.gct-no-tw .text-base{ font-size: 16px; }
.gct-ui.gct-no-tw .text-lg{ font-size: 18px; }
.gct-ui.gct-no-tw .text-xl{ font-size: 20px; }
.gct-ui.gct-no-tw .text-2xl{ font-size: 24px; }
.gct-ui.gct-no-tw .font-medium{ font-weight: 500; }
.gct-ui.gct-no-tw .font-semibold{ font-weight: 600; }
.gct-ui.gct-no-tw .font-bold{ font-weight: 700; }
.gct-ui.gct-no-tw .font-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.gct-ui.gct-no-tw .uppercase{ text-transform: uppercase; }
.gct-ui.gct-no-tw .tracking-wide{ letter-spacing: .02em; }
.gct-ui.gct-no-tw .tracking-wider{ letter-spacing: .06em; }
.gct-ui.gct-no-tw .tracking-widest{ letter-spacing: .12em; }
.gct-ui.gct-no-tw .leading-tight{ line-height: 1.1; }
.gct-ui.gct-no-tw .tabular-nums{ font-variant-numeric: tabular-nums; }

.gct-ui.gct-no-tw .bg-white{ background-color: #ffffff; }
.gct-ui.gct-no-tw .bg-white\/95{ background-color: rgba(255,255,255,.95); }
.gct-ui.gct-no-tw .bg-white\/10{ background-color: rgba(255,255,255,.10); }
.gct-ui.gct-no-tw .bg-white\/20{ background-color: rgba(255,255,255,.20); }
.gct-ui.gct-no-tw .bg-black\/30{ background-color: rgba(0,0,0,.30); }
.gct-ui.gct-no-tw .bg-gray-50{ background-color: #f9fafb; }
.gct-ui.gct-no-tw .bg-gray-100{ background-color: #f3f4f6; }
.gct-ui.gct-no-tw .bg-gray-200{ background-color: #e5e7eb; }
.gct-ui.gct-no-tw .bg-gray-600{ background-color: #4b5563; }
.gct-ui.gct-no-tw .bg-gray-700{ background-color: #374151; }
.gct-ui.gct-no-tw .bg-gray-900\/30{ background-color: rgba(17,24,39,.30); }
.gct-ui.gct-no-tw .bg-surface-dark\/95{ background-color: rgba(30,41,59,.95); }
.gct-ui.gct-no-tw .bg-primary\/10{ background-color: rgba(9,64,70,.10); }
.gct-ui.gct-no-tw .bg-accent\/10{ background-color: rgba(218,217,0,.10); }
.gct-ui.gct-no-tw .bg-accent{ background-color: #DAD900; }

.gct-ui.gct-no-tw .hidden{ display: none; }

.gct-ui.gct-no-tw .max-w-5xl{ max-width: 1024px; }
.gct-ui.gct-no-tw .max-w-7xl{ max-width: 1280px; }

.gct-ui.gct-no-tw .space-y-4 > * + *{ margin-top: 16px; }
.gct-ui.gct-no-tw .space-y-8 > * + *{ margin-top: 32px; }
.gct-ui.gct-no-tw .space-y-12 > * + *{ margin-top: 48px; }

.gct-ui.gct-no-tw .top-2{ top: 8px; }
.gct-ui.gct-no-tw .right-2{ right: 8px; }
.gct-ui.gct-no-tw .opacity-0{ opacity: 0; }
.gct-ui.gct-no-tw .opacity-100{ opacity: 1; }

.gct-ui.gct-no-tw .sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px){
  .gct-ui.gct-no-tw .sm\:flex-row{ flex-direction: row; }
  .gct-ui.gct-no-tw .sm\:items-center{ align-items: center; }
  .gct-ui.gct-no-tw .sm\:gap-4{ gap: 16px; }
  .gct-ui.gct-no-tw .sm\:px-5{ padding-left: 20px; padding-right: 20px; }
  .gct-ui.gct-no-tw .sm\:px-6{ padding-left: 24px; padding-right: 24px; }
  .gct-ui.gct-no-tw .sm\:pb-24{ padding-bottom: 96px; }
  .gct-ui.gct-no-tw .sm\:w-auto{ width: auto; }
  .gct-ui.gct-no-tw .sm\:inline{ display: inline; }
  .gct-ui.gct-no-tw .sm\:hidden{ display: none; }
  .gct-ui.gct-no-tw .sm\:text-lg{ font-size: 18px; }
  .gct-ui.gct-no-tw .sm\:text-xl{ font-size: 20px; }
  .gct-ui.gct-no-tw .sm\:grid-cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gct-ui.gct-no-tw .sm\:grid-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 768px){
  .gct-ui.gct-no-tw .md\:grid-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gct-ui.gct-no-tw .md\:grid-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  .gct-ui.gct-no-tw .md\:flex-row{ flex-direction: row; }
  .gct-ui.gct-no-tw .md\:items-end{ align-items: flex-end; }
}
@media (min-width: 1024px){
  .gct-ui.gct-no-tw .lg\:grid-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  .gct-ui.gct-no-tw .lg\:grid-cols-6{ grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (min-width: 1280px){
  .gct-ui.gct-no-tw .xl\:grid-cols-5{ grid-template-columns: repeat(5, minmax(0,1fr)); }
}

.dark .gct-ui.gct-no-tw [data-gct-right],
.gct-ui.gct-dark.gct-no-tw [data-gct-right]{
  background: #0f172a;
  color: #e5e7eb;
}

/* Neutralize theme/WordPress focus rings inside the widget and use our own accessible focus style */
.gct-ui button:focus,
.gct-ui [role="button"]:focus,
.gct-ui input:focus,
.gct-ui select:focus,
.gct-ui textarea:focus{
  outline: none !important;
  box-shadow: none !important;
}
.gct-ui button:focus-visible,
.gct-ui [role="button"]:focus-visible,
.gct-ui input:focus-visible,
.gct-ui select:focus-visible,
.gct-ui textarea:focus-visible{
  outline: 2px solid rgba(218, 217, 0, 0.85) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* Extra hardening for themes that apply focus styles via :focus-within or :focus-visible with high specificity */
.gct-ui :focus{
  box-shadow: none !important;
}

/* Selector: exam-only mode (hide left panel and expand right) */
.gct-ui.gct-mode-exam [data-gct-left]{
  display:none !important;
}
.gct-ui.gct-mode-exam [data-gct-right]{
  width:100% !important;
}
@media (min-width:1024px){
  .gct-ui.gct-mode-exam [data-gct-main]{
    flex-direction:column !important;
  }
}

/* In exam mode, prefer natural page scroll instead of an internal 800px scroller */
.gct-ui.gct-mode-exam [data-gct-main]{
  height:auto !important;
  min-height:0 !important;
  overflow: visible !important;
}
.gct-ui.gct-mode-exam .custom-scroll{
  overflow: visible !important;
}
.gct-ui.gct-mode-exam [data-gct-right]{
  overflow: visible !important;
}

/* Selector config screen: add side breathing room and avoid internal scroller */
.gct-ui[data-gct-ui="selector"]:not(.gct-mode-exam) [data-gct-main]{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.gct-ui[data-gct-ui="selector"]:not(.gct-mode-exam) .custom-scroll{
  overflow: visible !important;
  overflow-y: visible !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Keep timer/header visible while scrolling */
.gct-ui .gct-exam-header{
  position: sticky;
  top: calc(var(--gct-sticky-top, 150px) + env(safe-area-inset-top, 0px)) !important;
  padding-right: 0 !important;
}

/* Exam header layout (mobile + desktop) */
.gct-ui .gct-exam-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  min-width: 0;
}
.gct-ui .gct-exam-head__left{
  flex: 1 1 auto;
  min-width: 0;
}
.gct-ui .gct-exam-head__title{
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gct-ui .gct-exam-head__meta{
  margin-top: 3px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gct-ui .gct-exam-head__right{
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gct-ui .gct-exam-timer{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.gct-ui .gct-exam-timer__label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #DAD900;
  opacity: .95;
}
.gct-ui .gct-exam-timer__valuewrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}
.gct-ui .gct-exam-timer__icon{
  font-size: 14px;
  opacity: .8;
}
.gct-ui .gct-exam-timer__value{
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

/* Timer formats: full (hh:mm:ss) vs compact (mm:ss) */
.gct-ui .gct-exam-timer__value--compact{ display: none; }

@media (max-width: 640px){
  /* Keep a compact single-row layout on mobile */
  .gct-ui .gct-exam-head{ flex-wrap: nowrap; align-items: center; gap: 12px; padding: 8px 0; }
  .gct-ui .gct-exam-head__left{ padding-right: 6px; }
  .gct-ui .gct-exam-head__title{ font-size: 16px; }
  .gct-ui .gct-exam-head__meta{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gct-ui .gct-exam-timer__label{ display: none; }
  .gct-ui .gct-exam-timer{ flex-direction: row; align-items: center; gap: 6px; }
  .gct-ui .gct-exam-timer__valuewrap{ gap: 6px; }
  .gct-ui .gct-exam-timer__icon{ font-size: 13px; }
  .gct-ui .gct-exam-timer__value{ font-size: 16px; letter-spacing: .10em; }

  /* On mobile, hide hours to avoid leading 00 */
  .gct-ui .gct-exam-timer__value--full{ display: none; }
  .gct-ui .gct-exam-timer__value--compact{ display: inline; }
}

/* Sticky bottom bar: mobile-safe sizing + iOS safe-area */
.gct-ui .gct-bottom-bar{
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.gct-ui .gct-bottom-bar__inner{
  min-width: 0;
}
.gct-ui .gct-bottom-bar__inner *{
  min-width: 0;
}

/* After finishing: prevent changing answers */
.gct-ui.gct-finished [data-gct-choice],
.gct-ui.gct-finished [data-gct-bool]{
  pointer-events: none;
}
.gct-ui.gct-finished .gct-clear-section{
  pointer-events: none;
  opacity: .55;
}

@media (max-width: 420px){
  .gct-ui .gct-bottom-bar__inner{
    padding-left: 12px;
    padding-right: 12px;
  }
}

.gct-selector{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.gct-selector__header{ text-align:center; margin-bottom:16px; }
.gct-title{ margin:0; color:var(--gct-primary); font-size:32px; font-weight:700; }
.gct-subtitle{ margin:6px 0 0; color:#111827; }

.gct-selector__filters{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 18px auto;
}

/* Legacy selector page fields (do NOT affect branded `.gct-ui` fields) */
.gct-selector .gct-field span{ display:block; font-size:14px; color:#111827; margin-bottom:6px; }
.gct-selector .gct-field select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--gct-border);
  border-radius:8px;
  background:#fff;
}

.gct-selector__actions{ text-align:center; margin: 12px 0 18px; }

.gct-btn{
  background: var(--gct-primary);
  color:#fff;
  border:0;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  cursor:pointer;
}
.gct-btn--ghost{ background: transparent; border:1px solid var(--gct-border); color:#111827; }
.gct-btn--primary{ background: var(--gct-primary); }

.gct-exam__loading{
  padding: 18px;
  display:grid;
  gap:18px;
}
.gct-exam__loading-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.gct-exam__loading-block{
  display:grid;
  gap:14px;
}
.gct-exam__loading-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.gct-skeleton{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 50%, #edf2f7 100%);
}
.gct-skeleton::after{
  content:'';
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.78) 50%, rgba(255,255,255,0) 100%);
  animation:gct-skeleton-shimmer 1.3s infinite;
}
.gct-skeleton--button{ width:220px; height:44px; border-radius:999px; }
.gct-skeleton--theme{ width:46px; height:46px; border-radius:50%; }
.gct-skeleton--header{ height:74px; }
.gct-skeleton--title{ width:min(420px, 70%); height:36px; }
.gct-skeleton--text{ width:min(560px, 82%); height:18px; border-radius:999px; }
.gct-skeleton--card{ min-height:112px; }
@keyframes gct-skeleton-shimmer{
  100%{ transform:translateX(100%); }
}

.gct-ui .gct-section-with-reserves{
  position: relative;
}

.gct-ui .gct-section-reserve-stack{
  margin-top: 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid rgba(217,119,6,.18);
}

.gct-ui .gct-reserve-shell{
  position: relative;
}

.gct-ui .gct-reserve-shell__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217,119,6,.18);
  background: rgba(255,247,237,.92);
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gct-ui .gct-reserve-section{
  padding: 18px 20px 22px;
  border:1px dashed rgba(217,119,6,.26);
  border-radius:20px;
  background: linear-gradient(180deg, rgba(255,251,235,.95) 0%, rgba(255,255,255,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.gct-ui .gct-reserve-head__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  border-radius:14px;
  background: rgba(217,119,6,.12);
  color:#b45309;
}
.dark .gct-ui .gct-reserve-section,
.gct-ui.gct-dark .gct-reserve-section{
  border-color: rgba(251,191,36,.30);
  background: linear-gradient(180deg, rgba(146,64,14,.18) 0%, rgba(15,23,42,.32) 100%);
}
.dark .gct-ui .gct-section-reserve-stack,
.gct-ui.gct-dark .gct-section-reserve-stack{
  border-left-color: rgba(251,191,36,.20);
}
.dark .gct-ui .gct-reserve-shell__eyebrow,
.gct-ui.gct-dark .gct-reserve-shell__eyebrow{
  border-color: rgba(251,191,36,.22);
  background: rgba(120,53,15,.22);
  color: #fbbf24;
}
.dark .gct-ui .gct-reserve-head__icon,
.gct-ui.gct-dark .gct-reserve-head__icon{
  background: rgba(251,191,36,.14);
  color:#facc15;
}

@media (max-width: 640px){
  .gct-ui .gct-section-reserve-stack{
    padding-left: 14px;
    margin-top: 16px;
  }

  .gct-ui .gct-reserve-section{
    padding: 16px;
  }
}

@media (max-width: 900px){
  .gct-exam__loading-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .gct-exam__loading-grid{
    grid-template-columns: 1fr;
  }
  .gct-skeleton--button{
    width:170px;
  }
}

.gct-selector__list{
  max-width: 760px;
  margin: 0 auto 16px;
}

.gct-list-title{ color:#111827; font-weight:600; margin: 0 0 10px; }

.gct-exam-pick{
  width:100%;
  text-align:left;
  padding: 12px 14px;
  border:1px solid var(--gct-border);
  background:#fff;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor:pointer;
}
.gct-exam-pick__title{ font-weight:700; color:#111827; }
.gct-exam-pick__meta{ font-size:12px; color:var(--gct-muted); margin-top:4px; }

.gct-exam{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

/* When rendered inside the branded Tailwind layout, do not add legacy spacing. */
.gct-ui .gct-exam{
  max-width: none;
  margin: 0;
  padding: 0;
}

.gct-exam__header{ text-align:center; margin-bottom: 10px; }
.gct-exam__title{ margin:0; font-size: 22px; color:#111827; }
.gct-exam__meta{ margin-top:6px; font-size: 13px; color: var(--gct-muted); }

.gct-section{ margin: 18px 0 22px; }
.gct-section__title{ margin: 0 0 10px; font-size: 16px; color:#111827; }

.gct-grid{
  display:grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.gct-q{
  border:1px solid var(--gct-border);
  border-radius: 10px;
  padding: 8px;
  background:#fff;
}

.gct-q__n{ font-size: 12px; color: var(--gct-muted); margin-bottom: 6px; }

.gct-q__opts{ display:flex; flex-wrap:wrap; gap: 6px; }
.gct-opt{ display:flex; align-items:center; gap: 6px; font-size: 12px; }
.gct-opt input{ margin:0; }

.gct-q__bool{ display:flex; align-items:center; gap: 8px; font-weight:700; }

.gct-actions{ display:flex; justify-content:center; gap: 10px; margin-top: 10px; }

.gct-results{
  max-width: 760px;
  margin: 16px auto 0;
  padding: 14px;
  border:1px solid var(--gct-border);
  border-radius: 12px;
  background: #f9fafb;
}

.gct-results__score{ font-weight:800; color:#111827; margin-bottom: 10px; }
.gct-mini{ font-size: 12px; color: var(--gct-muted); margin-top: -6px; margin-bottom: 10px; }
.gct-results__sections{ margin:0; padding-left: 18px; color:#111827; }

.gct-exam--error{ color:#b91c1c; }

@media (max-width: 900px){
  .gct-selector__filters{ grid-template-columns: 1fr; }
  .gct-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Results panel: modular, symmetric, modern (works inside Shadow DOM) */
.gct-ui .gct-result{
  background: #ffffff;
}
.dark .gct-ui .gct-result,
.gct-ui.gct-dark .gct-result{
  background: rgba(17,24,39,.30);
}

.gct-ui .gct-result__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.gct-ui .gct-result__title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #094046;
  font-size: 16px;
}
.dark .gct-ui .gct-result__title,
.gct-ui.gct-dark .gct-result__title{
  color: #ffffff;
}
.gct-ui .gct-result__title > .fa-solid{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,64,70,.10);
}
.dark .gct-ui .gct-result__title > .fa-solid,
.gct-ui.gct-dark .gct-result__title > .fa-solid{
  background: rgba(218,217,0,.12);
  color: #DAD900;
}

.gct-ui .gct-result__meta{
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: right;
}
.dark .gct-ui .gct-result__meta,
.gct-ui.gct-dark .gct-result__meta{
  color: #cbd5e1;
}

.gct-ui .gct-result__submeta{
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 14px;
}
.dark .gct-ui .gct-result__submeta,
.gct-ui.gct-dark .gct-result__submeta{
  color: #d1d5db;
}

.gct-ui .gct-result__grid{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 640px){
  .gct-ui .gct-result__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .gct-ui .gct-result__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gct-ui .gct-result__card{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.dark .gct-ui .gct-result__card,
.gct-ui.gct-dark .gct-result__card{
  border-color: rgba(255,255,255,.10);
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.gct-ui .gct-result__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  flex: 0 0 42px;
}
.dark .gct-ui .gct-result__icon,
.gct-ui.gct-dark .gct-result__icon{
  background: rgba(148,163,184,.14);
  color: #cbd5e1;
}
.gct-ui .gct-result__icon--primary{
  background: rgba(9,64,70,.10);
  color: #094046;
}
.dark .gct-ui .gct-result__icon--primary,
.gct-ui.gct-dark .gct-result__icon--primary{
  background: rgba(218,217,0,.12);
  color: #DAD900;
}
.gct-ui .gct-result__icon--accent{
  background: rgba(218,217,0,.16);
  color: #094046;
}
.dark .gct-ui .gct-result__icon--accent,
.gct-ui.gct-dark .gct-result__icon--accent{
  background: rgba(218,217,0,.18);
  color: #DAD900;
}
.gct-ui .gct-result__icon--ok{ background: rgba(16,185,129,.14); color: #065f46; }
.gct-ui .gct-result__icon--bad{ background: rgba(244,63,94,.12); color: #9f1239; }
.dark .gct-ui .gct-result__icon--ok,
.gct-ui.gct-dark .gct-result__icon--ok{ background: rgba(16,185,129,.16); color: #6ee7b7; }
.dark .gct-ui .gct-result__icon--bad,
.gct-ui.gct-dark .gct-result__icon--bad{ background: rgba(244,63,94,.16); color: #fda4af; }

.gct-ui .gct-result__card-body{ min-width: 0; }
.gct-ui .gct-result__value{
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.dark .gct-ui .gct-result__value,
.gct-ui.gct-dark .gct-result__value{ color: #ffffff; }
.gct-ui .gct-result__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: #9ca3af;
  margin-top: 2px;
}
.dark .gct-ui .gct-result__label,
.gct-ui.gct-dark .gct-result__label{ color: #94a3b8; }

.gct-ui .gct-result__panel{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  margin-top: 12px;
}
.dark .gct-ui .gct-result__panel,
.gct-ui.gct-dark .gct-result__panel{
  border-color: rgba(255,255,255,.10);
  background: #0f172a;
}
.gct-ui .gct-result__panel--warn{
  border-color: rgba(217,119,6,.35);
  background: rgba(251,191,36,.12);
}
.dark .gct-ui .gct-result__panel--warn,
.gct-ui.gct-dark .gct-result__panel--warn{
  border-color: rgba(217,119,6,.45);
  background: rgba(251,191,36,.10);
}

.gct-ui .gct-result__panel--summary{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}
.dark .gct-ui .gct-result__panel--summary,
.gct-ui.gct-dark .gct-result__panel--summary{
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.gct-ui .gct-result__panel--summary .gct-result__panel-title{
  margin-bottom: 0;
}

.gct-ui .gct-result__summary-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 980px){
  .gct-ui .gct-result__summary-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px){
  .gct-ui .gct-result__summary-grid{ grid-template-columns: 1fr; }
}

/* Gradeboard (Tablero de calificaciones) layout */
.gct-ui .gct-gradeboard{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 900px){
  .gct-ui .gct-gradeboard{
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: stretch;
  }
}

.gct-ui .gct-gradeboard__left,
.gct-ui .gct-gradeboard__right{
  min-width: 0;
}

.gct-ui .gct-gradeboard__left > .gct-result__panel,
.gct-ui .gct-gradeboard__right > .gct-result__panel{
  height: 100%;
}

.gct-ui .gct-gradeboard__right{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.gct-ui .gct-result__panel--total{
  padding: 18px 16px;
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.10);
}
.dark .gct-ui .gct-result__panel--total,
.gct-ui.gct-dark .gct-result__panel--total{
  background: rgba(148,163,184,.08);
  border-color: rgba(255,255,255,.10);
}

.gct-ui .gct-total__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: #6b7280;
  text-align: center;
}
.dark .gct-ui .gct-total__label,
.gct-ui.gct-dark .gct-total__label{ color: #cbd5e1; }

.gct-ui .gct-total__score{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.gct-ui .gct-total__value{
  font-weight: 1000;
  font-size: 34px;
  line-height: 1;
  color: #094046;
}
.dark .gct-ui .gct-total__value,
.gct-ui.gct-dark .gct-total__value{ color: #DAD900; }

.gct-ui .gct-total__max{
  font-weight: 900;
  font-size: 12px;
  color: #9ca3af;
}
.dark .gct-ui .gct-total__max,
.gct-ui.gct-dark .gct-total__max{ color: #94a3b8; }

.gct-ui .gct-result__panel-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #094046;
}
.dark .gct-ui .gct-result__panel-title,
.gct-ui.gct-dark .gct-result__panel-title{ color: #ffffff; }

.gct-ui .gct-result__panel-title > .fa-solid{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,64,70,.10);
}
.dark .gct-ui .gct-result__panel-title > .fa-solid,
.gct-ui.gct-dark .gct-result__panel-title > .fa-solid{
  background: rgba(218,217,0,.12);
  color: #DAD900;
}

.gct-ui .gct-result__panel-row{
  font-size: 14px;
  color: #111827;
  font-weight: 700;
  margin-top: 6px;
}
.dark .gct-ui .gct-result__panel-row,
.gct-ui.gct-dark .gct-result__panel-row{ color: #e5e7eb; }

.gct-ui .gct-result__details{
  padding: 0;
  overflow: hidden;
}

.gct-ui .gct-result__details-summary{
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.gct-ui .gct-result__details-summary::-webkit-details-marker{
  display: none;
}

.gct-ui .gct-result__details-chevron{
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15,23,42,.06) !important;
  transition: transform .18s ease;
}

.gct-ui .gct-result__details[open] .gct-result__details-chevron{
  transform: rotate(180deg);
}

.gct-ui .gct-result__details-body{
  padding: 0 8px 10px;
}

.dark .gct-ui .gct-result__details-chevron,
.gct-ui.gct-dark .gct-result__details-chevron{
  background: rgba(255,255,255,.10) !important;
}

.gct-ui .gct-result__panel-subtitle{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin-top: 10px;
  color: #111827;
}
.dark .gct-ui .gct-result__panel-subtitle,
.gct-ui.gct-dark .gct-result__panel-subtitle{ color: #ffffff; }

.gct-ui .gct-result__panel-subtitle > .fa-solid{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
}
.dark .gct-ui .gct-result__panel-subtitle > .fa-solid,
.gct-ui.gct-dark .gct-result__panel-subtitle > .fa-solid{
  background: rgba(148,163,184,.14);
  color: #cbd5e1;
}

.gct-ui .gct-result__fc-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gct-ui .gct-result__fc-layout{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.gct-ui .gct-result__fc-left{
  flex: 1 1 auto;
  min-width: 0;
}

.gct-ui .gct-result__fc-right{
  flex: 0 0 auto;
  text-align: right;
  min-width: 220px;
}

.gct-ui .gct-result__fc-right .gct-result__final{
  margin-top: 0;
  margin-right: 0;
  font-size: 18px;
  line-height: 1.15;
}

@media (max-width: 520px){
  .gct-ui .gct-result__fc-layout{
    flex-direction: column;
  }
  .gct-ui .gct-result__fc-right{
    min-width: 0;
    text-align: left;
  }
}
.gct-ui .gct-result__fc-tag{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: #9ca3af;
}
.dark .gct-ui .gct-result__fc-tag,
.gct-ui.gct-dark .gct-result__fc-tag{ color: #94a3b8; }

.gct-ui .gct-result__fc-input{
  width: 130px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.16);
  background: #ffffff;
  color: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dark .gct-ui .gct-result__fc-input,
.gct-ui.gct-dark .gct-result__fc-input{
  border-color: rgba(255,255,255,.14);
  background: #111827;
}

.gct-ui .gct-result__fc-suffix{
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
}
.dark .gct-ui .gct-result__fc-suffix,
.gct-ui.gct-dark .gct-result__fc-suffix{ color: #cbd5e1; }

.gct-ui .gct-result__hint{
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}
.dark .gct-ui .gct-result__hint,
.gct-ui.gct-dark .gct-result__hint{ color: #cbd5e1; }

.gct-ui .gct-result__final-note{
  font-style: italic;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.03);
  margin-top: 0;
}
.dark .gct-ui .gct-result__final-note,
.gct-ui.gct-dark .gct-result__final-note{
  border-color: rgba(255,255,255,.12);
  background: rgba(148,163,184,.08);
}

.gct-ui .gct-result__final{
  margin-top: 8px;
  font-weight: 900;
  color: #094046;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-right: 8px;
}
.dark .gct-ui .gct-result__final,
.gct-ui.gct-dark .gct-result__final{ color: #DAD900; }

/* Official panel helpers */
.gct-ui .gct-result__line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.gct-ui .gct-result__line-left{
  min-width: 0;
  flex: 1 1 auto;
}

/* Make each official row self-contained and readable */
.gct-ui .gct-result__line--boxed{
  padding: 12px 12px;
  border: 1px solid var(--gct-border);
  border-radius: 14px;
  background: rgba(15,23,42,.03);
}
.dark .gct-ui .gct-result__line--boxed,
.gct-ui.gct-dark .gct-result__line--boxed{
  background: rgba(148,163,184,.08);
  border-color: rgba(255,255,255,.12);
}

.gct-ui .gct-result__line-title{
  font-weight: 900;
  color: #111827;
}
.dark .gct-ui .gct-result__line-title,
.gct-ui.gct-dark .gct-result__line-title{
  color: #ffffff;
}

.gct-ui .gct-result__line-value{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 900;
  color: #374151;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.dark .gct-ui .gct-result__line-value,
.gct-ui.gct-dark .gct-result__line-value{
  color: #e5e7eb;
}

.gct-ui .gct-result__score-line{
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(9,64,70,.08), rgba(218,217,0,.10));
  border-color: rgba(9,64,70,.16);
}

.gct-ui .gct-result__panel--summary .gct-result__score-line{
  min-height: 104px;
  margin-top: 0;
  padding: 10px;
}
.dark .gct-ui .gct-result__score-line,
.gct-ui.gct-dark .gct-result__score-line{
  background: linear-gradient(135deg, rgba(218,217,0,.12), rgba(20,184,166,.10));
  border-color: rgba(218,217,0,.22);
}

.gct-ui .gct-result__score-line .gct-result__line-value{
  font-size: 24px;
  line-height: 1;
  color: #094046;
  letter-spacing: 0;
}
.dark .gct-ui .gct-result__score-line .gct-result__line-value,
.gct-ui.gct-dark .gct-result__score-line .gct-result__line-value{
  color: #DAD900;
}

.gct-ui .gct-result__summary-status{
  margin-top: auto;
  padding-top: 8px;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: .02em;
}
.gct-ui .gct-result__summary-status--ok{ color: #047857; }
.gct-ui .gct-result__summary-status--bad{ color: #9f1239; }
.dark .gct-ui .gct-result__summary-status--ok,
.gct-ui.gct-dark .gct-result__summary-status--ok{ color: #6ee7b7; }
.dark .gct-ui .gct-result__summary-status--bad,
.gct-ui.gct-dark .gct-result__summary-status--bad{ color: #fda4af; }

.gct-ui .gct-result__summary-badge{
  margin-left: auto;
  display:inline-flex;
  align-items:center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .06em;
}
.gct-ui .gct-result__summary-badge--ok{
  background: rgba(16,185,129,.14);
  color: #047857;
}
.gct-ui .gct-result__summary-badge--bad{
  background: rgba(244,63,94,.12);
  color: #9f1239;
}
.dark .gct-ui .gct-result__summary-badge--ok,
.gct-ui.gct-dark .gct-result__summary-badge--ok{ color: #6ee7b7; }
.dark .gct-ui .gct-result__summary-badge--bad,
.gct-ui.gct-dark .gct-result__summary-badge--bad{ color: #fda4af; }

.gct-ui .gct-result__summary-reason{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
}
.dark .gct-ui .gct-result__summary-reason,
.gct-ui.gct-dark .gct-result__summary-reason{ color: #e5e7eb; }

.gct-ui .gct-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--gct-status-bg, rgba(15,23,42,.06));
  color: var(--gct-status-fg, #111827);
}
.gct-ui .gct-status--ok{ --gct-status-bg: rgba(16,185,129,.14); --gct-status-fg: #065f46; }
.gct-ui .gct-status--mid{ --gct-status-bg: rgba(218,217,0,.18); --gct-status-fg: #094046; }
.gct-ui .gct-status--bad{ --gct-status-bg: rgba(244,63,94,.12); --gct-status-fg: #9f1239; }
.dark .gct-ui .gct-status--ok,
.gct-ui.gct-dark .gct-status--ok{ --gct-status-bg: rgba(16,185,129,.16); --gct-status-fg: #6ee7b7; }
.dark .gct-ui .gct-status--mid,
.gct-ui.gct-dark .gct-status--mid{ --gct-status-bg: rgba(218,217,0,.20); --gct-status-fg: #DAD900; }
.dark .gct-ui .gct-status--bad,
.gct-ui.gct-dark .gct-status--bad{ --gct-status-bg: rgba(244,63,94,.16); --gct-status-fg: #fda4af; }

/* Progress bars inside official rows */
.gct-ui .gct-progress{
  margin-top: 10px;
  width: 100%;
}

.gct-ui .gct-progress__bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15,23,42,.10);
  border: 1px solid rgba(15,23,42,.10);
}

.dark .gct-ui .gct-progress__bar,
.gct-ui.gct-dark .gct-progress__bar{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}

.gct-ui .gct-progress__fill{
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgba(16,185,129,.85);
}

.gct-ui .gct-progress--bad .gct-progress__fill{ background: rgba(244,63,94,.82); }
.gct-ui .gct-progress--mid .gct-progress__fill{ background: rgba(218,217,0,.88); }
.gct-ui .gct-progress--ok .gct-progress__fill{ background: rgba(16,185,129,.85); }

.gct-ui .gct-progress__marker{
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  transform: translateX(-1px);
  background: rgba(15,23,42,.35);
}

.dark .gct-ui .gct-progress__marker,
.gct-ui.gct-dark .gct-progress__marker{
  background: rgba(255,255,255,.35);
}


/* Tarjetas originales + casilla X. Sin hoja densa. */
.gct-ui.gct-theme-omr .gct-qcard{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
}
.gct-ui.gct-theme-omr .gct-omr-opts{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.gct-ui.gct-theme-omr .gct-omr-box,
.gct-ui.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box{
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px;
  padding: 6px 2px !important;
  border: 1.5px solid rgba(9,64,70,.18) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #094046 !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
}
.gct-ui.gct-theme-omr .gct-omr-box:hover,
.gct-ui.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box:hover{
  border-color: #094046 !important;
}
.gct-ui.gct-theme-omr .gct-omr-box:focus-visible{
  outline: 3px solid rgba(218,217,0,.5);
  outline-offset: 2px;
}
.gct-ui.gct-theme-omr .gct-omr-box__lab{
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #5b6b6a;
}
.gct-ui.gct-theme-omr .gct-omr-box__x{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(9,64,70,.28);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: #fff;
}
.gct-ui.gct-theme-omr .gct-omr-box--x,
.gct-ui.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box--x,
.gct-ui.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box--x.bg-accent{
  background: #fff !important;
  border-color: #094046 !important;
  color: #094046 !important;
  box-shadow: none !important;
}
.gct-ui.gct-theme-omr .gct-omr-box--x .gct-omr-box__lab{
  color: #094046;
}
.gct-ui.gct-theme-omr .gct-omr-box--x .gct-omr-box__x{
  background: #DAD900;
  border-color: #DAD900;
  color: #094046;
}
.gct-ui.gct-theme-omr .gct-omr-box.ring-emerald-400,
.gct-ui.gct-theme-omr .gct-omr-box.bg-emerald-50{
  border-color: #059669 !important;
}
.gct-ui.gct-theme-omr .gct-omr-box.ring-rose-400,
.gct-ui.gct-theme-omr .gct-omr-box.bg-rose-50{
  border-color: #e11d48 !important;
}
.dark .gct-ui.gct-theme-omr .gct-omr-box,
.gct-ui.gct-dark.gct-theme-omr .gct-omr-box,
.dark .gct-ui.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box,
.gct-ui.gct-dark.gct-theme-omr.gct-no-tw .gct-qcard .gct-omr-box{
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
.dark .gct-ui.gct-theme-omr .gct-omr-box__x,
.gct-ui.gct-dark.gct-theme-omr .gct-omr-box__x{
  background: #111827;
  border-color: #64748b;
}
.dark .gct-ui.gct-theme-omr .gct-omr-box--x .gct-omr-box__x,
.gct-ui.gct-dark.gct-theme-omr .gct-omr-box--x .gct-omr-box__x{
  background: #DAD900;
  border-color: #DAD900;
  color: #094046;
}
@media (max-width: 420px){
  .gct-ui.gct-theme-omr .gct-omr-opts{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hoja tipo examen (PDF) · colores ProCivil. No toca tarjetas ni OMR. */
.gct-ui.gct-theme-hoja{
  --hoja-ink: #094046;
  --hoja-accent: #DAD900;
  --hoja-paper: #ffffff;
  --hoja-wash: #eef5f4;
  --hoja-line: rgba(9,64,70,.16);
  --hoja-muted: #4d6361;
}
.gct-ui.gct-theme-hoja .gct-hoja-banner{
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid var(--hoja-ink);
  border-radius: 4px;
  background: var(--hoja-ink);
  color: #fff;
}
.gct-ui.gct-theme-hoja .gct-hoja-banner__title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
}
.gct-ui.gct-theme-hoja .gct-hoja-banner__meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.gct-ui.gct-theme-hoja .gct-hoja-banner__model{
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--hoja-accent);
  color: var(--hoja-ink);
}
.gct-ui.gct-theme-hoja .gct-hoja-banner__hint{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,.82);
  text-transform: none;
  letter-spacing: 0;
}
.gct-ui.gct-theme-hoja .gct-hoja-sheet{
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--hoja-ink);
  background: var(--hoja-paper);
}
.gct-ui.gct-theme-hoja .gct-hoja-col{
  min-width: 0;
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--hoja-line);
}
.gct-ui.gct-theme-hoja .gct-hoja-col:last-child{
  border-bottom: 0;
}
.gct-ui.gct-theme-hoja .gct-hoja-col__head,
.gct-ui.gct-theme-hoja .gct-hoja-row{
  display: grid;
  grid-template-columns: 2.2rem repeat(var(--gct-hoja-opts, 4), minmax(40px, 1fr));
  gap: 4px;
  align-items: center;
  min-height: 44px;
}
.gct-ui.gct-theme-hoja .gct-hoja-col--bool .gct-hoja-col__head,
.gct-ui.gct-theme-hoja .gct-hoja-row--bool{
  grid-template-columns: 2.2rem repeat(2, minmax(40px, 1fr));
}
.gct-ui.gct-theme-hoja .gct-hoja-col__head{
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--hoja-ink);
  min-height: 0;
  background: var(--hoja-wash);
}
.gct-ui.gct-theme-hoja .gct-hoja-col__lab{
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--hoja-ink);
}
.gct-ui.gct-theme-hoja .gct-hoja-n{
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 4px;
  color: var(--hoja-ink);
}
.gct-ui.gct-theme-hoja .gct-hoja-row:nth-child(odd){
  background: var(--hoja-wash);
}
.gct-ui.gct-theme-hoja .gct-hoja-box{
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0 !important;
  border: 1.5px solid var(--hoja-ink) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--hoja-ink) !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
}
.gct-ui.gct-theme-hoja .gct-hoja-box:hover{
  background: var(--hoja-wash) !important;
}
.gct-ui.gct-theme-hoja .gct-hoja-box:focus-visible{
  outline: 3px solid var(--hoja-accent);
  outline-offset: 1px;
}
.gct-ui.gct-theme-hoja .gct-hoja-box__lab{
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: var(--hoja-muted);
}
.gct-ui.gct-theme-hoja .gct-hoja-box__x{
  min-height: 14px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.gct-ui.gct-theme-hoja .gct-hoja-box--x{
  background: var(--hoja-accent) !important;
  border-color: var(--hoja-ink) !important;
}
.gct-ui.gct-theme-hoja .gct-hoja-box--x .gct-hoja-box__lab,
.gct-ui.gct-theme-hoja .gct-hoja-box--x .gct-hoja-box__x{
  color: var(--hoja-ink);
}
.gct-ui.gct-theme-hoja .gct-hoja-fb{
  grid-column: 1 / -1;
  padding: 0 6px 4px;
  font-size: 11px;
  font-weight: 700;
}
.gct-ui.gct-theme-hoja .gct-hoja-row.gct-qcard--ok{
  background: rgba(16,185,129,.16);
}
.gct-ui.gct-theme-hoja .gct-hoja-row.gct-qcard--bad{
  background: rgba(244,63,94,.14);
}
.gct-ui.gct-theme-hoja .gct-hoja-box.ring-emerald-400,
.gct-ui.gct-theme-hoja .gct-hoja-box.bg-emerald-50{
  border-color: #059669 !important;
  background: #d1fae5 !important;
}
.gct-ui.gct-theme-hoja .gct-hoja-box.ring-rose-400,
.gct-ui.gct-theme-hoja .gct-hoja-box.bg-rose-50{
  border-color: #e11d48 !important;
  background: #ffe4e6 !important;
}
.dark .gct-ui.gct-theme-hoja,
.gct-ui.gct-dark.gct-theme-hoja{
  --hoja-paper: #0f172a;
  --hoja-wash: rgba(218,217,0,.08);
  --hoja-line: rgba(218,217,0,.22);
  --hoja-muted: #94a3b8;
  --hoja-ink: #e2e8f0;
}
.dark .gct-ui.gct-theme-hoja .gct-hoja-banner,
.gct-ui.gct-dark.gct-theme-hoja .gct-hoja-banner{
  background: #094046;
  border-color: #DAD900;
  color: #fff;
}
.dark .gct-ui.gct-theme-hoja .gct-hoja-box,
.gct-ui.gct-dark.gct-theme-hoja .gct-hoja-box{
  background: #111827 !important;
  border-color: #DAD900 !important;
  color: #e2e8f0 !important;
}
.dark .gct-ui.gct-theme-hoja .gct-hoja-box--x,
.gct-ui.gct-dark.gct-theme-hoja .gct-hoja-box--x{
  background: #DAD900 !important;
  color: #094046 !important;
}
@media (max-width: 699px){
  .gct-ui.gct-theme-hoja .gct-hoja-col{
    display: contents;
  }
  .gct-ui.gct-theme-hoja .gct-hoja-col__head{
    display: none;
  }
  .gct-ui.gct-theme-hoja .gct-hoja-row{
    min-height: 52px;
    padding: 4px 6px;
  }
  .gct-ui.gct-theme-hoja .gct-hoja-box{
    max-width: 52px;
    min-height: 48px;
  }
}
@media (min-width: 700px){
  .gct-ui.gct-theme-hoja .gct-hoja-sheet{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .gct-ui.gct-theme-hoja .gct-hoja-col{
    border-bottom: 0;
    border-right: 1px solid var(--hoja-line);
  }
  .gct-ui.gct-theme-hoja .gct-hoja-col:last-child{
    border-right: 0;
  }
}
@media (min-width: 1100px){
  .gct-ui.gct-theme-hoja .gct-hoja-sheet{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .gct-ui.gct-theme-hoja .gct-hoja-col__head,
  .gct-ui.gct-theme-hoja .gct-hoja-row{
    grid-template-columns: 1.7rem repeat(var(--gct-hoja-opts, 4), minmax(0, 1fr));
    min-height: 36px;
    gap: 3px;
  }
  .gct-ui.gct-theme-hoja .gct-hoja-col--bool .gct-hoja-col__head,
  .gct-ui.gct-theme-hoja .gct-hoja-row--bool{
    grid-template-columns: 1.7rem repeat(2, minmax(0, 1fr));
  }
}

/* Ficha real: escritorio = plantilla oficial; móvil = lista del tema PDF. */
.gct-ui.gct-theme-ficha{
  --ficha-teal: #12b5a7;
  --ficha-orange: #f36b21;
  --ficha-ink: #094046;
  --ficha-paper: #ffffff;
  --ficha-box: 18px;
}
.gct-ui.gct-theme-ficha .gct-ficha-head{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.gct-ui.gct-theme-ficha .gct-ficha-head__bar{
  background: var(--ficha-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
}
.gct-ui.gct-theme-ficha .gct-ficha-head__tools{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}
.gct-ui.gct-theme-ficha .gct-ficha-head__tools .gct-clear-section{
  color: var(--ficha-orange);
  font-size: 12px;
}
.gct-ui.gct-theme-ficha .gct-hoja-sheet,
.gct-ui.gct-theme-ficha .gct-ficha-sheet{
  border: 0;
  background: transparent;
}
.gct-ui.gct-theme-ficha .gct-hoja-col{
  padding: 2px 4px 6px;
  border: 0;
}
.gct-ui.gct-theme-ficha .gct-hoja-n{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: var(--ficha-box);
  padding: 0 9px 0 5px;
  margin: 0;
  background: var(--ficha-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
  text-align: center;
}
.gct-ui.gct-theme-ficha .gct-hoja-col__head .gct-hoja-n{
  background: transparent;
  clip-path: none;
  min-width: 1.85rem;
  height: auto;
}
.gct-ui.gct-theme-ficha .gct-hoja-col__lab{
  color: var(--ficha-orange);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}
.gct-ui.gct-theme-ficha .gct-hoja-col__head,
.gct-ui.gct-theme-ficha .gct-hoja-row{
  display: grid;
  grid-template-columns: 1.85rem repeat(var(--gct-hoja-opts, 4), var(--ficha-box));
  grid-template-rows: auto;
  justify-content: start;
  align-items: center;
  column-gap: 3px;
  row-gap: 0;
  min-height: 24px;
  width: max-content;
  max-width: 100%;
  padding: 0 0 5px;
}
.gct-ui.gct-theme-ficha .gct-hoja-row{
  position: relative;
}
.gct-ui.gct-theme-ficha .gct-hoja-row::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--ficha-orange);
  pointer-events: none;
}
.gct-ui.gct-theme-ficha .gct-hoja-fb[style*="display:none"],
.gct-ui.gct-theme-ficha .gct-hoja-fb[style*="display: none"]{
  display: none !important;
}
.gct-ui.gct-theme-ficha .gct-hoja-box{
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: none !important;
  width: var(--ficha-box) !important;
  height: var(--ficha-box) !important;
  min-width: var(--ficha-box);
  min-height: var(--ficha-box);
  max-width: var(--ficha-box);
  padding: 0 !important;
  border: 1px solid var(--ficha-orange) !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cline x1='10' y1='2.2' x2='10' y2='17.8' stroke='%23f7a06a' stroke-width='0.65' stroke-dasharray='0.7 1.15' stroke-linecap='round'/%3E%3Cline x1='2.2' y1='10' x2='17.8' y2='10' stroke='%23f7a06a' stroke-width='0.65' stroke-dasharray='0.7 1.15' stroke-linecap='round'/%3E%3Cline x1='4' y1='4' x2='16' y2='16' stroke='%23f7a06a' stroke-width='0.7' stroke-dasharray='1.35 1.25'/%3E%3Cline x1='16' y1='4' x2='4' y2='16' stroke='%23f7a06a' stroke-width='0.7' stroke-dasharray='1.35 1.25'/%3E%3C/svg%3E");
  background-size: 78% 78%;
  background-position: center;
  background-repeat: no-repeat;
}
.gct-ui.gct-theme-ficha .gct-hoja-box__lab{
  display: none;
}
.gct-ui.gct-theme-ficha .gct-hoja-box__x{
  color: var(--ficha-orange);
  min-height: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.gct-ui.gct-theme-ficha .gct-hoja-box--x{
  background-image: none !important;
  border-color: var(--ficha-orange) !important;
}
.gct-ui.gct-theme-ficha .gct-hoja-box--x .gct-hoja-box__x{
  color: var(--ficha-orange);
  font-weight: 900;
}
.gct-ui.gct-theme-ficha .gct-hoja-row:nth-child(odd){
  background: transparent;
}
.gct-ui.gct-theme-ficha .gct-ficha-break{
  width: 28px;
  height: 34px;
  margin: 8px auto 4px;
  background: var(--ficha-orange);
  clip-path: polygon(28% 0, 72% 0, 72% 46%, 100% 46%, 50% 100%, 0 46%, 28% 46%);
}
.gct-ui.gct-theme-ficha .gct-ficha-break + .gct-hoja-col__head{
  margin-top: 2px;
}
.gct-ui.gct-theme-ficha .gct-reserve-shell__eyebrow{
  color: var(--ficha-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 6px 0 4px;
}
.gct-ui.gct-theme-ficha .gct-section-with-reserves{
  margin: 0;
  padding: 0;
  background: var(--ficha-paper);
}
.gct-ui.gct-theme-ficha .space-y-12{
  row-gap: 12px;
}
@media (min-width: 900px){
  .gct-ui.gct-theme-ficha .gct-ficha-board{
    display: grid;
    grid-template-columns: minmax(170px, 0.95fr) minmax(0, 2.5fr) minmax(150px, 0.7fr);
    grid-template-areas:
      "orto know lang"
      "gram know lang";
    gap: 12px 0;
    align-items: start;
  }
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="orto"]{ grid-area: orto; padding-right: 14px; }
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="gram"]{ grid-area: gram; padding-right: 14px; }
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="know"]{
    grid-area: know;
    padding: 0 14px;
    border-left: 1px solid var(--ficha-orange);
    border-right: 1px solid var(--ficha-orange);
  }
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="lang"]{ grid-area: lang; padding-left: 14px; }
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="psy"],
  .gct-ui.gct-theme-ficha .gct-ficha-board > [data-gct-ficha="other"]{
    grid-column: 1 / -1;
  }
  .gct-ui.gct-theme-ficha .gct-ficha-board:not(:has([data-gct-ficha="orto"])):not(:has([data-gct-ficha="gram"])){
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
    grid-template-areas:
      "know lang"
      "know lang";
  }
  .gct-ui.gct-theme-ficha .gct-ficha-board:not(:has([data-gct-ficha="orto"])):not(:has([data-gct-ficha="gram"])) > [data-gct-ficha="know"]{
    border-left: 0;
    padding-left: 0;
  }
  .gct-ui.gct-theme-ficha .gct-ficha-sheet{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }
  .gct-ui.gct-theme-ficha [data-gct-ficha="know"] .gct-ficha-sheet{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .gct-ui.gct-theme-ficha [data-gct-ficha="lang"] .gct-ficha-sheet{
    grid-template-columns: 1fr;
  }
  .gct-ui.gct-theme-ficha [data-gct-ficha="orto"] .gct-ficha-sheet,
  .gct-ui.gct-theme-ficha [data-gct-ficha="gram"] .gct-ficha-sheet{
    grid-template-columns: 1fr 1fr;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-col{
    border-right: 0;
  }
  .gct-ui.gct-theme-ficha .gct-ficha-head__tools{
    display: none;
  }
}
@media (max-width: 899px){
  .gct-ui.gct-theme-ficha .gct-ficha-board{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-col{
    display: contents;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-col__head,
  .gct-ui.gct-theme-ficha .gct-ficha-break{
    display: none;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-sheet,
  .gct-ui.gct-theme-ficha .gct-ficha-sheet{
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(9,64,70,.12);
    border-radius: 14px;
    padding: 8px;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-row{
    display: grid;
    min-height: 52px;
    width: 100%;
    padding: 4px 6px 8px;
    grid-template-columns: 2.6rem repeat(var(--gct-hoja-opts, 4), minmax(44px, 1fr));
  }
  .gct-ui.gct-theme-ficha .gct-hoja-box{
    width: 100% !important;
    max-width: 52px;
    min-width: 0;
    min-height: 48px;
    height: 48px;
  }
  .gct-ui.gct-theme-ficha .gct-hoja-box__lab{
    display: block;
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 9px;
    line-height: 1;
    color: var(--ficha-orange);
    font-weight: 800;
  }
}
