/* Quiz by Weblink */
.qbw-quiz { --qbw-accent: #1d3557; --qbw-accent-text: #fff; --qbw-line: #e5e7eb; --qbw-soft: #f6f7f9; --qbw-ok: #059669; --qbw-ko: #dc2626; container-type: inline-size; margin: 2em 0; padding: 22px; border: 1px solid var(--qbw-line); border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.qbw-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.qbw-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--qbw-accent); color: var(--qbw-accent-text); font-weight: 800; font-size: 22px; }
.qbw-quiz .qbw-title { margin: 0 0 4px; font-size: 1.3em; line-height: 1.25; }
.qbw-text { margin: 0; color: #4b5563; font-size: .95em; }
.qbw-count { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: var(--qbw-soft); font-size: .85em; font-weight: 600; color: #374151; }
.qbw-best { margin: 6px 0 0; font-size: .9em; font-weight: 600; color: var(--qbw-ok); }
.qbw-progress { height: 6px; border-radius: 99px; background: var(--qbw-soft); overflow: hidden; }
.qbw-progress span { display: block; height: 100%; background: var(--qbw-accent); transition: width .3s; }
.qbw-step { margin: 10px 0 4px; font-size: .82em; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #6b7280; }
.qbw-prompt { margin: 0 0 12px; font-size: 1.1em; font-weight: 700; line-height: 1.4; }
.qbw-opts { display: grid; gap: 8px; }
@container (min-width: 560px) { .qbw-opts { grid-template-columns: 1fr 1fr; } }
.qbw-opt { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; line-height: 1.35; cursor: pointer; transition: border-color .15s, background .15s; }
.qbw-opt:hover:not(:disabled), .qbw-opt:focus-visible { border-color: var(--qbw-accent); background: var(--qbw-soft); }
.qbw-opt:disabled { cursor: default; opacity: 1; }
.qbw-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--qbw-soft); font-size: .8em; font-weight: 700; }
.qbw-opt.is-right { border-color: var(--qbw-ok); background: #ecfdf5; }
.qbw-opt.is-right .qbw-letter { background: var(--qbw-ok); color: #fff; }
.qbw-opt.is-wrong { border-color: var(--qbw-ko); background: #fef2f2; }
.qbw-opt.is-wrong .qbw-letter { background: var(--qbw-ko); color: #fff; }
.qbw-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--qbw-soft); }
.qbw-feedback.is-right strong { color: var(--qbw-ok); }
.qbw-feedback.is-wrong strong { color: var(--qbw-ko); }
.qbw-source { margin: 6px 0 10px; font-size: .9em; color: #4b5563; }
.qbw-source-l { font-weight: 600; }
.qbw-btn { display: inline-block; margin: 4px 8px 0 0; padding: 9px 20px; border: 1px solid var(--qbw-accent); border-radius: 999px; background: var(--qbw-accent); color: var(--qbw-accent-text) !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.qbw-btn:hover { filter: brightness(1.1); }
.qbw-btn--ghost { background: transparent; color: var(--qbw-accent) !important; }
.qbw-btn:disabled { opacity: .7; cursor: wait; }
.qbw-result { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qbw-ring { --qbw-p: 0; flex: none; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--qbw-accent) calc(var(--qbw-p) * 1%), var(--qbw-soft) 0); }
.qbw-ring span { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; font-size: 1.2em; font-weight: 800; }
.qbw-result-t { flex: 1; min-width: 220px; }
.qbw-result-t p { margin: 0 0 6px; }
.qbw-score { font-size: 1.15em; font-weight: 700; }
.qbw-saved { font-size: .9em; color: var(--qbw-ok); font-weight: 600; }
.qbw-saved:empty { display: none; }
.qbw-saved.is-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #ecfdf5; }
.qbw-hint { font-size: .85em; color: #6b7280; }
.qbw-msg { margin: 0; color: #4b5563; }
.qbw-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; }
.qbw-lock p { flex: 1; min-width: 200px; margin: 0; }
.qbw-lock .qbw-btn { margin: 0; }
.qbw-lock-ico { font-size: 1.3em; }
.qbw-admin-note { padding: 8px 12px; border: 1px dashed #c3c4c7; border-radius: 8px; font-size: .85em; color: #646970; }
/* Quiz of a board */
.qbw-quiz--board { margin-top: 2.5em; }
/* [weblink_quiz_list] */
.qbw-list-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qbw-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--qbw-line, #e5e7eb); border-radius: 14px; background: #fff; color: inherit; text-decoration: none !important; transition: box-shadow .15s; }
.qbw-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.qbw-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qbw-card-img.is-empty { display: flex; align-items: center; justify-content: center; background: #f6f7f9; font-size: 2em; font-weight: 800; color: #9ca3af; }
.qbw-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.qbw-card-title { font-weight: 700; line-height: 1.3; }
.qbw-card-meta { font-size: .85em; color: #6b7280; }
/* My Account and profile */
.qbw-account-table { width: 100%; border-collapse: collapse; }
.qbw-account-table th, .qbw-account-table td { padding: 10px 8px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle; }
.qbw-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #f6f7f9; font-weight: 700; }
.qbw-pill.is-top { background: #ecfdf5; color: #059669; }
.qbw-profile-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.5em; }
.qbw-profile-stats span { padding: 8px 14px; border-radius: 12px; background: #f6f7f9; font-size: .92em; }
.qbw-profile-stats strong { display: block; font-size: 1.3em; }
@media (max-width: 480px) { .qbw-quiz { padding: 16px; } .qbw-account-table .qbw-hide-s { display: none; } }
/* Section "Quiz" */
.qbw-archive, .qbw-single { --qbw-accent: #1d3557; --qbw-accent-text: #fff; --qbw-line: #e5e7eb; --qbw-soft: #f6f7f9; --qbw-ok: #059669; --qbw-ko: #dc2626; }
.qbw-archive { container-type: inline-size; }
.qbw-archive [hidden], .qbw-quiz [hidden], .qbw-single [hidden] { display: none !important; }
.qbw-archive.is-loading .qbw-agrid { opacity: .5; transition: opacity .2s; }
.qbw-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.qbw-sum.is-guest { background: #f6f7f9; }
.qbw-sum-t { flex: 1; min-width: 200px; margin: 0; }
.qbw-sum-h { margin: 0; font-weight: 700; font-size: 1.1em; }
.qbw-sum-s { margin: 2px 0 0; color: #6b7280; font-size: .92em; }
.qbw-sum .qbw-btn { margin: 0; }
.qbw-ring--sm { width: 64px; height: 64px; }
.qbw-ring--sm span { width: 50px; height: 50px; font-size: .9em; }
.qbw-filters { margin: 0 0 12px; }
.qbw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.qbw-tab { padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; font-size: .92em; font-weight: 600; cursor: pointer; }
.qbw-tab input { position: absolute; opacity: 0; pointer-events: none; }
.qbw-tab.is-on { border-color: var(--qbw-accent); background: var(--qbw-accent); color: var(--qbw-accent-text); }
.qbw-tab:focus-within { outline: 2px solid var(--qbw-accent); outline-offset: 2px; }
.qbw-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.qbw-fields select, .qbw-fields input[type="search"] { min-height: 40px; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; }
.qbw-search { flex: 1 1 220px; }
.qbw-search input { width: 100%; box-sizing: border-box; }
.qbw-fields .qbw-btn { margin: 0; }
.qbw-count-line { margin: 4px 0 12px; color: #6b7280; font-size: .9em; }
.qbw-agrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@container (min-width: 520px) { .qbw-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 820px) { .qbw-agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1100px) { .qbw-agrid:not(.is-3) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qbw-acard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; color: #1f2937 !important; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.qbw-acard:hover, .qbw-acard:focus-visible { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.qbw-acard-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #f6f7f9; }
.qbw-acard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qbw-acard-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4em; font-weight: 800; color: #c4c9d2; }
.qbw-acard-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.qbw-flag { padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: .78em; font-weight: 700; }
.qbw-flag.is-new { background: var(--qbw-accent); color: var(--qbw-accent-text); }
.qbw-acard-state { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: #059669; color: #fff; font-size: .8em; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.qbw-acard.is-perfect .qbw-acard-state { background: #b45309; }
.qbw-acard.is-improve .qbw-acard-state { background: #fff7ed; color: #9a3412; }
.qbw-acard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.qbw-acard-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.qbw-acard-chips span { padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: #3730a3; font-size: .74em; font-weight: 700; letter-spacing: .01em; }
.qbw-acard-chips span.is-level { background: #f0fdf4; color: #166534; }
.qbw-acard-title { font-weight: 700; line-height: 1.3; font-size: 1.02em; }
.qbw-acard-meta { margin-top: auto; color: #6b7280; font-size: .84em; }
.qbw-acard-bar { display: block; height: 4px; background: #eef0f3; }
.qbw-acard-bar span { display: block; height: 100%; background: #059669; }
.qbw-acard.is-improve .qbw-acard-bar span { background: #f59e0b; }
.qbw-acard.is-perfect .qbw-acard-bar span { background: #b45309; }
.qbw-empty { padding: 24px; border: 1px dashed #d1d5db; border-radius: 14px; text-align: center; color: #6b7280; }
.qbw-more-wrap { margin: 18px 0 0; text-align: center; }
/* Page of a quiz */
.qbw-single { container-type: inline-size; }
.qbw-next .qbw-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (max-width: 420px) { .qbw-next .qbw-agrid { grid-template-columns: 1fr; } }
.qbw-crumb { margin: 0 0 12px; font-size: .92em; }
.qbw-hero { display: grid; gap: 18px; align-items: center; margin: 0 0 8px; }
@container (min-width: 640px) { .qbw-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.qbw-hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.qbw-hero-meta { margin: 8px 0; color: #4b5563; }
.qbw-hero-ex { margin: 0 0 12px; color: #374151; }
.qbw-sec-h { margin: 1.6em 0 .6em; font-size: 1.25em; }
.qbw-share .pbw-share { margin-top: 6px; }
