/* access: the gate (closed beta, consent, invitation), the one-time ask sheet, the lite week and the admins'
 * Invitations. Solid content only (no glass), the shell's tokens, scoped under .access / .acc-*. The screen
 * gives the 16 px gutter; everything here fits 320 px. Red is used only for destructive actions. */

/* ---------- the gate's own header (bare pages have no large title) ---------- */
.acc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 4px 6px; }
.acc-badge {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: rgb(var(--accent-rgb) / 0.14); color: var(--accent);
}
.acc-badge .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.acc-badge.small { width: 40px; height: 40px; border-radius: 12px; }
.acc-badge.small .ico { width: 22px; height: 22px; }
.acc-title { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.acc-lead { margin: 0; max-width: 36ch; font-size: 15px; line-height: 1.4; color: var(--subtitle); }
.acc-ask-lead { margin: 4px 4px 0; max-width: none; }

/* ---------- closed beta ---------- */
.acc-center {
  min-height: calc(100vh - var(--sat) - var(--sab) - 180px);
  display: flex; flex-direction: column; justify-content: center;
}
.acc-beta { margin-top: 18px; text-align: center; }
.acc-beta-text { margin: 0; font-size: 17px; line-height: 1.45; color: var(--text); }
.acc-links { display: flex; justify-content: center; margin-top: 12px; }

/* ---------- the consent block ---------- */
.acc-consent { margin-top: 10px; }
.acc-facts-grid { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 480px) { .acc-facts-grid { grid-template-columns: 1fr 1fr; } }
.acc-facts { padding: 14px 16px; border-radius: 16px; background: var(--bg2); }
.acc-facts-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--section-header); }
.acc-facts-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.acc-facts-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.acc-fact-ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 11px; margin-top: -1px; }
.acc-fact-ico .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.acc-facts.keep .acc-fact-ico { background: rgb(var(--accent-rgb) / 0.14); color: var(--accent); }
.acc-facts.skip .acc-fact-ico { background: rgb(var(--text-rgb) / 0.08); color: var(--hint); }
.acc-consent .group { margin-top: 12px; }
.acc-adult {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px rgb(var(--accent-rgb) / 0.45);
}
.acc-adult-ico { flex: none; color: var(--accent); display: grid; }
.acc-adult-ico .ico { width: 26px; height: 26px; }
.acc-adult-text { min-width: 0; }
.acc-adult-line { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.acc-adult-hint { margin: 3px 0 0; font-size: 13px; line-height: 1.35; color: var(--hint); }

/* ---------- sheets ---------- */
.acc-sheet-text { margin: 0 4px; font-size: 15px; line-height: 1.45; color: var(--subtitle); }
.acc-minor-hold { margin-top: 16px; }
.acc-link {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg2); color: var(--text);
  font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-all;
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}

.acc-link-inline { margin: 0; padding: 0 2px; background: none; }
.acc-link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- search (lite, and the group of a new invitation) ---------- */
.acc-search-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 12px; height: 44px;
  border-radius: 12px; background: var(--bg2); color: var(--hint);
}
.acc-search-wrap .ico { width: 20px; height: 20px; flex: none; }
.acc-search {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  color: var(--text); font: inherit; font-size: 16px; -webkit-user-select: text; user-select: text;
}
.acc-search::placeholder { color: var(--hint); }
.acc-search-wrap:focus-within { box-shadow: inset 0 0 0 2px rgb(var(--accent-rgb) / 0.5); }
.acc-results .group { margin-top: 10px; }
.acc-results .empty.compact { margin-top: 10px; }
.acc-hint { margin: 8px 4px 0; font-size: 13px; line-height: 1.35; color: var(--hint); }

/* ---------- lite: the week without an account ---------- */
.acc-lite-head { display: flex; align-items: center; gap: 12px; padding: 8px 4px 4px; }
.acc-lite-names { display: flex; flex-direction: column; min-width: 0; }
.acc-lite-brand { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.acc-lite-sub { font-size: 14px; color: var(--hint); }
.acc-lite-h { margin: 18px 4px 0; font-size: 20px; font-weight: 700; }
.acc-week-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.acc-nav {   /* 44 pt (spec §10) */
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: rgb(var(--text-rgb) / 0.07); color: var(--accent); cursor: pointer;
}
.acc-nav:disabled { color: var(--hint); opacity: .45; cursor: default; }
.acc-nav .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.acc-week-label { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.acc-week-title { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-week-sub { max-width: 100%; font-size: 13px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-week-today { display: flex; justify-content: center; margin-top: 8px; }
/* the next week on its way: the bar stays (arrows disabled), the week under it dims until it is replaced */
.acc-week > :not(.acc-week-bar) { transition: opacity .15s ease; }
.acc-week[aria-busy="true"] > :not(.acc-week-bar) { opacity: .5; }
.acc-week .empty.compact { margin-top: 12px; }
.acc-week .group-title h2 { text-transform: none; }
.acc-today .group-title h2 { color: var(--accent); }
.acc-week .row-value { font-variant-numeric: tabular-nums; }
.acc-lite-foot { margin-top: 8px; }

/* ---------- under 18: "Ask a parent" (the lite card, the sheet) ---------- */
.acc-parent-card { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.acc-parent-text { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.acc-parent .acc-link { margin-top: 12px; }

/* ---------- admins: a new invitation ---------- */
.acc-form { display: grid; gap: 16px; }
.acc-field { display: grid; gap: 8px; min-width: 0; }
.acc-label { font-size: 15px; font-weight: 600; color: var(--section-header); padding: 0 4px; }
.acc-input {
  width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--bg2); color: var(--text); font: inherit; font-size: 16px;
  -webkit-user-select: text; user-select: text;
}
.acc-input:focus { outline: 2px solid rgb(var(--accent-rgb) / 0.5); outline-offset: 0; }
.acc-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acc-uses .stepper-value { min-width: 6.5em; }
.acc-quick .chip { min-width: 44px; justify-content: center; font-variant-numeric: tabular-nums; }
.acc-chosen .group { margin-top: 0; }
.acc-form .acc-search-wrap { margin-top: 0; }

@media (max-width: 359px) {
  .acc-title { font-size: 25px; }
  .acc-facts { padding: 12px 14px; }
  .acc-uses .stepper-value { min-width: 5.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .access * { transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  .acc-facts, .acc-link, .acc-input, .acc-search-wrap { box-shadow: inset 0 0 0 1px var(--sep); }
  .acc-adult { box-shadow: inset 0 0 0 1.5px var(--text); }
  .acc-lead, .acc-adult-hint, .acc-hint, .acc-lite-sub, .acc-week-sub, .acc-sheet-text { color: var(--text); }
  .acc-parent-card { box-shadow: inset 0 0 0 1px var(--sep); }
}
