.access-page {
  --ink: #182b45;
  --blue: #275bd6;
  --muted: #53657c;
  --line: #c8d3e5;
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  line-height: 1.6;
}
.access-page *, .team-panel * { box-sizing: border-box; }
.access-page [hidden] { display: none !important; }
.access-header { border-bottom: 1px solid #dce3ef; background: white; padding: 18px max(20px, 5vw); }
.access-header a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.32rem; font-weight: 700; }
.access-header span { display: grid; place-items: center; width: 37px; height: 39px; color: white; background: var(--blue); border-radius: 9px; font-size: 1.6rem; }
.access-main { max-width: 500px; margin: clamp(28px, 8vh, 90px) auto; padding: 0 16px; }
.access-main section { background: white; padding: clamp(24px, 6vw, 40px); border: 1px solid #dce3ef; border-radius: 18px 5px 18px 5px; }
.access-main h1 { font-size: clamp(1.9rem, 5vw, 2.45rem); line-height: 1.35; margin: 0; }
#access-help { margin: 8px 0 24px; color: var(--muted); }
.access-form { display: grid; gap: 16px; }
.access-form label, .team-panel label { display: grid; gap: 5px; font-weight: 600; }
.access-form input, .access-main button { font: inherit; }
.access-form input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.access-form input[readonly] { background: #f7f9fc; }
.access-form button { min-height: 46px; margin-top: 6px; border: 0; border-radius: 7px; background: var(--blue); color: white; font-weight: 600; cursor: pointer; }
.access-main button:disabled { opacity: .6; cursor: wait; }
.access-link { display: inline-block; background: none; border: 0; padding: 8px 0; margin-top: 12px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.access-page :focus-visible { outline: 3px solid #df942e; outline-offset: 3px; }
#access-message { margin: 12px 0 0; color: #99362c; overflow-wrap: anywhere; }
#access-message:empty, .team-panel p:empty { margin: 0; }
.team-panel { margin: 20px 0 32px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 12px; }
.team-panel > p { margin: 5px 0 16px; }
.team-form, .invite-tools, .team-row, .team-actions, .session-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.team-form { align-items: end; }
.team-form label { flex: 0 1 340px; }
.team-panel input, .invite-tools label { width: 100%; min-width: 0; }
.invite-tools { background: var(--paper); border-radius: 8px; padding: 14px; margin-top: 14px; }
.invite-tools label { flex: 1 1 320px; }
.invite-tools p { width: 100%; margin: 0; }
.team-panel ul { padding: 0; list-style: none; }
.team-row { justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-row div:first-child { overflow-wrap: anywhere; min-width: 0; }
.team-row small { display: block; color: var(--muted); }
.team-actions { gap: 8px; }
.session-actions { font-size: .875rem; overflow-wrap: anywhere; }
