/* Quiz Maker Enhancer — frontend: Start card, sectional bar, TCS skin. */
/* --- Start screen fix: info card above the Start button --- */
.qme-start-card{border:1px solid #dcdcde;border-radius:8px;background:#f8fafc;padding:16px;margin:14px 0;text-align:left}
.qme-start-card h3{margin:0 0 12px;font-size:18px}
.qme-start-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.qme-start-grid div{border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:10px}
.qme-start-grid span{display:block;font-size:12px;color:#6b7280}
.qme-start-grid strong{font-size:16px}
.qme-start-sections{margin-bottom:10px;font-size:14px}
.qme-start-instructions{margin:0;padding-left:18px;font-size:14px;line-height:1.6}
.qme-neg-note{border:1px solid #f59e0b;background:#fffbeb;border-radius:6px;padding:10px 12px;margin:12px 0;font-size:14px}
/* --- Sectional bar --- */
.qme-sections-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#1a5276;color:#fff;border-radius:6px;padding:8px 10px;margin:10px 0}
.qme-sections-label{font-weight:700;margin-right:4px}
.qme-section-tab{background:#fff;color:#1a5276;border:0;border-radius:20px;padding:6px 14px;cursor:pointer;font-weight:600}
.qme-section-tab.active{background:#f1c40f;color:#1a237e}
.qme-section-tab.locked{opacity:.5;text-decoration:line-through;cursor:not-allowed}
.qme-sec-count{font-size:12px;opacity:.8}
.qme-section-time{margin-left:auto;font-size:14px}
.qme-section-time strong{background:#000;color:#fff;border-radius:6px;padding:3px 8px}
/* --- TCS iON design --- */
.qme-tcs .qme-tcs-header{background:#000;color:#fff;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px 6px 0 0}
.qme-tcs .qme-tcs-exam{color:#f1c40f;font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qme-tcs .qme-tcs-timer{margin-left:auto;font-size:14px;white-space:nowrap}
.qme-tcs .qme-tcs-timer strong{background:#000;color:#fff;border:1px solid #555;border-radius:6px;padding:3px 8px}
.qme-tcs .qme-tcs-menu{display:none;background:transparent;color:#fff;border:0;font-size:22px;cursor:pointer}
.qme-tcs-instr{border:1px solid #dcdcde;border-radius:8px;background:#fff;padding:18px;margin:12px 0}
.qme-tcs.qme-waiting form{display:none}
.qme-tcs-instr h3{margin-top:0}
.qme-tcs-instr ol{line-height:1.7}
.qme-btn{background:#2271b1;color:#fff;border:0;border-radius:6px;padding:9px 16px;cursor:pointer;font-size:14px}
.qme-btn:disabled{opacity:.5;cursor:not-allowed}
.qme-tcs-begin{background:#27ae60}
.qme-decl{display:block;margin:14px 0;font-size:14px}
.qme-tcs-instr-btns{display:flex;justify-content:space-between;gap:10px}
.qme-tcs-palette{border:1px solid #dcdcde;border-radius:6px;background:#fff;padding:10px;margin:10px 0}
.qme-tcs-palette-grid{display:flex;flex-wrap:wrap;gap:6px}
.qme-pal{width:44px;height:44px;border:1px solid #bdc3c7;background:#fff;cursor:pointer;font-size:13px;line-height:44px;text-align:center;border-radius:4px;padding:0;overflow:hidden}
.qme-pal.answered{background:#27ae60;color:#fff;border-color:#27ae60}
.qme-pal.not-answered{background:#e74c3c;color:#fff;border-color:#e74c3c}
.qme-pal.marked{background:#8e44ad;color:#fff;border-color:#8e44ad}
.qme-pal.current{outline:3px solid #f1c40f;outline-offset:1px}
.qme-bottom-bar{position:sticky;bottom:0;background:#f8f9f9;border-top:1px solid #d5d8dc;padding:10px;display:flex;gap:8px;flex-wrap:wrap;z-index:5}
.qme-bottom-bar .qme-clear{background:#fff;color:#1a5276;border:1px solid #1a5276;flex:1 1 30%}
.qme-bottom-bar .qme-mark{background:#8e44ad;flex:1 1 30%}
.qme-bottom-bar .qme-save-next{background:#27ae60;flex:1 1 100%;font-size:16px;padding:12px}
.qme-tcs-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:#555}
.qme-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:4px;vertical-align:middle}
.qme-dot-answered{background:#27ae60}
.qme-dot-not{background:#e74c3c}
.qme-dot-marked{background:#8e44ad}
.qme-dot-visit{background:#ecf0f1;border:1px solid #bdc3c7}
.qme-tcs .ays_buttons_div{display:flex;gap:8px;flex-wrap:wrap}
.qme-tcs .qme-clear{background:#fff;color:#1a5276;border:1px solid #1a5276}
.qme-tcs .qme-mark{background:#8e44ad}
@media(max-width:700px){
  .qme-start-grid{grid-template-columns:repeat(2,1fr)}
  .qme-tcs .qme-tcs-header{background:#1a237e;border-radius:0}
  .qme-tcs .qme-tcs-menu{display:inline-block}
  .qme-tcs-palette-grid{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px}
  .qme-tcs-palette-grid .qme-pal{flex:0 0 44px;height:44px;line-height:44px}
  .qme-tcs .ays_buttons_div .ays_next,.qme-tcs .ays_buttons_div input[type=submit]{flex:1 1 100%}
  .qme-tcs .ays_buttons_div .qme-clear,.qme-tcs .ays_buttons_div .qme-mark{flex:1 1 45%}
}
