/* Reuse the existing student Test Series sidebar and header. */
.results-app{display:flex;min-height:100vh;width:100%}
.sidebar,.results-topbar{--navy:#0f245f;--text:#14204a;--muted:#63708f;--border:#dfe6f2;color:var(--text)}
.sidebar{position:fixed;inset:0 auto 0 0;width:258px;padding:22px 18px;background:#fff;border-right:1px solid var(--border);z-index:20;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b8c2d2 transparent;transition:width .25s}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:#b8c2d2;border-radius:20px}.sidebar::-webkit-scrollbar-thumb:hover{background:#8f9db2}.brand{display:flex;align-items:center;min-height:78px;padding:2px 6px 18px;flex:none}.brand a{display:inline-flex;align-items:center;border-radius:8px}.brand-logo{display:block;width:175px;max-width:100%;height:auto}.brand-mark{display:none}.sidebar nav{padding:0;display:flex;flex-direction:column;gap:6px;flex:none}.sidebar nav a{padding:12px;border-radius:7px;display:flex;align-items:center;gap:15px;font-size:14px;font-weight:500;line-height:1.2;text-decoration:none;position:relative;flex:none}.sidebar nav a>i:first-child{width:19px;text-align:center;font-size:17px}.sidebar nav a:hover{background:#f5f8fd}.sidebar nav a.active{color:#0d57de;background:#edf5ff;font-weight:600}.sidebar nav a.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#1467f3}.sidebar nav hr{width:calc(100% - 16px);border:0;border-top:1px solid var(--border);margin:10px 8px;flex:none}.notify b{position:absolute;right:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e92c2c;color:#fff;font-size:11px}
.sidebar.collapsed{width:78px;padding:12px;overflow:visible}.sidebar.collapsed .brand{justify-content:center;min-height:58px;padding:0 0 12px}.sidebar.collapsed .brand a{display:grid;place-items:center;width:44px;height:44px}.sidebar.collapsed .brand-logo{display:none}.sidebar.collapsed .brand-mark{display:block;width:38px;height:38px;object-fit:contain}.sidebar.collapsed nav{padding:0;gap:4px}.sidebar.collapsed nav a{justify-content:center;gap:0;padding:10px}.sidebar.collapsed nav a span,.sidebar.collapsed .notify b{display:none}.sidebar.collapsed nav hr{margin:8px}.sidebar.collapsed nav a::after{content:attr(data-tooltip);position:absolute;left:calc(100% + 13px);top:50%;z-index:200;transform:translate(6px,-50%);padding:8px 11px;border-radius:6px;background:var(--navy);color:#fff;font-size:12px;line-height:1;white-space:nowrap;box-shadow:0 6px 18px rgba(11,31,94,.2);opacity:0;visibility:hidden;pointer-events:none;transition:.15s}.sidebar.collapsed nav a:hover::after,.sidebar.collapsed nav a:focus-visible::after{opacity:1;visibility:visible;transform:translate(0,-50%)}
.shell{width:calc(100% - 258px);margin-left:258px;transition:width .25s,margin-left .25s}.shell.sidebar-collapsed{width:calc(100% - 78px);margin-left:78px}.shell header{position:sticky;top:0;z-index:15;height:74px;padding:0 30px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:28px}.round{border:0;background:transparent;color:var(--navy);padding:9px;display:grid;place-items:center}.search{margin:auto;width:min(540px,50vw);height:42px;border:1px solid #d8e0ed;border-radius:8px;background:#fff;display:flex;align-items:center;gap:14px;padding:0 16px}.search input{width:100%;border:0;outline:0;background:transparent}.header-actions{display:flex;align-items:center;gap:14px}.bell{position:relative;border:0;background:#fff;text-decoration:none;padding:8px;color:var(--navy)}.bell b{position:absolute;right:0;top:0;width:17px;height:17px;border-radius:50%;background:#e8262e;color:#fff;font-size:9px;display:grid;place-items:center}.profile-wrap{position:relative}.profile-trigger{border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:5px 7px;border-radius:9px;color:var(--navy);text-align:left}.profile-trigger:hover{background:#f2f6ff}.avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2268f5,#3d8cff);color:#fff;overflow:hidden}.avatar img{display:none;width:100%;height:100%;object-fit:cover}.profile-copy{display:flex;flex-direction:column;gap:3px;min-width:80px}.profile-copy strong{font-size:12px}.profile-copy small{font-size:10px;color:var(--muted)}.profile-chevron{width:14px;transition:transform .2s}.profile-trigger[aria-expanded=true] .profile-chevron{transform:rotate(180deg)}.profile-menu{display:none;position:absolute;right:0;top:calc(100% + 10px);width:210px;padding:8px;background:#fff;border:1px solid var(--border);border-radius:9px;box-shadow:0 12px 35px rgba(12,31,83,.15);z-index:100}.profile-menu.open{display:block}.profile-menu a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:6px;text-decoration:none;color:var(--navy);font-size:13px;font-weight:500}.profile-menu a:hover{background:#f2f6ff}.profile-menu hr{border:0;border-top:1px solid var(--border);margin:6px 0}.profile-menu .danger{color:#d93035}

/* Header and dropdown dimensions match the shared student portal. */
.sidebar nav a{color:inherit}
.results-topbar svg{width:19px;height:19px;flex-shrink:0;stroke-width:1.9}
.results-topbar .profile-chevron{width:14px;height:14px}
.results-topbar .search{min-width:0}
.results-topbar .search input{min-width:0;font-size:14px;color:#14204a}
.results-topbar .search:focus-within{border-color:#9bb8eb}
.results-topbar .bell{width:38px;height:38px;flex:0 0 38px;padding:8px;display:grid;place-items:center;border-radius:8px;font-size:19px;line-height:1;color:#0b1f5e}
.results-topbar .bell:hover{background:#f2f6ff}
.results-topbar .bell>b{right:-2px;top:-2px;width:18px;height:18px;border:2px solid #fff;font-size:10px;font-weight:700}
.results-topbar .profile-menu{width:210px;padding:8px;border-color:#dfe6f1}
.results-topbar .profile-menu a{min-height:42px;gap:12px;color:#071f5b;font-size:13px;font-weight:500}
.results-topbar .profile-menu a>svg{width:22px;height:22px;stroke-width:2.2}
.results-topbar .profile-menu .danger,.results-topbar .profile-menu .danger svg{color:#d93035}
.results-shell{min-width:0}
.results-shell .history-page{padding:24px 34px 32px;width:100%;min-width:0}
.history-result-meta .history-time-taken{display:inline-flex;align-items:center;gap:6px;color:#334155;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-time-taken>svg{flex:0 0 14px;color:#475569}
.history-time-taken strong{font-weight:600;color:#203655}
.results-mobile-close{display:none}
.overlay{display:none}
@media(max-width:1040px){
  .sidebar{transform:translateX(-100%);transition:transform .25s}
  .sidebar.open{transform:none}
  .overlay.show{display:block;position:fixed;inset:0;background:#0c173359;z-index:18}
  .shell,.shell.sidebar-collapsed{width:100%;margin-left:0}
  .results-mobile-close{position:absolute;right:12px;top:12px;width:36px;height:36px;padding:8px;display:grid;place-items:center;border:0;border-radius:7px;background:#f2f6ff;color:#0f245f}
  .results-mobile-close svg{width:19px;height:19px}
}
@media(max-width:760px){
  .shell header{height:72px;padding:0 14px;gap:10px}
  .results-topbar .search{flex:1;width:auto;gap:10px;padding:0 12px}
  .results-topbar .header-actions{gap:6px}
  .results-topbar .profile-copy,.results-topbar .profile-chevron{display:none!important}
  .results-topbar .profile-trigger{padding:5px}
  .results-topbar .avatar{width:36px;height:36px}
  .results-shell .history-page{padding:20px 16px 28px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.shell{transition:none}}
@media print{.sidebar,.results-topbar,.overlay{display:none!important}.shell,.shell.sidebar-collapsed{width:100%;margin-left:0}.results-shell .history-page{padding:0}}
