.gcs-sim { margin: 28px 0; }
.gcs-sim * { box-sizing: border-box; }
.gcs-sim-admin-flag { display:inline-block; padding:7px 12px; margin:0 0 12px; font-size:12px; font-weight:750; color:#73551b; background:#fff4d4; border-radius:7px; }
.gcs-sim-alert, .gcs-sim-assort-note { border-radius:9px; padding:12px 14px; margin:12px 0; font-size:13px; line-height:1.8; }
.gcs-sim-alert { background:#f4f6f8; border:1px solid #dce1e7; color:#273447; }
.gcs-sim-assort-note { background:#fff9ee; border:1px solid #e8d8ae; color:#59471e; }
.gcs-sim-frame { border-radius:16px; border:1px solid #dee4ec; background:#fff; padding:18px; }
.gcs-sim-frame h3 { margin:0 0 10px; font-size:16px; }
.gcs-sim-field { display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:700; color:#344455; }
.gcs-sim-select, .gcs-sim-number { width:100%; height:40px; min-height:40px; padding:7px 10px; border:1px solid #cbd5df; border-radius:8px; background:#fff; color:#182434; font-size:14px; }
.gcs-sim-select { max-width:420px; }
.gcs-sim-weight-box { padding:14px; background:#f6f8fc; border-radius:12px; margin-bottom:18px; }
.gcs-sim-weight-box > p { font-size:12px; line-height:1.7; margin:0 0 12px; color:#40516a; }
.gcs-sim-weight-inputs { display:flex; flex-wrap:wrap; gap:12px; }
.gcs-sim-weight-inputs .gcs-sim-field { flex:1 1 95px; max-width:150px; }
.gcs-sim-example { border:1px solid #566b86; border-radius:8px; background:#fff; color:#324a66; font-weight:750; padding:8px 12px; margin:12px 0; cursor:pointer; }
.gcs-sim-weight-box .gcs-sim-mock { margin:0; font-size:11px; }
.gcs-sim-draw-panel { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; min-height:158px; margin-top:12px; padding:16px; background:linear-gradient(135deg,#e5f5ff,#fbf1fc); border-radius:14px; text-align:center; }
.gcs-sim-capsule { width:64px; height:96px; border-radius:40px; transform:rotate(-32deg); border:3px solid rgba(255,255,255,.95); background:linear-gradient(to bottom,rgba(255,255,255,.30),transparent 46%),linear-gradient(to bottom,#fb7185 0 48%,#fff 48% 52%,#5bc9d6 52% 100%); box-shadow:0 12px 22px rgba(28,56,91,.16), inset 6px 0 12px rgba(255,255,255,.22); position:relative; }
.gcs-sim-capsule::after { content:""; position:absolute; top:11px; left:10px; width:8px; height:27px; border-radius:15px; transform:rotate(15deg); background:rgba(255,255,255,.38); }
.gcs-sim-capsule-spinning { animation:gcs-sim-spin .5s ease-out; }
@keyframes gcs-sim-spin { 0% { transform:rotate(-32deg) scale(.8); } 38% {transform:rotate(25deg) scale(1.08);} 75% {transform:rotate(-44deg);} 100% {transform:rotate(-32deg) scale(1);} }
.gcs-sim-main-result { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:15px; font-weight:750; color:#263447; line-height:1.7; overflow-wrap:anywhere; }
.gcs-sim-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:16px 0; }
.gcs-sim-button { cursor:pointer; padding:10px 13px; border-radius:10px; border:1px solid #b6cad8; background:#f5f9fc; color:#233a50; font-size:13px; font-weight:800; }
.gcs-sim-primary { background:#146c92; border-color:#146c92; color:#fff; }
.gcs-sim-button:disabled { opacity:.45; cursor:not-allowed; }
.gcs-sim-button:focus-visible, .gcs-sim-example:focus-visible { outline:3px solid #f3bd3f; outline-offset:2px; }
.gcs-sim-reset { background:#fff; color:#536477; }
.gcs-sim-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.gcs-sim-stat { background:#f6f8fa; padding:12px 8px; border-radius:9px; text-align:center; }
.gcs-sim-stat span { display:block; color:#607084; font-size:11px; }
.gcs-sim-stat strong { display:block; font-size:16px; margin-top:4px; color:#1c3147; font-variant-numeric:tabular-nums; }
.gcs-sim-target-probability { color:#42556e; font-size:12px; line-height:1.7; padding:12px 2px; }
.gcs-sim-history { border-top:1px solid #e8edf2; padding-top:14px; margin-top:4px; }
.gcs-sim-recent { list-style:decimal; padding-left:1.5em; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 16px; font-size:13px; color:#384a5b; }
.gcs-sim-recent li { overflow-wrap:anywhere; }
.gcs-sim-placeholder { list-style:none; color:#8896a3; }
.gcs-sim-details { margin-top:14px; font-size:13px; color:#394b5b; }
.gcs-sim-details summary { cursor:pointer; font-weight:750; }
.gcs-sim-breakdown { margin:10px 0 0; padding-left:20px; }
@media (max-width:560px) { .gcs-sim-frame{padding:12px;} .gcs-sim-stats{grid-template-columns:repeat(2,minmax(0,1fr));} .gcs-sim-recent{grid-template-columns:1fr;} .gcs-sim-button{flex:1 1 38%;} }
@media (prefers-reduced-motion: reduce) { .gcs-sim * { transition:none!important; animation:none!important; } }

.gcs-sim-win-title { color:#116a49; font-size:14px; }
.gcs-sim-target-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.gcs-sim-target-heading { color:#263d56; font-size:13px; }
.gcs-sim-target-hit { color:#146343; background:#e8f7ed; border-radius:20px; padding:4px 10px; font-weight:750; }
.gcs-sim-target-miss { color:#536477; background:#eef2f6; border-radius:20px; padding:4px 10px; font-weight:750; }
.gcs-sim-target-detail { margin:5px 0 0; font-size:12px; line-height:1.8; }

/* v0.3.137: real lineup photos where explicitly matched; visual batch results. */
.gcs-sim-image-note { margin:9px 0 13px; padding:9px 12px; border-left:3px solid #bfd9e8; background:#f6f9fc; border-radius:5px; color:#526278; font-size:12px; line-height:1.7; }
.gcs-sim-product-preview { display:flex; align-items:center; gap:10px; margin:12px 0 3px; padding:9px 11px; background:#f8fafc; border:1px solid #e6ebf2; border-radius:10px; color:#536478; font-size:12px; line-height:1.5; }
.gcs-sim-product-photo { display:block; width:54px; height:54px; flex:none; object-fit:contain; background:#fff; border-radius:8px; }
.gcs-sim-stage { display:flex; align-items:center; justify-content:center; gap:20px; min-height:100px; }
.gcs-sim-stage .gcs-sim-capsule { flex:none; }
.gcs-sim-stage-animate .gcs-sim-capsule { animation:gcs-sim-spin .6s ease-out; }
.gcs-sim-reveal { display:none; max-width:calc(100% - 105px); min-width:0; color:#233e54; font-size:13px; font-weight:750; }
.gcs-sim-has-reveal .gcs-sim-reveal { display:flex; align-items:center; flex-direction:column; gap:6px; animation:gcs-sim-reveal-in .38s ease-out both; }
.gcs-sim-has-reveal .gcs-sim-capsule { width:46px; height:69px; }
.gcs-sim-has-reveal .gcs-sim-capsule::after { top:8px; left:7px; width:6px; height:20px; }
.gcs-sim-reveal-picture { display:flex; justify-content:center; align-items:center; width:120px; height:120px; max-width:100%; padding:6px; border-radius:15px; background:#fff; box-shadow:0 5px 20px rgba(25,65,92,.11); }
.gcs-sim-reveal-image { display:block; width:100%; height:100%; object-fit:contain; border-radius:9px; }
.gcs-sim-reveal-picture .gcs-sim-empty-icon { font-size:38px; }
.gcs-sim-reveal-name { display:block; max-width:260px; overflow-wrap:anywhere; text-align:center; }
.gcs-sim-main-result { margin:0; }
.gcs-sim-batch { margin:4px 0 19px; padding:15px 0 3px; border-top:1px solid #e6edf3; }
.gcs-sim-batch[hidden] { display:none!important; }
.gcs-sim-batch .gcs-sim-batch-heading { margin:0 0 5px; font-size:15px; font-weight:800; color:#233e56; }
.gcs-sim-batch-summary { margin:0 0 12px; color:#4b657a; font-size:12px; line-height:1.65; }
.gcs-sim-batch-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; gap:10px; padding:0; margin:0; }
.gcs-sim-result-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0; padding:9px 7px 12px; border:1px solid #e2e9ee; background:#fff; border-radius:11px; overflow-wrap:anywhere; }
.gcs-sim-result-card.gcs-sim-result-hit { border-color:#6fb79d; background:#f3fbf5; }
.gcs-sim-card-number { align-self:flex-start; font-size:10px; font-weight:750; color:#7890a0; }
.gcs-sim-result-picture { width:100%; height:105px; background:#f6f8fa; display:flex; justify-content:center; align-items:center; overflow:hidden; border-radius:9px; }
.gcs-sim-result-img { display:block; width:100%; height:100%; object-fit:contain; }
.gcs-sim-empty-icon { font-size:26px; line-height:1; opacity:.65; }
.gcs-sim-card-name { font-size:12px; color:#253a4b; font-weight:700; text-align:center; line-height:1.45; }
.gcs-sim-card-hit { display:block; width:100%; color:#0f734f; background:#e0f4e9; padding:4px 2px; border-radius:6px; text-align:center; font-size:10px; font-weight:800; }
.gcs-sim-result-picture.gcs-sim-picture-missing { background:#f8fafb; }
@keyframes gcs-sim-reveal-in { from { transform:translateY(9px) scale(.93); opacity:0; } to { transform:translateY(0) scale(1); opacity:1; } }
@media (min-width:561px) and (max-width:830px) { .gcs-sim-batch-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:560px) {
  .gcs-sim-draw-panel { min-height:135px; padding:14px 10px; }
  .gcs-sim-result-picture { height:110px; }
  .gcs-sim-batch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .gcs-sim-result-card { padding:8px 7px 10px; }
  .gcs-sim-reveal-picture { width:98px; height:98px; }
  .gcs-sim-reveal { max-width:calc(100% - 70px); }
  .gcs-sim-stage { gap:12px; }
  .gcs-sim-batch { margin-top:6px; }
}
@media (prefers-reduced-motion:reduce) {
  .gcs-sim-stage-animate .gcs-sim-capsule,
  .gcs-sim-has-reveal .gcs-sim-reveal { animation:none!important; }
}

/* v0.3.138: split-open capsule, progress/completion and clear grade badges. */
.gcs-sim-stage { overflow:visible; }
.gcs-sim-capsule { background:transparent; border:0; box-shadow:none; border-radius:0; transform:rotate(-25deg); overflow:visible; }
.gcs-sim-capsule::after { content:none; }
.gcs-sim-capsule-top, .gcs-sim-capsule-bottom { display:block; position:absolute; left:0; width:100%; height:50%; border:3px solid #fff; box-shadow:inset 8px 1px 13px rgba(255,255,255,.22), 0 10px 20px rgba(30,64,95,.12); }
.gcs-sim-capsule-top { top:0; border-radius:40px 40px 8px 8px; background:linear-gradient(120deg,#ffa6b4 0%,#fb7185 60%,#ed5077 100%); transform-origin:center bottom; }
.gcs-sim-capsule-bottom { top:50%; border-radius:8px 8px 40px 40px; background:linear-gradient(110deg,#9be2eb,#54c2d4 60%,#35a9bf); transform-origin:center top; }
.gcs-sim-capsule-top::before { content:''; display:block; position:absolute; width:8px; height:25px; top:12px; left:11px; border-radius:10px; background:rgba(255,255,255,.42); transform:rotate(15deg); }
.gcs-sim-capsule-band { display:block; position:absolute; top:calc(50% - 3px); width:100%; height:6px; background:#fff; border-radius:12px; z-index:2; }
.gcs-sim-stage-open .gcs-sim-capsule-top { animation:gcs-sim-pop-top .74s ease-in-out both; }
.gcs-sim-stage-open .gcs-sim-capsule-bottom { animation:gcs-sim-pop-bottom .74s ease-in-out both; }
.gcs-sim-stage-open .gcs-sim-capsule-band { animation:gcs-sim-band-away .5s ease-in .18s both; }
@keyframes gcs-sim-pop-top { 0%,20% { transform:translate(0,0) rotate(0); } 45% { transform:translate(1px,-5px) rotate(-6deg); } 100% { transform:translate(-16px,-24px) rotate(-27deg); } }
@keyframes gcs-sim-pop-bottom { 0%,20% { transform:translate(0,0) rotate(0); } 45% { transform:translate(-1px,5px) rotate(6deg); } 100% { transform:translate(13px,22px) rotate(15deg); } }
@keyframes gcs-sim-band-away { to { opacity:0; transform:scaleX(.6); } }
.gcs-sim-stage-open .gcs-sim-reveal { display:none; }
.gcs-sim-has-reveal .gcs-sim-reveal { display:flex; }
.gcs-sim-has-reveal .gcs-sim-capsule { width:64px; height:96px; }
.gcs-sim-has-reveal .gcs-sim-capsule::after { content:none; }
.gcs-sim-collection { margin:12px 0 2px; padding:12px 14px; border:1px solid #e6edf0; background:#f9fbfc; border-radius:10px; }
.gcs-sim-collection-label { font-size:12px; font-weight:800; color:#345063; margin-bottom:8px; }
.gcs-sim-collection-track { width:100%; height:10px; border-radius:20px; background:#e1e9ed; overflow:hidden; }
.gcs-sim-collection-bar { display:block; width:0; height:100%; border-radius:20px; background:linear-gradient(90deg,#4baec5,#45b88c); transition:width .24s ease-out; }
.gcs-sim-complete { margin-top:10px; padding:9px 11px; border:1px solid #b5dfc7; background:#ecf9ef; border-radius:8px; color:#135d43; font-size:13px; font-weight:800; line-height:1.6; }
.gcs-sim-complete[hidden] { display:none!important; }
.gcs-sim-result-hit { outline:2px solid #2b9c6f; outline-offset:-2px; box-shadow:0 3px 14px rgba(38,142,95,.17); }
.gcs-sim-result-hit .gcs-sim-card-name { color:#075f43; }
.gcs-sim-grade { display:inline-block; align-self:flex-start; border-radius:30px; padding:2px 8px; border:1px solid #cad6e2; color:#3c5268; background:#f0f5fa; font-size:10px; font-weight:800; line-height:1.5; white-space:nowrap; }
.gcs-sim-grade-A { border-color:#d9bb82; background:#fff6df; color:#725220; }
.gcs-sim-grade-B { border-color:#b6d5e9; background:#eef8fe; color:#295774; }
.gcs-sim-grade-C { border-color:#c3d8c3; background:#f0f9f0; color:#3b6246; }
.gcs-sim-reveal > .gcs-sim-grade { align-self:center; }
.gcs-sim-weight-box .gcs-sim-weight-live { margin:8px 0 10px; color:#284a6c; font-size:12px; background:#fff; border:1px solid #dce5ed; border-radius:8px; padding:8px 10px; }
@media (max-width:560px) { .gcs-sim-collection {padding:10px;} .gcs-sim-stage { gap:8px; } .gcs-sim-draw-panel {overflow:visible;} }
@media (prefers-reduced-motion:reduce) { .gcs-sim-collection-bar { transition:none!important; } .gcs-sim-stage-open .gcs-sim-capsule-top, .gcs-sim-stage-open .gcs-sim-capsule-bottom, .gcs-sim-stage-open .gcs-sim-capsule-band {animation:none!important;} }

/* v0.3.139: safe display-only admin diagnostic on incomplete products. */
.gcs-sim-unavailable { border:1px solid #ebd9b9; border-radius:12px; padding:14px 16px; background:#fffefa; }
.gcs-sim-unavailable .gcs-sim-alert { margin:12px 0; line-height:1.8; }
.gcs-sim-unavailable a { font-weight:700; }


/* v0.3.143: compact, closed-by-default public simulator. */
.gcs-design-v026 .gcs-detail-section.gcs-sim-ready { margin-top:22px; padding-top:18px; }
.gcs-sim-ready .gcs-detail-section-title { margin-bottom:11px; }
.gcs-sim-fold { margin:0; border:1px solid #d8e5ee; border-radius:14px; background:#fff; overflow:hidden; box-shadow:0 3px 12px rgba(22,62,90,.04); }
.gcs-sim-fold-trigger { display:flex; align-items:center; gap:12px; min-height:76px; margin:0; padding:12px 16px; color:#213649; cursor:pointer; list-style:none; background:linear-gradient(115deg,#f3fafc,#fff); }
.gcs-sim-fold-trigger::-webkit-details-marker { display:none; }
.gcs-sim-fold-trigger::marker { content:''; }
.gcs-sim-fold-trigger:hover { background:#edf8fb; }
.gcs-sim-fold-trigger:focus-visible { outline:3px solid #1c849d; outline-offset:-4px; border-radius:12px; }
.gcs-sim-fold-icon { width:43px; height:43px; flex:0 0 43px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:#dff4f4; font-size:24px; }
.gcs-sim-fold-label { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.gcs-sim-fold-label strong { display:block; font-size:15px; font-weight:800; line-height:1.45; color:#21445a; overflow-wrap:anywhere; }
.gcs-sim-fold-label small { display:block; font-size:12px; line-height:1.5; color:#66798a; }
.gcs-sim-fold-action { flex:none; display:inline-flex; gap:9px; align-items:center; font-size:12px; font-weight:800; color:#146f85; }
.gcs-sim-fold-chevron { display:block; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .2s ease; }
.gcs-sim-open-label { display:none; }
.gcs-sim-fold[open] .gcs-sim-open-label { display:inline; }
.gcs-sim-fold[open] .gcs-sim-closed-label { display:none; }
.gcs-sim-fold[open] .gcs-sim-fold-chevron { transform:translateY(3px) rotate(225deg); }
.gcs-sim-fold-content { padding:14px 16px 18px; border-top:1px solid #e4edf2; }
.gcs-sim-fold-content > :first-child { margin-top:0; }
.gcs-sim-fold-content .gcs-sim-frame { box-shadow:none; }
@media (max-width:560px) {
  .gcs-sim-fold-trigger { gap:9px; min-height:68px; padding:10px 12px; }
  .gcs-sim-fold-icon { width:38px; height:38px; flex-basis:38px; font-size:21px; }
  .gcs-sim-fold-label strong { font-size:14px; }
  .gcs-sim-fold-label small { font-size:11px; }
  .gcs-sim-fold-action { gap:6px; font-size:11px; }
  .gcs-sim-fold-content { padding:10px 11px 13px; }
}
@media (prefers-reduced-motion:reduce) { .gcs-sim-fold-chevron { transition:none; } }
