/* Members area */
.shell { display: grid; grid-template-columns: 15.5rem 1fr; min-height: 100vh; }

.side {
  display: flex; flex-direction: column; gap: 1.75rem;
  background: var(--bg-2); border-right: 1px solid var(--line-soft);
  padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh;
}
.side-logo { padding: .25rem .5rem; }
.side-logo img { height: 30px; }
.side-logo small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: .4rem; line-height: 1; }
.gate-logo img { height: 58px; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.side-nav button {
  font: inherit; font-size: .95rem; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: .7rem;
  background: none; border: 0; color: var(--ink-2);
  padding: .6rem .75rem; border-radius: 8px;
}
.side-nav svg { width: 17px; height: 17px; flex: none; }
.side-nav button:hover { color: var(--ink); background: var(--surface); }
.side-nav button.on { color: #fff; background: var(--blue-soft); font-weight: 600; box-shadow: inset 2px 0 0 var(--blue); }
/* A section with nothing in it yet — still reachable, just visibly empty. */
.side-nav button.locked { opacity: .45; }
.side-nav button.locked.on { opacity: 1; }
.locked-panel { max-width: 34rem; }
.side-foot { border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.who { font-weight: 600; font-size: .9rem; word-break: break-all; }
.who + .dim { font-size: .8rem; margin-bottom: .75rem; }

.work { padding: 2.25rem 2.5rem 4rem; max-width: 64rem; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 1.85rem; }
.page-head p { color: var(--ink-2); margin: .4rem 0 0; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.tile { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem; }
.tile b { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.tile span { font-size: .8rem; color: var(--ink-3); }
.rows { display: grid; gap: .5rem; }
.row {
  display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.15rem; color: inherit; font: inherit; cursor: pointer;
}
.row:hover { border-color: var(--blue); }
.row .grow { flex: 1; min-width: 0; }
.row .nm { font-weight: 600; }
.row .sub { font-size: .825rem; color: var(--ink-3); }

/* licences: list + detail */
.split { display: grid; grid-template-columns: 17rem 1fr; gap: 1.5rem; align-items: start; }
.col-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .75rem; }
.ea-list { display: grid; gap: .4rem; }
.ea-list button {
  font: inherit; cursor: pointer; text-align: left; width: 100%; color: inherit;
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: .8rem .9rem;
}
.ea-list button:hover { border-color: var(--line); }
.ea-list button.on { border-color: var(--blue); background: var(--blue-soft); }
.ea-list .nm { font-weight: 600; display: block; }
.ea-list .tg { font-size: .78rem; color: var(--ink-3); }
.ea-list .ct { margin-left: auto; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.detail-head h2 { font-size: 1.5rem; }
.pill { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--blue-soft); color: #5b9bff; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.detail-sub { color: var(--ink-3); font-size: .9rem; margin: .4rem 0 1.5rem; }

.keyline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.75rem; }
.key {
  font-size: clamp(.85rem, 3.2vw, 1.15rem); font-weight: 600; letter-spacing: .06em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  padding: .5rem .85rem; border-radius: 8px;
}
.sec-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .65rem; }

.acct { display: flex; align-items: center; gap: .85rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .85rem 1.1rem; }
.acct + .acct { margin-top: .4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.pending { background: var(--ink-3); box-shadow: none; }
.acct .no { font-weight: 600; font-variant-numeric: tabular-nums; }
.acct .meta { font-size: .8rem; color: var(--ink-3); }
.acct .right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); }
.tag.live { background: var(--ok-soft); color: var(--ok); }

.addbox { margin-top: 1.5rem; }
.addrow { display: flex; gap: .6rem; }
.addrow input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.hint { font-size: .85rem; color: var(--ink-3); margin: .5rem 0 0; }

/* downloads */
.dl { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.dl .card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; }
.card-head { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.dl h3 { margin-bottom: .2rem; }
.dl .pill:not(.ok) { background: var(--surface-2); color: var(--ink-3); }
.dl .blurb { margin: .6rem 0 0; }
.minispec { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 1rem 0 1.25rem; font-size: .825rem; }
.minispec dt { color: var(--ink-3); }
.minispec dd { margin: 0; font-weight: 600; }
.foot-note { margin: .75rem 0 0; }
.dl .tg { font-size: .8rem; color: var(--blue); font-weight: 600; margin-bottom: 1rem; }
.dl .file { font-size: .825rem; color: var(--ink-3); margin: .75rem 0 1rem; font-variant-numeric: tabular-nums; }
.dl .pair { display: flex; gap: .5rem; }
.dl .pair .btn { flex: 1; }

.note { border-left: 2px solid var(--blue); background: var(--blue-soft); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin-bottom: 2rem; font-size: .9rem; color: var(--ink-2); }
.note b { color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.25rem 3.75rem; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 1.25rem; top: 1.25rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.steps h3 { margin-bottom: .3rem; font-size: 1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .925rem; }
code.inline { background: var(--bg-2); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 4px; font-size: .875em; }

/* sign-in gate */
.gate { min-height: 100vh; display: grid; grid-template-columns: 26rem 1fr; }
.gate-aside { background: var(--bg-2); border-right: 1px solid var(--line-soft); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.gate-aside::after { content: ''; position: absolute; inset: auto -30% -30% -30%; height: 30rem; background: radial-gradient(ellipse at 50% 100%, rgba(0,97,254,.18), transparent 70%); }
.gate-aside > * { position: relative; }
.gate-aside h2 { margin-bottom: .75rem; }
.gate-main { display: grid; place-items: center; padding: 2rem; }
.gate-form { width: 100%; max-width: 24rem; }
.gate-h { font-size: 1.7rem; margin-bottom: .4rem; }
.gate-sub { margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .25rem; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: .25rem; margin-bottom: 1.75rem; }
.tab {
  flex: 1; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: none; border: 0; color: var(--ink-3); padding: .5rem .75rem; border-radius: 6px;
}
.tab:hover { color: var(--ink); }
.tab.on { background: var(--surface); color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.btn.google { width: 100%; background: #fff; color: #1f2328; border-color: #dadce0; font-weight: 600; }
.btn.google:hover { background: #f1f3f4; filter: none; }
.or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-3); font-size: .8rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.notice-line { color: var(--warn); margin: 0 0 .5rem; }

/* password field with a show/hide control inside it */
.pw { position: relative; }
.pw input { padding-right: 2.9rem; }
.eye {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--ink-3);
}
.eye:hover { color: var(--ink); }
.eye::before {
  content: ''; width: 20px; height: 20px; display: block;
  background: currentColor;
  -webkit-mask: var(--eye) center/20px 20px no-repeat;
  mask: var(--eye) center/20px 20px no-repeat;
}
:root {
  --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1.5 12S5 5.5 12 5.5 22.5 12 22.5 12 19 18.5 12 18.5 1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9.9 5.7A9.9 9.9 0 0 1 12 5.5c7 0 10.5 6.5 10.5 6.5a17 17 0 0 1-3.2 4.1M6.2 7.9A17 17 0 0 0 1.5 12S5 18.5 12 18.5a9.8 9.8 0 0 0 4-.8'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}
.eye[aria-pressed="true"]::before { -webkit-mask-image: var(--eye-off); mask-image: var(--eye-off); }

/* live password requirements */
.rules { list-style: none; margin: .55rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .8rem; color: var(--ink-3); }
.rules li { display: flex; align-items: center; gap: .45rem; }
.rules li::before { content: '○'; font-size: .7rem; }
.rules li.met { color: var(--ok); }
.rules li.met::before { content: '●'; }
.met-text { color: var(--ok) !important; }
.gate-form .hint { font-size: .8rem; color: var(--ink-3); margin: .4rem 0 0; }
.gate-form select { font: inherit; width: 100%; padding: .75rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.gate-main { align-items: start; padding-top: 3.5rem; }

/* confirmation / password-reset page */
.verify-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.5rem; }
.verify-card { width: 100%; max-width: 24rem; }
.verify-logo { display: block; margin-bottom: 2.25rem; }
.verify-logo img { height: 44px; width: auto; }
.verify-logo span {
  display: block; margin-top: .5rem; font-size: .68rem; font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3);
}
.verify-card h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.verify-card > section > p { margin-bottom: 1.5rem; }
@media (max-width: 30rem) { .two { grid-template-columns: 1fr; } }

@media (max-width: 62rem) { .split { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem; }
  .side-logo { flex: 1 1 auto; }
  .side-logo img { height: 26px; }
  .side-logo small { display: none; }
  .side-nav { flex-direction: row; flex: 1 1 100%; overflow-x: auto; gap: .25rem; }
  .side-nav button { white-space: nowrap; font-size: .875rem; }
  .side-nav svg { display: none; }
  .side-foot { border: 0; padding: 0; }
  .side-foot .who, .side-foot .dim { display: none; }
  .work { padding: 1.5rem 1.25rem 3rem; }
  .addrow { flex-direction: column; }
  .gate { grid-template-columns: 1fr; }
  .gate-aside { display: none; }
}
