/* The parts of the site that are not in the designed page itself: the way in, the people list, and the one line
   that says who is signed in. Same tokens, same type, same restraint - style.css is loaded first and owns them. */

/* The host page the design was built in supplied this rule itself; a plain web server does not. Without it every
   `el.hidden = true` in the code is beaten by the element's own `display:flex` - the name field stayed on the
   sign-in screen and the category row stayed on the second screen. */
[hidden]{display:none!important}
*{box-sizing:border-box}
html,body{min-height:100%}

/* ---------- the way in ---------- */
.gate{min-height:100%;display:grid;place-items:center;padding:28px 16px 48px}
.gate-in{width:min(430px,100%)}
.gate-top{display:flex;align-items:center;gap:11px;justify-content:center;margin-bottom:22px}
.gate-top .mark{width:36px;height:36px;border-radius:11px}
.gate-top .mark svg{width:19px;height:19px}
.gate-top b{font-family:var(--display);font-weight:800;font-size:20px;letter-spacing:-.3px}
.gate .box{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--sh-2);
  padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px));position:relative;overflow:hidden}
.gate .box::before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:var(--hot-grad)}
.gate h1{font-size:25px;font-weight:900;letter-spacing:-.6px;margin:4px 0 6px}
.gate .lede{color:var(--ink-2);font-size:15px;margin:0 0 20px}
.tabs{display:flex;gap:7px;margin-bottom:20px}
.tabs button{flex:1;background:var(--bg-2);border:1.5px solid var(--line-2);border-radius:12px;padding:9px 10px;
  font-family:var(--display);font-weight:700;font-size:15.5px;color:var(--ink-2);cursor:pointer;
  transition:transform .14s ease,color .14s ease}
.tabs button:active{transform:scale(.98)}
.tabs button[aria-pressed="true"]{background:var(--hot-grad);border-color:transparent;color:#fff;
  box-shadow:0 2px 10px var(--hot-ring),inset 0 1px 0 rgba(255,255,255,.28)}
.gate .f label{font-size:13.5px;font-weight:800;color:var(--ink-2)}
.gate .f input{background:var(--sunken);border:1.5px solid var(--line-2);border-radius:12px;padding:12px 13px;
  width:100%;font-size:16px;font-weight:600}
.gate .f input:focus{outline:none;border-color:var(--hot);box-shadow:0 0 0 3px var(--hot-ring)}
.gate .btn{width:100%;margin-top:4px;padding:14px 20px;font-size:16.5px}
.note{margin:18px 0 0;padding:14px 15px;background:var(--bg-2);border:1px solid var(--line);border-radius:14px;
  color:var(--ink-2);font-size:14px;line-height:1.6}
.note b{color:var(--ink)}
.msg{margin:0 0 16px;padding:12px 14px;border-radius:13px;font-weight:700;font-size:14.5px;display:none}
.msg.bad{display:block;background:var(--warn-soft);color:var(--warn)}
.msg.good{display:block;background:var(--ok-soft);color:var(--ok)}
.gate .foot{margin-top:22px;border-top:0;padding-top:0}

/* ---------- who is signed in, at the bottom of the page ---------- */
.account{margin-top:30px;display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;
  color:var(--ink-3);font-size:13.5px;font-weight:700}
.account .mini{text-decoration:none;display:inline-block}

/* ---------- the people list, the owner's screen ---------- */
.people{display:flex;flex-direction:column;gap:12px}
.person{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-1);
  padding:16px 18px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.person .nm{font-family:var(--display);font-weight:800;font-size:18px}
.person .em{color:var(--ink-2);font-size:14.5px;min-width:0;overflow-wrap:anywhere}
.person .acts{margin-inline-start:auto;display:flex;gap:8px;flex-wrap:wrap}
.person .btn{padding:9px 16px;font-size:14.5px;border-radius:11px}
.back{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;color:var(--ink-2);font-weight:700;
  text-decoration:none;font-size:15px}
.back:hover{color:var(--ink)}

/* the manager chip, the same red the page uses for a must */
.flag.must{background:var(--hot-soft);color:var(--hot-ink)}

/* the eye on the password field: the line across it is there while the password is hidden, and lifts when it shows */
.pw{position:relative;display:flex}
.pw input{padding-inline-start:46px}
.pw .eye{position:absolute;inset-inline-start:5px;top:50%;transform:translateY(-50%);background:none;border:0;
  width:40px;height:40px;display:grid;place-items:center;cursor:pointer;color:var(--ink-3);border-radius:9px;padding:0}
.pw .eye:hover{color:var(--ink-2)}
.pw .eye svg{width:21px;height:21px}
.pw .eye.open .slash{display:none}

/* a thumb, not a mouse: the people screen is used standing up, on a phone */
.person .btn{min-height:42px}
.person{gap:11px}
@media (max-width:520px){
  .person{align-items:flex-start}
  .person .acts{margin-inline-start:0;width:100%}
  .person .acts .btn{flex:1;min-width:92px}
}

/* a rep, who he belongs to, and the screens he is allowed to open */
.flag.rep{background:var(--c-net-soft);color:var(--c-net)}
.belong,.sees{width:100%;margin-top:11px;padding-top:11px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.belong .lbl,.sees .lbl{font-size:13.5px;font-weight:700;color:var(--ink-2)}
.ticks{display:flex;gap:8px;flex-wrap:wrap}
.tick{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--line-2);border-radius:11px;
  padding:8px 12px;min-height:42px;font-size:14px;font-weight:700;cursor:pointer;background:var(--surface)}
.tick input{accent-color:var(--hot);width:20px;height:20px}
.tick:has(input:checked){border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.hintline{font-size:13px;color:var(--ink-3);width:100%}
