/* List resource categories instead of oversized dashboard tiles. */
.hub-resources{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.hub-resource{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:14px;row-gap:3px;align-items:center;width:100%;min-height:78px;padding:16px 18px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.hub-resource:last-child{border-bottom:0}.hub-resource:hover{transform:none;box-shadow:none;background:var(--soft)}.hub-resource-symbol{grid-column:1;grid-row:1/3;width:34px;height:34px;margin:0;border-radius:8px}.hub-resource-symbol svg{width:18px;height:18px}.hub-resource b{grid-column:2;grid-row:1;font-size:15px}.hub-resource p{grid-column:2;grid-row:2;margin:0;font-size:12px;line-height:1.5}.hub-resource small{grid-column:3;grid-row:1/3;margin:0;font-size:12px;white-space:nowrap}.hub-resource small span{margin-left:12px}
.hub-header{padding:20px;margin-bottom:14px}.hub-nav{margin-bottom:18px;gap:20px}.hub-nav button{min-height:44px;padding:12px 0}.hub-exam-details{margin-top:20px;padding:20px}.directory-exam{min-height:84px;padding:15px}.hub-empty{padding:30px 20px}
/* One compact header and one action row leave the question in focus. */
.cbt-header{min-height:52px;height:52px;padding:8px 18px;gap:14px;position:relative;flex-wrap:nowrap;border-bottom:1px solid var(--line)}.cbt-brand,.candidate-photo,.cbt-tools,.cbt-sections,.cbt-title h2,.cbt-notice{display:none!important}.cbt-title{flex:1;min-width:0;text-align:left;order:0;width:auto;padding:0;border:0}.cbt-title small{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0}.cbt-title #total-timer{display:none}.candidate{flex-shrink:0}.cbt-clock small{font-size:9px;letter-spacing:.3px}.cbt-clock .timer{font-size:20px;line-height:1.15}.cbt-question-toolbar{padding:8px 18px;min-height:44px;gap:10px;flex-wrap:nowrap}.cbt-question-toolbar b{font-size:12px}.cbt-question-toolbar small{font-size:11px;margin-top:2px;line-height:1.3}.cbt-question-toolbar .marking,.section-save-status{display:none}.cbt-mobile-palette{display:inline-block!important;min-height:34px;font-size:12px;padding:6px 10px;flex-shrink:0}.cbt-workspace{min-height:calc(100dvh - 96px)}.cbt-question-body{padding:14px 22px 20px;min-height:0!important}.cbt-question-body h2{margin:6px 0 18px;line-height:1.55}.cbt-option{padding:11px 13px;min-height:48px;margin:8px 0;line-height:1.5}.cbt-option input{width:17px;height:17px;margin-top:3px}.cbt-bottom{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;padding:8px 18px calc(8px + env(safe-area-inset-bottom));min-height:60px}.cbt-bottom>.cbt-btn{min-height:42px;padding:9px 14px;font-size:12px;flex:0 0 auto}.cbt-bottom>#prev{width:44px;padding:8px;font-size:18px}.cbt-bottom>#mark{min-width:82px}.cbt-bottom>#next{flex:1;max-width:240px;margin-left:auto}.palette-compact-actions{display:flex;flex-direction:column;gap:9px;margin-top:18px}.palette-compact-actions .cbt-btn{min-height:44px}
.test-actions-menu{position:relative;flex-shrink:0}.test-actions-menu summary{list-style:none;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-size:23px;font-weight:600;cursor:pointer;color:var(--ink);background:var(--surface)}.test-actions-menu summary::-webkit-details-marker{display:none}.test-actions-menu summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.test-actions-panel{position:absolute;right:0;top:44px;width:230px;max-height:min(70dvh,520px);overflow:auto;z-index:15;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #0002;display:flex;flex-direction:column;gap:3px}.test-actions-panel button,.test-actions-panel #submit,.test-actions-panel #submit-section{display:block!important;text-align:left;min-height:40px;flex:none;padding:9px 12px;width:100%;font-size:13px;border-radius:7px;background:var(--surface);color:var(--ink);border:0}.test-actions-panel button:hover{background:var(--soft)}.test-actions-panel .cbt-language-row{display:flex;justify-content:space-between;padding:8px;font-size:12px}.test-actions-panel #submit,.test-actions-panel #submit-section{color:var(--accent);font-weight:650;border-bottom:1px solid var(--line)}
@media(max-width:650px){.hub-resource{padding:14px;column-gap:10px;min-height:76px;grid-template-columns:32px minmax(0,1fr) auto}.hub-resource small{font-size:11px;white-space:normal;max-width:90px;text-align:right}.hub-resource small span{margin-left:5px}.hub-resource p{font-size:12px}.hub-header{padding:18px;gap:12px}.hub-exam-icon{height:44px;width:44px;margin:0}.cbt-header{padding:7px 12px;height:52px;gap:10px}.cbt-question-toolbar{padding:7px 14px}.cbt-question-body{padding:12px 16px 20px}.cbt-question-body h2{margin:5px 0 16px}.cbt-bottom{padding:7px 12px calc(7px + env(safe-area-inset-bottom));gap:8px;min-height:58px}.cbt-bottom>.cbt-btn{min-height:42px}.cbt-bottom>#next{max-width:none}.cbt-palette{padding:18px}.test-actions-panel{right:0}}

.cbt-palette .cbt-sections{display:flex!important;flex-wrap:wrap;gap:6px;padding:0 0 14px;margin:6px 0 12px;border:0;overflow:visible}.cbt-palette .section-tab{white-space:normal;flex:1 1 44%;font-size:11px;line-height:1.4;min-height:40px;padding:7px;border:1px solid var(--line);border-radius:7px}.cbt-palette .section-tab.active{background:var(--soft);border-color:var(--accent)}.cbt-palette .section-tab span{display:none}.section-save-status[data-error=true]{display:block!important;color:#b74444;font-size:11px;max-width:160px}

/* Category labels keep their full width; scroll the strip instead of compressing words. */
.hub-nav{flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:22px;scroll-padding-inline:8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.hub-nav>button{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;white-space:nowrap;text-overflow:clip;scroll-snap-align:start;padding-inline:4px}
.hub-nav>button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px}
@media(max-width:650px){.hub-nav{gap:18px;padding-bottom:3px}.hub-nav>button{font-size:13px;min-height:44px}}

.cbt-bottom #submit-section{display:block!important;flex:0 1 auto;min-height:42px;padding:10px 14px;background:var(--accent,#2854d9);color:white;border-radius:8px;font-weight:650;white-space:normal;line-height:1.3}@media(max-width:760px){.cbt-bottom{flex-wrap:wrap!important}.cbt-bottom #submit-section{flex:1 1 130px;font-size:12px}.cbt-bottom #next{flex:1 1 120px}}


/* One always-visible submit control, outside hidden legacy groups and menus. */
body.exam-mode .cbt-bottom>#submit{display:block!important;flex:0 1 auto;min-height:42px;padding:10px 14px;border:1px solid #a73448;border-radius:9px;background:#a73448;color:#fff;font-weight:700;white-space:normal;line-height:1.3}
body.exam-mode .cbt-bottom{flex-wrap:wrap}
@media(max-width:760px){body.exam-mode .cbt-bottom>#submit{flex:1 1 120px;font-size:12px}body.exam-mode .cbt-bottom>#submit-section{flex:1 1 130px;min-width:0}}
