/* betRISE session (v72.8): the sign-in card, the opening state, access by role, and the
   rail's tooltips and shortcut list. With session.js. */

/* ---------------------------------------------------------------- sign-in card */
.lfield select{appearance:auto}
.lroledesc{min-height:0;margin-top:6px}
#lgOpen{display:none;margin-top:18px;font-size:13px;color:var(--ink2)}

/* A stored session: the console from the first paint, never the form (index.html's
   head script sets `resume`; session.js clears it once the server has answered). */
html.resume #login{display:none !important}
html.resume #app[hidden]{display:block !important}
/* The server is slow to confirm it: the card comes back, saying so, still without the form. */
html.opening .loginbox .lfield,html.opening .lroledesc,html.opening #lgGo,html.opening #lgError{display:none !important}
html.opening #lgOpen{display:block}

/* ---------------------------------------------------------------- access by role */
/* Mirrors PAGE_LEVEL in session.js; the server refuses the same things (accounts.js). */
html[data-lvl="1"] .navi[data-page="setup"],html[data-lvl="1"] .navi[data-page="model"],
html[data-lvl="2"] .navi[data-page="model"],
html[data-lvl="1"] [data-goto="setup"],html[data-lvl="1"] [data-goto="model"],html[data-lvl="2"] [data-goto="model"],
html[data-lvl="1"] #btnDrawer,html[data-lvl="2"] #btnDrawer{display:none !important}

/* ---------------------------------------------------------------- the rail */
/* The collapsed rail's labels are invisible but were still over the page beside it and
   took its clicks (v72 has the same: a Scenarios row under "Command K" could not be
   clicked there). Collapsed, they no longer catch the pointer. */
.rail:not(.exp) .navi > span{pointer-events:none}

/* Name (and shortcut) beside an icon, on hover or keyboard focus, while collapsed. */
.navi[data-tip]::after{content:attr(data-tip);position:absolute;left:100%;top:50%;
  transform:translate(4px,-50%);white-space:nowrap;pointer-events:none;
  background:var(--panel3);color:var(--ink);border:1px solid var(--line2);border-radius:6px;
  padding:5px 9px;font-size:11.5px;font-weight:600;letter-spacing:.1px;
  box-shadow:0 8px 22px rgba(0,0,0,.45);opacity:0;visibility:hidden;
  transition:opacity .1s ease,visibility 0s linear .1s;z-index:300}
.rail:not(.exp) .navi[data-tip]:hover::after,
.rail:not(.exp) .navi[data-tip]:focus-visible::after{opacity:1;visibility:visible;
  transition:opacity .12s ease .15s,visibility 0s linear .15s}
.navi:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* Remembered width, for the first paint only (session.js hands over to .rail.exp). */
html.railx .rail{width:200px}
html.railx .rail .railtop{justify-content:flex-end;padding-right:12px}
html.railx .rail .railtog{transform:rotate(180deg)}
html.railx .rail .navi span{opacity:1}
html.railx .rail .navi .badge{position:static;margin-left:auto}
html.railx .rail ~ .main{margin-left:200px}

/* ---------------------------------------------------------------- `?` list */
.keyshelp{position:fixed;inset:0;z-index:400;background:rgba(4,8,16,.6);display:flex;
  align-items:flex-start;justify-content:center;padding:12vh 16px 16px}
.keyshelp[hidden]{display:none}
.keyshelp .kbox{width:min(380px,100%);background:var(--panel);border:1px solid var(--line2);
  border-radius:12px;padding:18px 20px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.keyshelp h3{margin:0 0 10px;font-size:14px}
.keyshelp .kr{display:flex;gap:12px;align-items:center;padding:5px 0;font-size:12.5px;color:var(--ink2);
  border-top:1px solid var(--line)}
.keyshelp .kr:first-of-type{border-top:0}
.keyshelp .kk{min-width:84px;font:600 11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink)}
