/* Runtime overrides for the archive portal. Loaded last and cache-busted. */
.sidebar-account-row{gap:6px!important}
.sidebar-identity{gap:0!important;line-height:1.1!important}
.sidebar-identity strong,.sidebar-identity small{display:block;line-height:1.1!important}
.advanced-concept-choices button.is-selected .advanced-option-checkbox{background:var(--green,var(--accent,#176b52))!important;border-color:var(--green,var(--accent,#176b52))!important}

/* Mobile platform baseline: preserve zoom, prevent browser tap chrome, and keep
   app surfaces inside the visible viewport when browser UI/keyboard changes. */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}
body{min-height:100dvh}
input,select,textarea{font-size:16px}
button,a,[role="button"]{touch-action:manipulation}
button,[role="button"],.nav-button,.button,.concept-chip,.tab{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (hover:hover) and (pointer:fine){
  .button:hover,.nav-button:hover,.sidebar-account-row:hover{transition:background-color .12s ease,color .12s ease,border-color .12s ease}
}
@media (max-width:900px){
  main{padding-top:calc(12px + env(safe-area-inset-top,0px))}
  .sidebar{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .table-panel{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
}
@media (max-width:650px){
  main>header{position:sticky;top:0;z-index:12;padding-top:calc(7px + env(safe-area-inset-top,0px));}
  .toolbar{align-items:stretch;gap:10px}
  .toolbar>label{flex:1 1 140px;min-width:0}
  .panel{max-width:100%;overflow-wrap:anywhere}
  .question-card,.rendered-question{overflow-x:hidden}
}
