:root {
  color-scheme: light;
  --canvas:#faf8f2;
  --surface:#fffefa;
  --ink:#25262b;
  --muted:#5b5d65;
  --line:#deded9;
  --field-edge:#86888b;
  --neutral-soft:#f0efea;
  --accent:#6846c7;
  --accent-hover:#5335a8;
  --accent-soft:#eee9fa;
  --on-accent:#fff;
  font:16px/1.48 "DM Sans", "Segoe UI", system-ui, sans-serif;
  color:var(--ink);
  background:var(--canvas);
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; }
a { color:var(--accent); text-underline-offset:.18em; }
button,input,textarea,select { font:inherit; }
button,a[href],select { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { opacity:.58; cursor:default; }
:where(button,a,input,select,textarea):focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
h1,h2,h3 { line-height:1.16; letter-spacing:-.03em; overflow-wrap:anywhere; }
h1 { margin:.4em 0; font-size:clamp(2rem,4.2vw,3rem); }
h2 { font-size:clamp(1.25rem,2.4vw,1.55rem); margin:0 0 .65rem; }
h3 { font-size:1.14rem; }
main { max-width:1100px; margin:auto; padding:clamp(1rem,3vw,2.3rem) clamp(1rem,4vw,3rem) 4rem; outline:none; }
.topbar { background:var(--surface); border-bottom:1px solid var(--line); }
.topwrap { max-width:1100px; min-height:69px; margin:auto; padding:.7rem clamp(1rem,4vw,3rem); display:flex; align-items:center; justify-content:space-between; gap:.6rem 1.5rem; flex-wrap:wrap; }
.wordmark { display:inline-flex; align-items:center; gap:.55rem; text-decoration:none; color:var(--ink); font-weight:750; font-size:1.25rem; letter-spacing:-.05em; }
#primary { display:flex; align-items:center; flex-wrap:wrap; gap:.1rem .25rem; }
#primary a,.nav-login { background:transparent; color:var(--muted); text-decoration:none; border:none; font-size:.92rem; font-weight:580; padding:.5rem .68rem; border-radius:.65rem; }
#primary a:hover,#primary [aria-current] { color:var(--accent-hover); background:var(--accent-soft); }
#primary .nav-login { background:var(--accent); color:var(--on-accent); padding-inline:1rem; }
#primary .nav-register { color:var(--accent); font-weight:650; }
.lm-access { max-width:37rem; margin-inline:auto; overflow-wrap:anywhere; }
.lm-roles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:4px; background:var(--neutral-soft); border-radius:.8rem; }
.lm-role { min-height:40px; padding:.45rem .7rem; font-weight:650; color:var(--muted); background:transparent; border:1px solid transparent; border-radius:.6rem; }
.lm-role[aria-pressed=true] { color:var(--accent-hover); background:var(--surface); border-color:var(--line); }
.lm-roles + h2 { margin-top:1rem; }
.lm-home-access #lmMagicForm .btn { width:100%; }
.lm-home-access .btnline { margin-bottom:0; }
.cu-landing .lm-home-access { width:min(100%,32rem); margin:1rem auto 0; }
.btn,.soft,.btn-secondary,.link,.textlink { color:var(--ink); font-weight:620; }
.btn,.soft,.btn-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:.52rem 1rem; border:1px solid var(--line); border-radius:.7rem; text-align:center; text-decoration:none; line-height:1.3; }
.btn { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn:hover,#primary .nav-login:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.soft,.btn-secondary { background:var(--surface); }
.soft:hover,.btn-secondary:hover { background:var(--neutral-soft); }
.link,.textlink { border:none; background:none; padding:.3rem 0; color:var(--accent); text-decoration:underline; text-underline-offset:.16em; }
.btnline { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; margin:.8rem 0; }
.panel { margin:.85rem 0; padding:clamp(1rem,3vw,1.55rem); background:var(--surface); border:1px solid var(--line); border-radius:1rem; }
.panel p:first-of-type { margin-top:.4rem; }
.field { display:flex; flex-direction:column; gap:.35rem; margin:.85rem 0; color:var(--ink); font-size:.95rem; font-weight:610; }
.field small,small { color:var(--muted); font-weight:450; }
input:not([type=checkbox]):not([type=radio]),select,textarea { width:100%; min-width:0; padding:.65rem .78rem; background:var(--surface); color:var(--ink); border:1px solid var(--field-edge); border-radius:.55rem; box-sizing:border-box; }
input[type=checkbox],input[type=radio] { accent-color:var(--accent); }
textarea { resize:vertical; }
dt { font-weight:650; }
dd { margin:0 0 .6rem; overflow-wrap:anywhere; }
img,video { max-width:100%; height:auto; }
audio { max-width:100%; }
dialog { color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:1.15rem; box-shadow:0 24px 80px #25262b33; max-width:min(38rem,calc(100vw - 1.25rem)); width:100%; max-height:88dvh; padding:1.65rem; overflow:auto; }
dialog::backdrop { background:#191a20a6; }
#modal-body>h2:first-child { padding-right:2.1rem; }
.modal-x { width:36px; height:36px; float:right; border:1px solid var(--line); border-radius:50%; font-size:1.4rem; line-height:1; background:var(--surface); color:var(--ink); }
[data-auth-error] { color:#8a2725; }
#notification { position:fixed; z-index:20; bottom:1rem; left:50%; transform:translateX(-50%); background:var(--ink); color:var(--surface); padding:.55rem .95rem; border-radius:.65rem; width:max-content; max-width:94vw; box-shadow:0 5px 25px #25262b1a; opacity:0; pointer-events:none; }
#notification.visible { opacity:1; }
.skip { position:fixed; top:-5rem; left:.5rem; z-index:30; padding:.5rem; background:white; }
.skip:focus { top:.5rem; }
[hidden] { display:none !important; }
@media(max-width:620px){.topwrap{gap:.4rem;min-height:0}#primary{gap:0}#primary a,.nav-login{padding:.44rem .44rem;font-size:.86rem}.wordmark{font-size:1.09rem}.wordmark img{width:29px;height:29px}dialog{padding:1.1rem}main{padding-top:1.15rem}}
@media print{.topbar,#notification,.skip{display:none}body{background:white}main{max-width:none;padding:0}}
