*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
     background:#f0f2f5;color:#1a1a2e;font-size:14px}
.topbar{background:#fff;color:#1a1a2e;
        height:68px;display:flex;align-items:center;justify-content:space-between;
        padding:0 20px;position:sticky;top:0;z-index:200;
        box-shadow:0 2px 8px rgba(0,0,0,.08);border-bottom:1px solid #e2e8f0}
.topbar-left{display:flex;align-items:center;gap:10px;flex-shrink:0}
.topbar-title{font-size:15px;font-weight:700;color:#1a1a2e}

/* Topbar timer (right side) */
.topbar-right{display:flex;align-items:flex-end;gap:12px;flex-shrink:0;margin-left:auto}
.topbar-pause-btn{white-space:nowrap;padding:6px 12px;font-size:12px;line-height:1.2}
.topbar-pause-btn:disabled{opacity:.45;cursor:not-allowed}
.topbar-timer{display:none;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0}
.topbar-timer.visible{display:flex}
.experiment-pause-overlay{z-index:1200}
.experiment-pause-modal{max-width:420px;text-align:center;padding:28px 24px 22px}
.experiment-pause-modal h2{font-size:20px;font-weight:700;color:#2b6cb0;margin:0 0 8px}
.experiment-pause-hint{font-size:13px;color:#718096;line-height:1.5;margin:0 0 16px}
.experiment-pause-timer-val{font-size:36px;font-weight:800;font-variant-numeric:tabular-nums;color:#2b6cb0;margin-bottom:8px}
.experiment-pause-timer-track{width:100%;max-width:280px;height:6px;background:#e2e8f0;border-radius:3px;margin:0 auto 20px;overflow:hidden}
.experiment-pause-timer-fill{height:100%;background:#3182ce;border-radius:3px;transition:width .35s linear}
.topbar-timer-label{font-size:10px;font-weight:600;color:#718096;
                    letter-spacing:.03em}
.topbar-timer-val{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;
                  color:#2d3748;line-height:1}
.topbar-timer-val.warn{color:#c05621}
.topbar-timer-val.urgent{color:#c53030;animation:pulse .8s infinite}
.topbar-timer-track{width:90px;height:4px;background:#e2e8f0;
                    border-radius:2px;overflow:hidden}
.topbar-timer-fill{height:100%;background:#3182ce;border-radius:2px;
                   transition:width .9s linear,background .3s}
.topbar-timer-fill.warn{background:#ed8936}
.topbar-timer-fill.urgent{background:#e53e3e}
.badge{padding:3px 10px;border-radius:20px;font-size:12.5px;font-weight:600}
.badge-id{background:#edf2f7;color:#4a5568;font-size:12px}

/* Round counter in topbar */
.round-counter{display:flex;flex-direction:column;align-items:center;gap:4px}
.round-counter-label{font-size:11px;font-weight:600;color:#a0aec0;
                     letter-spacing:.03em}
.round-counter-main{display:flex;align-items:baseline;gap:4px;line-height:1}
.round-counter-cur{font-size:26px;font-weight:800;color:#1a202c;
                    font-variant-numeric:tabular-nums;line-height:1}
.round-counter-sep{font-size:13px;font-weight:500;color:#cbd5e0}
.round-counter-tot{font-size:14px;font-weight:600;color:#718096}
.round-progress-wrap{width:min(220px,44vw);min-height:10px;margin-top:2px}
.round-dots{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}
.round-dots.is-hidden{display:none}
.round-dot{width:6px;height:6px;border-radius:50%;background:#e2e8f0;
           transition:background .3s,transform .3s}
.round-dot.done{background:#48bb78}
.round-dot.cur{background:#3182ce;transform:scale(1.35);
               box-shadow:0 0 0 2px rgba(49,130,206,.25)}
.round-bar{width:100%}
.round-bar[hidden]{display:none!important}
.round-bar-track{height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.round-bar-fill{height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,#63b3ed 0%,#3182ce 100%);
  transition:width .65s ease}
.page{max-width:1240px;margin:0 auto;padding:16px 16px 80px;
  display:flex;align-items:flex-start;gap:16px;
  transition:padding-right .3s ease,transform .3s ease}
body.ai-open .page{padding-right:16px}
@media(max-width:800px){
  body.ai-open .page{padding-right:16px}
}
.page-main{flex:1;min-width:0;--pair-card-width:clamp(260px,30vw,380px)}
.section{background:#fff;border-radius:10px;padding:16px 18px;margin-bottom:14px;
         box-shadow:0 1px 4px rgba(0,0,0,.07)}
.section-header{display:flex;align-items:center;justify-content:space-between;
                padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #edf2f7}
.section-title{font-size:15px;font-weight:700;color:#1a202c;display:flex;align-items:center;gap:7px}
.section-title.task-section-title{flex-direction:column;align-items:flex-start;gap:6px}
.task-title-label{font-size:20px;font-weight:800;color:#c53030;line-height:1.3}
.task-title-body-line1,.task-title-body-line2{margin:0;font-size:15px;font-weight:500;color:#4a5568;line-height:1.55;max-width:52rem}
.task-title-body-line2{margin-top:4px}
.preset-anchor-section{border:1.5px solid #bee3f8;background:linear-gradient(180deg,#f7fbff 0%,#fff 100%)}
.preset-anchor-title-wrap{align-items:center}
.preset-anchor-label{font-size:18px;font-weight:800;color:#2b6cb0;line-height:1.3}
.preset-anchor-card-wrap{display:flex;justify-content:stretch;padding:4px 0 8px}
.preset-anchor-card-wrap .pcard.preset-anchor-card{
  display:flex;flex-direction:row;align-items:stretch;
  max-width:100%;width:100%;cursor:default;
  box-shadow:0 0 0 2px rgba(49,130,206,.2)}
.preset-anchor-card-wrap .pcard.preset-anchor-card.readonly:hover{
  transform:none;box-shadow:0 0 0 2px rgba(49,130,206,.25)}
.preset-anchor-card-wrap .preset-anchor-card .card-img-wrap{
  flex:0 0 min(240px,38%);max-width:38%;min-height:200px;
  display:flex;align-items:center;justify-content:center;
  background:#f7fafc;border-right:1px solid #edf2f7}
.preset-anchor-card-wrap .preset-anchor-card .card-img-wrap img{
  width:100%;height:100%;min-height:200px;max-height:320px;
  object-fit:contain;object-position:center;background:#f7fafc}
.preset-anchor-card-wrap .preset-anchor-card .card-body{
  flex:1;min-width:0;padding:12px 14px 14px;display:flex;flex-direction:column}
.preset-anchor-card-wrap .preset-anchor-card .card-desc{
  max-height:200px;overflow-y:auto}
@media(max-width:640px){
  .preset-anchor-card-wrap .pcard.preset-anchor-card{flex-direction:column}
  .preset-anchor-card-wrap .preset-anchor-card .card-img-wrap{
    flex:0 0 auto;max-width:100%;width:100%;min-height:160px;border-right:none;
    border-bottom:1px solid #edf2f7}
  .preset-anchor-card-wrap .preset-anchor-card .card-img-wrap img{max-height:220px}
}
.pair-choices-label{font-size:15px;font-weight:700;color:#2d3748;margin:0 0 12px;padding-top:4px}
.card-role-badge{position:absolute;top:10px;left:10px;z-index:2;padding:4px 10px;border-radius:6px;
  font-size:11px;font-weight:800;letter-spacing:.02em;background:rgba(26,32,44,.82);color:#fff}
.pcard{position:relative}
.pcard.readonly{cursor:default}
.pcard.readonly:hover{border-color:#e2e8f0}
.recommendation-option-card .card-role-badge{background:#2b6cb0}
.recommendation-option-card#cardB .card-role-badge{background:#6b46c1}
.icon-box{width:24px;height:24px;background:#ebf8ff;border-radius:6px;
          display:flex;align-items:center;justify-content:center;font-size:14px}
.task-bar{background:linear-gradient(135deg,#ebf8ff,#e9d8fd);
          border:1.5px solid #bee3f8;border-radius:10px;
          padding:14px 20px;margin-bottom:14px;
          box-shadow:0 2px 8px rgba(66,153,225,.12)}
.task-bar-label{font-size:13px;font-weight:700;letter-spacing:.04em;
                color:#553c9a;margin-bottom:8px}
.task-bar-text{font-size:17px;font-weight:600;color:#1a202c;line-height:1.7}
.task-bar-text strong{color:#2b6cb0}
.task-bar-count{display:inline-flex;align-items:center;justify-content:center;
                background:#3182ce;color:#fff;font-size:18px;font-weight:800;
                width:32px;height:32px;border-radius:50%;
                margin:0 4px;vertical-align:middle;line-height:1}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:10px}
/* 备选池：通常 2 个商品，并排展示完整信息 */
.pool-rich-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.pool-rich-card{border:1.5px solid #e2e8f0;border-radius:10px;background:#fff;
  display:flex;flex-direction:column;overflow:hidden;transition:box-shadow .18s}
.pool-rich-card:hover{box-shadow:0 3px 12px rgba(0,0,0,.08)}
.pool-rich-img{width:100%;height:160px;object-fit:contain;background:#f7fafc;
  display:block;padding:10px;box-sizing:border-box}
.pool-rich-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.pool-rich-title{font-size:14px;font-weight:700;color:#1a202c;line-height:1.35}
.pool-rich-price{font-size:15px;font-weight:700;color:#e53e3e}
.pool-rich-price small{font-size:12px;font-weight:400;color:#718096;margin-left:6px}
.pool-rich-rating{font-size:12px;color:#4a5568}
.pool-rich-tags{display:flex;flex-wrap:wrap;gap:4px}
.pool-rich-desc{max-height:260px;overflow-y:auto;color:#4a5568;line-height:1.55;
  white-space:pre-wrap;font-size:12px;border-top:1px solid #edf2f7;padding-top:8px;margin-top:4px}
.pool-rich-actions{margin-top:auto;padding-top:8px}
.pcard{border:1.5px solid #e2e8f0;border-radius:9px;background:#fff;overflow:hidden;
       transition:box-shadow .18s,border-color .18s,transform .15s;user-select:none}
.pcard:hover{box-shadow:0 3px 10px rgba(0,0,0,.09);transform:translateY(-1px)}
.feedback-section{border:1.5px solid #bee3f8;background:#ebf8ff}
.feedback-text{font-size:13px;line-height:1.7;color:#2d3748;white-space:pre-line;
  background:#fff;border:1px solid #bee3f8;border-radius:8px;padding:10px 12px}
.retained-section{border:1.5px solid #c6f6d5;background:#f0fff4}
.retained-section .section-header{position:relative}
.history-toggle-btn{padding:6px 12px;border:1px solid #9ae6b4;border-radius:999px;
  background:#fff;color:#276749;font-size:12px;font-weight:700;cursor:pointer;
  transition:background .15s,border-color .15s,box-shadow .15s;
  position:absolute;left:50%;transform:translateX(-50%)}
.history-toggle-btn:hover{background:#c6f6d5;box-shadow:0 2px 8px rgba(56,161,105,.18)}
.selected-history-body{width:min(100%,calc(2 * var(--pair-card-width, 330px) + 12px));margin:0 auto}
.selected-history-body[hidden]{display:none!important}
.selected-history-head{display:grid;grid-template-columns:48px 40px minmax(92px,.72fr) minmax(190px,1.45fr) 130px;
  gap:8px;padding:0 8px 5px;color:#718096;font-size:11px;
  font-weight:700;line-height:1.2;border-bottom:1px solid #dff5e8}
.selected-history-grid{display:flex;flex-direction:column;gap:4px;max-height:210px;
  overflow-y:auto;padding:5px 4px 0 0}
.history-product-card{display:grid;grid-template-columns:48px 40px minmax(92px,.72fr) minmax(190px,1.45fr) 130px;
  align-items:center;gap:8px;background:#fff;
  border:1px solid #c6f6d5;border-radius:7px;padding:5px 8px;
  box-shadow:0 1px 3px rgba(72,187,120,.08)}
.history-product-img{width:40px;height:40px;border-radius:5px;object-fit:contain;
  background:#f7fafc}
.history-product-round{color:#2d3748;font-size:13px;font-weight:700;line-height:1.2;
  text-align:center;white-space:nowrap}
.history-product-name{font-size:12px;font-weight:700;color:#2d3748;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-product-category{font-size:11.5px;color:#718096;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-product-revenue{font-size:11.5px;color:#2d3748;line-height:1.35;font-weight:700;white-space:nowrap}
.history-product-revenue span{font-weight:600;color:#718096;margin-right:6px}
.selected-history-empty{text-align:center;color:#718096;font-size:13px;
  background:#fff;border:1px dashed #9ae6b4;border-radius:8px;padding:14px}
@media(max-width:640px){
  .retained-section .section-header{align-items:flex-start;gap:10px;flex-direction:column}
  .history-toggle-btn{position:static;transform:none;align-self:center}
  .selected-history-grid{max-height:260px}
  .selected-history-head{display:none}
  .history-product-card{grid-template-columns:36px 40px minmax(0,1fr);grid-template-areas:"round img name" "round img cat" "round img rev"}
  .history-product-img{grid-area:img}
  .history-product-name{grid-area:name}
  .history-product-category{grid-area:cat}
  .history-product-revenue{grid-area:rev}
  .history-product-round{text-align:left;color:#2b6cb0;font-size:11px}
  .history-product-revenue{font-size:11px}
}

/* Shop card: newly added from pool */
.pcard.new-in{border-color:#38a169;box-shadow:0 0 0 3px rgba(56,161,105,.18)}
.pcard.new-in:hover{border-color:#2f855a;box-shadow:0 4px 12px rgba(56,161,105,.28)}
.new-in-banner{background:#38a169;color:#fff;font-size:11.5px;font-weight:700;
  text-align:center;padding:3px 0;letter-spacing:.02em}

/* Staging area (products marked for removal) */
.staging-section{background:#fff8f0;border:1.5px dashed #f6ad55;
  border-radius:10px;padding:14px 18px;margin-bottom:14px;display:none}
.staging-section.visible{display:block}
.staging-title{font-size:12.5px;font-weight:700;color:#c05621;
  margin-bottom:10px;display:flex;align-items:center;gap:6px}
.stage-cards{display:flex;flex-wrap:wrap;gap:8px}
.stage-card{display:flex;align-items:center;gap:8px;background:#fff;
  border:1.5px solid #f6ad55;border-radius:8px;padding:7px 10px;
  min-width:180px;max-width:240px}
.stage-card img{width:40px;height:40px;border-radius:5px;object-fit:cover;flex-shrink:0}
.stage-info{flex:1;min-width:0}
.stage-name{font-size:12px;font-weight:600;color:#2d3748;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.stage-price{font-size:11px;color:#718096}
.stage-undo{background:none;border:none;color:#c05621;font-size:20px;
  cursor:pointer;padding:0 2px;line-height:1;flex-shrink:0}
.stage-undo:hover{color:#e53e3e}

/* Submit footer */
.submit-footer{background:#fff;border-radius:10px;padding:14px 20px;
  box-shadow:0 1px 4px rgba(0,0,0,.07);margin-bottom:14px;
  display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.card-img-wrap{position:relative}
.card-img-wrap img{width:100%;height:108px;object-fit:cover;display:block;
  cursor:pointer;transition:opacity .15s}
.card-img-wrap img:hover{opacity:.88}
.card-body{padding:8px 9px 10px}
.card-name{font-size:12.5px;font-weight:600;color:#2d3748;
           white-space:normal;overflow:visible;text-overflow:clip;
           word-break:break-word;line-height:1.45;margin-bottom:3px}
.card-price{font-size:14px;font-weight:700;color:#e53e3e}
.card-price small{font-size:11px;font-weight:400;color:#718096;margin-left:4px}
.card-meta{margin-top:5px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.card-tag{background:#edf2f7;color:#4a5568;font-size:10.5px;padding:1px 6px;border-radius:12px}
.card-rating{font-size:11px;color:#d69e2e;font-weight:600}
.card-info{margin-top:7px;display:flex;flex-direction:column;gap:4px}
.card-info-line{font-size:12px;line-height:1.5;color:#4a5568;white-space:pre-line}
.card-desc{margin-top:0;font-size:12px;line-height:1.5;color:#4a5568;
  white-space:pre-line;overflow:visible}
.ai-rec{font-size:10.5px;color:#3182ce;font-weight:700;margin-bottom:2px}
.sel-counter{font-size:13.5px;font-weight:600;color:#2d3748}
.sel-counter.no-change{color:#718096}
.btn{padding:9px 22px;border-radius:7px;border:none;font-size:13.5px;font-weight:600;
     cursor:pointer;transition:background .15s,opacity .15s,transform .1s}
.btn:active{transform:scale(.97)}
.btn-primary{background:#3182ce;color:#fff}
.btn-primary:hover:not(:disabled){background:#2b6cb0}
.btn-primary:disabled{background:#bee3f8;color:#93c5fd;cursor:not-allowed;transform:none}
.submitted-tag{background:#c6f6d5;color:#276749;padding:5px 14px;border-radius:20px;
               font-size:12.5px;font-weight:600}
.skeleton{background:linear-gradient(90deg,#edf2f7 25%,#e2e8f0 50%,#edf2f7 75%);
          background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:6px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skeleton-card{border-radius:9px;height:185px}
/* ── Final round ─────────────────────────────────────────── */
.final-round-banner{background:linear-gradient(135deg,#ebf8ff,#e9d8fd);
  border:1.5px solid #bee3f8;border-radius:10px;
  padding:20px 24px;margin-bottom:14px;text-align:center;
  box-shadow:0 2px 8px rgba(66,153,225,.12)}
.final-round-banner-title{font-size:20px;font-weight:800;color:#2b6cb0;margin-bottom:6px}
.final-round-banner-sub{font-size:14px;color:#4a5568;line-height:1.6}

/* Final round two-column layout */
.final-columns{display:flex;gap:16px;align-items:flex-start}
.final-col-history{flex:0 0 42%;min-width:0;
  position:sticky;top:84px;max-height:calc(100vh - 100px);
  overflow-y:auto}
.final-col-q{flex:1;min-width:0}
.final-submit-row{margin-top:16px}
@media(max-width:720px){
  .final-columns{flex-direction:column}
  .final-col-history{position:static;max-height:none;flex:none;width:100%}
}

.history-round-card{border:1px solid #e2e8f0;border-radius:9px;
  padding:14px 16px;margin-bottom:10px;background:#f7fafc}
.history-round-card:last-child{margin-bottom:0}
.history-round-label{font-size:13px;font-weight:700;color:#2d3748;
  margin-bottom:8px;display:flex;align-items:center;gap:6px}
.history-auto-tag{font-size:11px;background:#feebc8;color:#c05621;
  padding:1px 7px;border-radius:10px;font-weight:600}
.history-decision{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.history-badge{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:16px}
.history-badge.no-change{background:#edf2f7;color:#718096}
.history-badge.removed{background:#fff5f5;color:#c53030}
.history-badge.added{background:#f0fff4;color:#276749}
.history-feedback{font-size:13px;color:#4a5568;line-height:1.7;
  white-space:pre-line;padding-top:8px;border-top:1px solid #e2e8f0;margin-top:8px}

/* Questionnaire timer banner */
.q-timer-bar{display:flex;align-items:center;gap:10px;
  background:linear-gradient(135deg,#ebf8ff,#e9d8fd);
  border:1.5px solid #bee3f8;border-radius:8px;
  padding:8px 14px;margin-bottom:16px}
.q-timer-bar-label{font-size:11.5px;font-weight:600;color:#553c9a;white-space:nowrap}
.q-timer-bar-val{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;
  color:#2b6cb0;line-height:1;min-width:52px}
.q-timer-bar-val.warn{color:#c05621}
.q-timer-bar-val.urgent{color:#c53030;animation:pulse .8s infinite}
.q-timer-bar-track{flex:1;height:6px;background:rgba(0,0,0,.08);border-radius:3px;overflow:hidden}
.q-timer-bar-fill{height:100%;background:#3182ce;border-radius:3px;
  transition:width .9s linear,background .3s}
.q-timer-bar-fill.warn{background:#ed8936}
.q-timer-bar-fill.urgent{background:#e53e3e}

/* (kept for legacy references) */
.timer-progress{flex:1;height:6px;background:#edf2f7;border-radius:3px;overflow:hidden}
.timer-progress-fill{height:100%;background:#48bb78;border-radius:3px;
                     transition:width .9s linear,background .3s}
.timer-progress-fill.warn{background:#ed8936}
.timer-progress-fill.urgent{background:#e53e3e}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.toast{position:fixed;bottom:24px;right:24px;background:#fc8181;color:#fff;
       padding:10px 18px;border-radius:8px;font-size:13.5px;font-weight:600;
       box-shadow:0 4px 14px rgba(0,0,0,.2);display:none;z-index:999;max-width:320px}
.toast.show{display:block;animation:slideUp .25s ease}
.toast.info{background:#4299e1}
@keyframes slideUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* Round transition overlay */
.round-transition{position:fixed;inset:0;z-index:900;background:rgba(15,23,42,.7);
                  display:none;align-items:center;justify-content:center;
                  animation:rtFadeIn .3s ease}
.round-transition.show{display:flex}
@keyframes rtFadeIn{from{opacity:0}to{opacity:1}}
.rt-card{background:#fff;border-radius:20px;padding:40px 48px 36px;
         text-align:center;width:100%;max-width:420px;
         box-shadow:0 32px 80px rgba(0,0,0,.35);
         animation:rtPop .35s cubic-bezier(.34,1.56,.64,1)}
@keyframes rtPop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
.rt-check{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#48bb78,#38a169);
          display:flex;align-items:center;justify-content:center;margin:0 auto 20px;
          font-size:34px;animation:rtCheck .4s .2s both;box-shadow:0 8px 24px rgba(72,187,120,.4)}
@keyframes rtCheck{from{transform:scale(0) rotate(-30deg)}to{transform:scale(1) rotate(0)}}
.rt-done{font-size:26px;font-weight:800;color:#1a202c;margin-bottom:8px;line-height:1.2}
.rt-practice-note{font-size:13px;color:#805ad5;background:#faf5ff;border:1px solid #e9d8fd;
  border-radius:8px;padding:6px 12px;margin:0 auto 10px;max-width:420px;line-height:1.45}
.rt-procurement{font-size:15px;color:#4a5568;margin-bottom:14px;line-height:1.5}
.rt-sales-label{font-size:13px;font-weight:700;color:#2d3748;margin-bottom:6px;letter-spacing:.02em}
.rt-sales-stage{font-size:15px;font-weight:600;color:#3182ce;min-height:22px;margin-bottom:14px}
.rt-sub{font-size:14px;color:#718096;margin-bottom:6px}
.rt-auto-note{font-size:12.5px;color:#dd6b20;background:#fef3c7;border-radius:6px;
              padding:5px 12px;display:inline-block;margin-bottom:16px}
.rt-next{font-size:16px;font-weight:700;color:#3182ce;margin-bottom:20px}
.rt-bar-wrap{height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden;max-width:360px;margin:0 auto}
.rt-bar-fill{height:100%;background:linear-gradient(90deg,#48bb78,#3182ce);
             border-radius:3px;width:0;transition:width linear}
.formal-briefing-overlay{z-index:420}
.formal-briefing-modal{max-width:min(720px,92vw)}
.formal-briefing-body{font-size:14px;line-height:1.75;color:#4a5568;white-space:pre-line;
  max-height:min(52vh,420px);overflow-y:auto;padding:4px 2px 8px}
.q-text .briefing-highlight{color:#e53e3e;font-weight:700}
.briefing-highlight-strong{font-weight:700}
.formal-briefing-modal .modal-footer{justify-content:center}
.formal-briefing-modal .modal-footer .btn{min-width:220px}
.formal-briefing-modal .modal-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.formal-attention-intro{font-size:14px;color:#4a5568;margin:0 0 14px;line-height:1.6}
.formal-attention-questions{display:flex;flex-direction:column;gap:16px;max-height:min(56vh,520px);overflow-y:auto;padding:6px 10px 14px 4px}
.formal-attention-item{border:1px solid #e8edf3;border-radius:10px;padding:12px 14px;background:#fafbfc}
.formal-attention-item legend,.formal-attention-qtext{font-size:14px;font-weight:600;color:#2d3748;margin:0 0 10px;line-height:1.5}
.formal-attention-options{display:flex;flex-direction:column;gap:8px}
.formal-attention-option{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#4a5568;line-height:1.45;cursor:pointer}
.formal-attention-option input{margin-top:3px;flex-shrink:0}
.formal-attention-error{color:#c53030;font-size:13px;margin:0 0 10px;text-align:center}
.formal-attention-panel[hidden],.formal-attention-error[hidden]{display:none!important}
.practice-guide-overlay{position:fixed;inset:0;z-index:430;display:none;pointer-events:none}
.practice-guide-overlay.show{display:block}
.practice-guide-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.46)}
.practice-guide-spotlight{position:absolute;border:3px solid #f6ad55;border-radius:14px;
  box-shadow:0 0 0 9999px rgba(15,23,42,.46),0 12px 30px rgba(0,0,0,.24);
  transition:all .2s ease;background:rgba(255,255,255,.08)}
.practice-guide-bubble{position:absolute;width:320px;max-width:calc(100vw - 32px);background:#fff;
  border-radius:14px;padding:16px 16px 14px;box-shadow:0 18px 50px rgba(0,0,0,.28);
  pointer-events:auto;border:1px solid #fed7aa}
.practice-guide-step-count{font-size:11px;font-weight:700;color:#dd6b20;margin-bottom:6px}
.practice-guide-bubble h3{font-size:16px;font-weight:800;color:#1a202c;margin-bottom:8px}
.practice-guide-bubble p{font-size:13.5px;line-height:1.6;color:#4a5568;margin-bottom:14px}
.practice-guide-actions{display:flex;justify-content:flex-end;gap:8px}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:400;
               display:none;align-items:center;justify-content:center;padding:16px}
.modal-overlay.show{display:flex}
.modal{background:#fff;border-radius:14px;padding:28px 28px 24px;width:100%;
       max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3)}
/* In-round/post-test questionnaire: wider layout + inner scroll — see questionnaire-shared.css */
.modal h2{font-size:18px;font-weight:700;color:#1a202c;margin-bottom:20px}
.q-block{margin-bottom:20px;padding:14px 14px 12px;border-radius:9px;border:1.5px solid transparent;transition:border-color .2s,background .2s}
.q-block.error{border-color:#fc8181;background:#fff5f5}
.q-text{font-size:14px;font-weight:600;color:#2d3748;margin-bottom:10px;line-height:1.5}
.q-required-mark{color:#e53e3e;margin-left:3px;font-size:13px}
.q-error-hint{font-size:12px;color:#e53e3e;margin-top:6px;display:none}
.q-block.error .q-error-hint{display:block}
.q-options{display:flex;flex-direction:column;gap:8px}
.q-option{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13.5px}
.q-option input[type=radio]{accent-color:#3182ce;width:16px;height:16px}
/* ── Rating ── */
.rating-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rating-btn{width:36px;height:36px;border:1.5px solid #e2e8f0;border-radius:7px;
            background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#4a5568;transition:all .15s}
.rating-btn.active{background:#3182ce;border-color:#3182ce;color:#fff}
.rating-label{font-size:11.5px;color:#a0aec0;margin:0 4px}

/* ── Likert ── */
.likert-wrap{padding:6px 0}
.likert-row{display:flex;align-items:center;gap:10px}
.likert-end-label{font-size:12px;color:#718096;font-weight:600;white-space:nowrap;
  flex:0 0 auto;max-width:110px;line-height:1.3}
.likert-end-label.left{text-align:right}
.likert-end-label.right{text-align:left}
.likert-buttons{display:flex;gap:5px;flex:1;justify-content:center}
.likert-btn{width:40px;height:40px;border:1.5px solid #e2e8f0;border-radius:50%;
  background:#fff;cursor:pointer;font-size:13px;font-weight:700;color:#4a5568;transition:all .15s}
.likert-btn:hover{border-color:#3182ce;color:#3182ce}
.likert-btn.active{background:#3182ce;border-color:#3182ce;color:#fff;
  box-shadow:0 0 0 3px rgba(49,130,206,.2)}
@media(max-width:600px){
  .likert-row{flex-direction:column;align-items:flex-start;gap:6px}
  .likert-end-label.left,.likert-end-label.right{text-align:left;max-width:none}
  .likert-buttons{justify-content:flex-start}
}

/* ── Matrix ── */
.matrix-wrap{overflow-x:auto;margin:4px 0}
.matrix-table{border-collapse:collapse;width:100%;min-width:340px}
.matrix-table th,.matrix-table td{padding:8px 10px;text-align:center;border:1px solid #edf2f7}
.matrix-col-hd{font-size:12px;font-weight:600;color:#4a5568;background:#f7fafc}
.matrix-row-label{text-align:left!important;font-size:13px;color:#2d3748;
  background:#f7fafc;padding:10px 14px;white-space:nowrap}
.matrix-cell{vertical-align:middle}
.matrix-radio{display:flex;justify-content:center;cursor:pointer}
.matrix-radio input[type=radio]{display:none}
.matrix-dot{width:18px;height:18px;border:2px solid #cbd5e0;border-radius:50%;
  display:block;transition:all .15s}
.matrix-radio input[type=radio]:checked+.matrix-dot{border-color:#3182ce;
  background:#3182ce;box-shadow:0 0 0 3px rgba(49,130,206,.2)}
.matrix-table tbody tr:hover{background:#ebf8ff}

/* ── Slider ── */
.slider-wrap{padding:6px 0}
.slider-track-row{display:flex;align-items:center;gap:10px}
.slider-end-label{font-size:12px;color:#718096;font-weight:600;
  white-space:nowrap;flex:0 0 auto;max-width:100px}
.slider-input{flex:1;-webkit-appearance:none;appearance:none;height:6px;
  border-radius:3px;background:#e2e8f0;outline:none;cursor:pointer}
.slider-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;
  width:22px;height:22px;border-radius:50%;background:#3182ce;cursor:pointer;
  box-shadow:0 0 0 3px rgba(49,130,206,.2);transition:background .15s}
.slider-input::-moz-range-thumb{width:22px;height:22px;border-radius:50%;
  background:#3182ce;cursor:pointer;border:none}
.slider-val-display{text-align:center;font-size:13px;color:#4a5568;
  margin-top:8px;padding:4px 14px;background:#ebf8ff;border-radius:20px;
  display:inline-block;margin-left:auto;margin-right:auto;display:flex;
  justify-content:center}

/* ── Multi-choice ── */
.q-multi-opts{display:flex;flex-direction:column;gap:6px}
.q-multi-opts .q-option{display:flex;align-items:center;gap:8px;
  padding:7px 12px;border:1.5px solid #e2e8f0;border-radius:7px;cursor:pointer;
  transition:background .15s,border-color .15s}
.q-multi-opts .q-option:hover{background:#ebf8ff;border-color:#bee3f8}
.q-multi-opts .q-option input[type=checkbox]{width:15px;height:15px;cursor:pointer;
  accent-color:#3182ce}
.q-multi-opts .q-option:has(input:checked){background:#ebf8ff;border-color:#3182ce}

textarea.q-input{width:100%;padding:10px 12px;border:1.5px solid #e2e8f0;border-radius:7px;
                 font-size:13.5px;min-height:80px;resize:vertical;outline:none;
                 font-family:inherit;transition:border-color .15s}
textarea.q-input:focus{border-color:#90cdf4}
.q-block.error textarea.q-input{border-color:#fc8181}
.modal-footer{display:flex;justify-content:flex-end;margin-top:20px;padding-top:16px;
              border-top:1px solid #edf2f7}

/* AI fab */
.ai-fab{position:fixed;bottom:28px;right:28px;height:50px;
        padding:0 22px 0 16px;
        background:linear-gradient(135deg,#667eea,#764ba2);
        border-radius:25px;border:none;color:#fff;
        font-size:14px;font-weight:700;letter-spacing:.3px;
        cursor:pointer;z-index:300;display:none;align-items:center;gap:8px;
        box-shadow:0 4px 18px rgba(102,126,234,.6);
        transition:transform .2s,box-shadow .2s;
        animation:ai-pulse 2.4s ease-in-out infinite}
.ai-fab:hover{transform:translateY(-2px) scale(1.04);
  box-shadow:0 8px 24px rgba(102,126,234,.7);animation:none}
.ai-fab-icon{font-size:22px;line-height:1}
.ai-fab-dot{width:8px;height:8px;border-radius:50%;background:#68d391;
  flex-shrink:0;box-shadow:0 0 0 2px rgba(104,211,145,.4)}
@keyframes ai-pulse{
  0%,100%{box-shadow:0 4px 18px rgba(102,126,234,.6)}
  50%{box-shadow:0 4px 28px rgba(102,126,234,.85),0 0 0 6px rgba(102,126,234,.15)}
}
.ai-panel{position:fixed;right:0;bottom:0;top:68px;width:360px;background:#fff;
          box-shadow:-4px 0 24px rgba(0,0,0,.12);z-index:350;display:flex;
          flex-direction:column;transform:translateX(100%);transition:transform .3s ease}
.ai-panel.open{transform:translateX(0)}
.ai-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;
           padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
.ai-header h3{font-size:15px;font-weight:700}
.ai-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:2px 6px}
.ai-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.ai-msg{max-width:85%;padding:10px 13px;border-radius:12px;font-size:13.5px;line-height:1.55}
.ai-msg.user{background:#ebf8ff;color:#1a202c;align-self:flex-end;border-bottom-right-radius:3px}
.ai-msg.assistant{background:#f7f7f7;color:#1a202c;align-self:flex-start;border-bottom-left-radius:3px}
.ai-input-area{padding:12px;border-top:1px solid #e2e8f0;display:flex;gap:8px;align-items:flex-end}
.ai-input-area textarea{flex:1;padding:9px 12px;border:1.5px solid #e2e8f0;border-radius:8px;
                     font-size:13.5px;outline:none;transition:border-color .15s;
                     font-family:inherit;resize:none;min-height:38px;max-height:120px;
                     overflow-y:auto;line-height:1.5}
.ai-input-area textarea:focus{border-color:#90cdf4}
.ai-input-area button{background:#667eea;color:#fff;border:none;border-radius:8px;
                      padding:9px 14px;cursor:pointer;font-size:13.5px;font-weight:600;
                      flex-shrink:0;align-self:flex-end}

/* Card action buttons */
.card-remove-btn{position:absolute;top:5px;right:5px;width:22px;height:22px;
  border-radius:50%;background:rgba(229,62,62,.82);color:#fff;border:none;
  font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;
  justify-content:center;z-index:2;line-height:1;
  opacity:0;transition:opacity .15s,transform .1s}
.pcard:hover .card-remove-btn{opacity:1}
.card-remove-btn:hover{background:#c53030;transform:scale(1.12)}
.card-add-btn{margin-top:7px;width:100%;padding:5px 0;
  border:1.5px solid #38a169;background:#f0fff4;color:#276749;
  border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;
  transition:background .15s,color .15s}
.card-add-btn:hover:not([disabled]){background:#38a169;color:#fff}
.card-add-btn[disabled]{border-color:#e2e8f0;background:#f7fafc;
  color:#a0aec0;cursor:not-allowed}

/* AI assist panel */
.ai-assist-panel{
  width:0;min-width:0;overflow:hidden;opacity:0;flex-shrink:0;
  position:sticky;top:84px;max-height:calc(100vh - 100px);
  background:#fff;border-radius:10px;
  box-shadow:0 2px 12px rgba(0,0,0,.10);
  transition:width .3s ease,opacity .25s ease,margin-left .3s ease;
  margin-left:0;pointer-events:none;display:flex;flex-direction:column
}
.ai-assist-panel.open{
  width:360px;opacity:1;overflow:hidden;
  margin-left:8px;pointer-events:auto
}
.ai-assist-header{padding:12px 16px;border-bottom:1px solid #edf2f7;background:#fff}
.ai-assist-header h3{font-size:14px;font-weight:700;color:#1a202c;margin:0}
.ai-refresh-btn{border:none;background:#ebf8ff;color:#2b6cb0;border-radius:14px;
  padding:5px 10px;font-size:12px;font-weight:600;cursor:pointer}
.ai-refresh-btn:hover{background:#bee3f8}
.ai-regenerate-btn{background:#edf2f7;color:#4a5568}
.ai-regenerate-btn:hover{background:#e2e8f0}
.ai-assist-body{padding:12px 14px 14px;display:flex;flex-direction:column;
  gap:10px;overflow-y:auto;background:#f7f8fa}
.ai-assist-note{font-size:12px;color:#718096;line-height:1.5}
.ai-assist-status{font-size:12px;color:#4a5568;background:#fff;border-radius:12px;
  padding:6px 10px;align-self:center}
.ai-chat-thread{display:flex;flex-direction:column;gap:14px}
.ai-chat-welcome{margin-bottom:2px}
.ai-chat-analysis{margin-top:2px;min-height:0}
.ai-assist-actions{display:flex;justify-content:center;padding:6px 0 8px}
.ai-generate-btn{
  width:auto;max-width:88%;border:1px solid #90cdf4;
  background:#c9e7ff;color:#1a202c;border-radius:20px;padding:11px 20px;
  font-size:13.5px;font-weight:600;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  line-height:1.5;box-shadow:0 2px 8px rgba(66,153,225,.22);
  transition:background .15s ease,box-shadow .15s ease,transform .1s ease
}
.ai-generate-btn:hover:not(:disabled){
  background:#b3daff;box-shadow:0 3px 10px rgba(66,153,225,.28);transform:translateY(-1px)
}
.ai-generate-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 4px rgba(66,153,225,.2)}
.ai-generate-btn:disabled{opacity:.72;cursor:not-allowed}
.ai-chat-row{display:flex;align-items:flex-start;gap:10px;width:100%}
.ai-chat-row.user{justify-content:flex-end}
.ai-chat-row.assistant{justify-content:flex-start}
.ai-chat-avatar{
  width:52px;height:52px;min-width:52px;border-radius:10px;overflow:hidden;
  flex-shrink:0;box-shadow:0 1px 4px rgba(0,0,0,.12)
}
.ai-chat-avatar svg{display:block;width:100%;height:100%}
.ai-chat-avatar-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.ai-chat-avatar-team{border-radius:10px}
.ai-chat-avatar-bot{border-radius:10px}
.ai-chat-main{display:flex;flex-direction:column;min-width:0;max-width:calc(100% - 64px)}
.ai-chat-row.user .ai-chat-main{align-items:flex-end;max-width:78%}
.ai-chat-sender{font-size:12px;color:#888;line-height:1.3;margin:0 0 5px 2px}
.ai-chat-row.user .ai-chat-sender{display:none}
.ai-chat-bubble{
  border:1px solid rgba(0,0,0,.04);border-radius:18px;padding:11px 14px;
  font-size:13.5px;color:#1a202c;line-height:1.65;word-break:break-word;
  background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)
}
.ai-chat-row.assistant .ai-chat-bubble{max-width:100%;background:#fff}
.ai-chat-bubble-user{
  background:#c9e7ff;border-color:rgba(0,0,0,.03);
  border-bottom-right-radius:6px
}
.ai-chat-row.assistant .ai-chat-bubble{border-bottom-left-radius:6px}
.ai-chat-bubble-rich{padding:12px 14px 10px;background:#fff}
.ai-chat-bubble-text{white-space:pre-line}
.ai-assist-lead{font-size:13.5px;color:#2d3748;line-height:1.65;margin-bottom:10px;word-break:break-word}
.ai-assist-formatted{display:flex;flex-direction:column;gap:2px}
.ai-assist-title{font-weight:800;font-size:13.5px;color:#1a202c;margin-bottom:4px}
.ai-assist-heading{font-weight:700;font-size:13px;color:#2b6cb0;margin-top:10px;line-height:1.4}
.ai-assist-formatted .ai-assist-heading:first-child{margin-top:0}
.ai-assist-spacer{height:8px;flex-shrink:0}
.ai-assist-meta{font-size:12px;color:#4a5568;line-height:1.5;padding-left:2px;word-break:break-word}
.ai-assist-line{font-size:12.5px;color:#4a5568;line-height:1.55;word-break:break-word}
.ai-assist-field{font-size:12.5px;line-height:1.5;margin:4px 0;padding:6px 9px;border-radius:6px;word-break:break-word}
.ai-assist-field-product{background:#ebf8ff;border-left:3px solid #4299e1;color:#2c5282}
.ai-assist-field-relation{background:#f7fafc;border-left:3px solid #a0aec0;color:#4a5568}
.ai-assist-summary{font-size:12px;line-height:1.5;margin:4px 0;padding:5px 8px;border-radius:999px;background:#edf2f7;color:#2d3748;align-self:flex-start}
.ai-assist-point{font-size:12.5px;line-height:1.5;margin:4px 0;padding:6px 9px;border-radius:6px}
.ai-assist-point-pro{background:#f0fff4;border-left:3px solid #48bb78;color:#276749}
.ai-assist-point-con{background:#fffaf0;border-left:3px solid #ed8936;color:#744210}
.ai-assist-footer{font-size:12px;color:#718096;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0;line-height:1.5}
.ai-chat-row-wrap{width:100%}
@media(max-width:900px){
  .ai-assist-panel{
    position:fixed;right:0;top:0;bottom:0;width:0;max-height:none;
    border-radius:0;box-shadow:-4px 0 24px rgba(0,0,0,.13);z-index:340
  }
  .ai-assist-panel.open{width:100%;margin-left:0}
}
@media(max-width:600px){
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .ai-panel{width:100%}
}

/* ── 二选一 experiment.html ───────────────────────────────────────── */
#pairGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;
  width:min(100%,calc(2 * var(--pair-card-width) + 12px));margin:0 auto}
@media(max-width:640px){#pairGrid{grid-template-columns:1fr}}
#pairGrid .card-img-wrap img{height:auto;aspect-ratio:4/3;max-height:220px;object-fit:contain;background:#f7fafc}
.pcard.card-chosen{border-color:#48bb78!important;box-shadow:0 0 0 3px rgba(72,187,120,.3)}
#cardA{background:#ebf4ff}
#cardB{background:#fff5f5}
#loadingOverlay{position:fixed;inset:0;z-index:950;background:rgba(255,255,255,.78);
  display:none;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:#4a5568}

/* ── 实验结束页 & 正式轮次总结 ───────────────────────────────────── */
.page.finish-mode{max-width:min(1280px,calc(100vw - 32px))}
.page.finish-mode .page-main{width:100%;max-width:100%;flex:1 1 100%}
.finish-page{text-align:center;padding:48px 32px 36px;background:linear-gradient(135deg,#ebf8ff,#e9d8fd);
  border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.1);margin-top:24px;
  width:100%;max-width:none;margin-left:0;margin-right:0;box-sizing:border-box}
.finish-page .icon{font-size:64px;margin-bottom:12px}
.finish-page h2{font-size:26px;font-weight:800;color:#2b6cb0;margin-bottom:8px}
.finish-page > p{color:#4a5568;font-size:15px}
.finish-page .finish-incomplete{color:#c05621;font-size:14px;margin-top:-4px}
.finish-hint{margin-top:16px;color:#a0aec0;font-size:13px}
.confetti{height:60px;overflow:hidden;margin-bottom:8px}
.confetti span{display:inline-block;font-size:32px;animation:finish-drop 1.5s ease-out forwards;opacity:0;transform:translateY(-40px)}
@keyframes finish-drop{0%{opacity:1;transform:translateY(-40px) rotate(0deg)}80%{opacity:1}100%{opacity:0;transform:translateY(40px) rotate(180deg)}}
.formal-summary{margin-top:24px;text-align:left;background:#fff;border-radius:12px;padding:18px 20px 16px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);width:100%;max-width:none;margin-left:0;margin-right:0}
.formal-summary-headbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px 16px;margin-bottom:4px}
.formal-summary-title{font-size:17px;font-weight:700;color:#2d3748;margin:0}
.formal-summary-charts-open-btn{background:#fff;color:#2b6cb0;border:1.5px solid #90cdf4;padding:7px 14px;
  font-size:13px;white-space:nowrap}
.formal-summary-charts-open-btn:hover{background:#ebf8ff}
.formal-summary-sub{font-size:13px;color:#718096;margin:0 0 12px;line-height:1.45}
.formal-summary-charts-modal{max-width:920px;width:calc(100% - 24px);padding:20px 22px 18px}
.formal-summary-charts-modal-head{display:flex;align-items:flex-start;justify-content:space-between;
  gap:12px;margin-bottom:12px}
.formal-summary-charts-modal-head h3{font-size:18px;font-weight:700;color:#1a202c;margin:0;line-height:1.35}
.formal-summary-charts-modal-head .formal-summary-charts-close{border:none;background:#edf2f7;color:#4a5568;
  width:32px;height:32px;border-radius:8px;font-size:16px;line-height:1;cursor:pointer;flex-shrink:0;
  padding:0;display:inline-flex;align-items:center;justify-content:center}
.formal-summary-charts-modal-head .formal-summary-charts-close:hover{background:#e2e8f0}
.formal-summary-charts-empty{font-size:13px;color:#718096;margin:0 0 8px}
.formal-summary-chart-section{margin-bottom:18px}
.formal-summary-chart-section h4{font-size:15px;font-weight:700;color:#2d3748;margin:0 0 10px}
.formal-summary-charts-legend{margin-bottom:10px}
.formal-summary-charts-legend-note{font-size:12px;color:#718096;margin:0 0 8px}
.formal-summary-charts-legend-items{display:flex;flex-wrap:wrap;gap:8px 14px}
.formal-summary-charts-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#4a5568}
.formal-summary-charts-legend-swatch{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}
.formal-summary-chart-wrap{position:relative;height:300px;margin-bottom:8px}
.formal-summary-charts-modal-foot{display:flex;justify-content:flex-end;margin-top:8px;padding-top:10px;
  border-top:1px solid #edf2f7}
.formal-summary-charts-close-btn{background:#edf2f7;color:#2d3748;border:none;border-radius:8px;
  padding:8px 22px;font-size:13.5px;font-weight:600;white-space:nowrap;min-width:4.5em;cursor:pointer}
.formal-summary-charts-close-btn:hover{background:#e2e8f0}
.formal-summary-list{display:flex;flex-direction:column;gap:0}
.formal-summary-rows{display:flex;flex-direction:column;gap:6px}
.formal-summary-head,.formal-summary-item{
  display:grid;grid-template-columns:44px minmax(150px,220px) minmax(260px,2.2fr) minmax(200px,1.2fr);
  gap:10px 20px;align-items:center}
.formal-summary-head{padding:0 12px 4px;font-size:12px;font-weight:600;color:#718096;
  border-bottom:1px solid #e2e8f0;margin-bottom:6px}
.formal-summary-head span:nth-child(1){text-align:center}
.formal-summary-item{padding:8px 12px;border:1px solid #e8edf3;border-radius:8px;background:#fafbfc}
.formal-summary-round{width:28px;height:28px;margin:0 auto;border-radius:50%;background:#ebf8ff;
  color:#2b6cb0;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;
  flex-shrink:0}
.formal-summary-col{min-width:0}
.formal-summary-product-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px;
  min-width:0;width:100%}
.formal-summary-product-name{width:100%;font-size:12.5px;font-weight:600;color:#2d3748;
  line-height:1.35;overflow-wrap:break-word;word-break:normal}
.formal-summary-thumb{flex:0 0 auto;width:52px;height:52px;border-radius:6px;overflow:hidden;
  background:#fff;border:1px solid #e2e8f0}
.formal-summary-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.formal-summary-category{min-width:0}
.formal-summary-category-path{font-size:12px;color:#4a5568;line-height:1.4;word-break:break-word}
.formal-summary-perf{display:flex;flex-direction:column;gap:2px}
.formal-summary-perf-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;font-size:12px;line-height:1.3}
.formal-summary-perf-label{color:#718096;white-space:nowrap}
.formal-summary-perf-value{font-weight:600;color:#2d3748}
.formal-summary-pending{color:#a0aec0;font-size:12px}
.formal-summary-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:10px 14px;margin-top:12px;padding-top:10px;border-top:1px solid #e2e8f0}
.formal-summary-pager-info{font-size:12.5px;color:#718096}
.formal-summary-pager-btn{border:1px solid #cbd5e0;background:#fff;color:#2d3748;border-radius:8px;
  padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}
.formal-summary-pager-btn:hover:not(:disabled){background:#edf2f7;border-color:#a0aec0}
.formal-summary-pager-btn:disabled{opacity:.45;cursor:not-allowed}
.formal-summary-empty,.formal-summary-error,.formal-summary-loading{font-size:13px;color:#718096;margin:0}
.formal-summary-gate .summary-gate-intro{font-size:14px;color:#4a5568;line-height:1.5;margin:0 0 16px}
.formal-summary-gate .summary-gate-stats{margin-bottom:12px}
.formal-summary-gate .summary-gate-actions{display:flex;justify-content:center;margin-top:20px;padding-top:8px}
.formal-summary-gate .summary-gate-actions .btn{min-width:200px;padding:10px 22px;font-size:15px}
.finish-page--thankyou{text-align:center}
.formal-summary-error{color:#c53030}
@media(max-width:720px){
  .formal-summary-head{display:none}
  .formal-summary-item{grid-template-columns:36px 1fr;grid-template-areas:
    "round product" "cat cat" "perf perf";gap:8px 10px;padding:8px 10px}
  .formal-summary-round{grid-area:round;align-self:start;margin-top:2px;width:26px;height:26px;font-size:12px}
  .formal-summary-col-product{grid-area:product}
  .formal-summary-col-category{grid-area:cat}
  .formal-summary-col-performance{grid-area:perf;border-top:1px dashed #e2e8f0;padding-top:10px;margin-top:2px}
}
