/* ==========================================================================
   MUPSN Learning Portal
   Built on the website's tokens (base.css): navy and gold, Sora and Inter.
   ========================================================================== */

body.lp { background: var(--bg); min-height: 100vh; }
.lp-app { min-height: 100vh; }
.lp-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.d-block { display: block; }
.lp-boot, .lp-loading { display: grid; place-items: center; padding: 3rem; }
.lp-loading-page { min-height: 50vh; }
.lp-spin-sm { width: 14px !important; height: 14px !important; border-width: 2px !important; }
.lp-warn-text { color: var(--warn); }
.lp-link { color: var(--link); font-weight: 600; }
.lp-noprint { }

/* Each activity type has its colour. */
.t-page, .t-book, .t-label { --tc: #2F6FB3; }
.t-url { --tc: #2A8C82; }
.t-file, .t-folder { --tc: #6B7A91; }
.t-assign { --tc: #B5462F; }
.t-quiz { --tc: #8A3FB8; }
.t-forum { --tc: #2F8A57; }
.t-choice, .t-feedback { --tc: #C27C0E; }
.t-glossary { --tc: #3E5BB8; }

/* ---------------------------------------------------------------- Shell */

.lp-impersonate, .lp-notice { padding: .55rem 1rem; text-align: center; font-size: .9rem; }
.lp-impersonate { color: #FFF; background: var(--danger); }
.lp-impersonate button { margin-left: .6rem; padding: .2rem .7rem; font: inherit; font-weight: 600; color: var(--danger); background: #FFF; border: 0; border-radius: 99px; cursor: pointer; }
.lp-notice { color: var(--accent-ink); background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

.lp-top {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: .9rem;
  height: 64px; padding: 0 1rem;
  background: var(--navy-900); color: #E9EEF6;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(7, 12, 21, .18);
}
.lp-brand { display: flex; align-items: center; gap: .6rem; color: #FFF; text-decoration: none; min-width: 0; }
.lp-brand img { width: 34px; height: 34px; }
.lp-brand span { display: grid; line-height: 1.1; }
.lp-brand b { font-family: var(--font-display); font-size: 1rem; white-space: nowrap; }
.lp-brand small { font-size: .66rem; letter-spacing: .14em; color: var(--gold-400); font-weight: 700; }
.lp-search { display: flex; align-items: center; gap: .5rem; flex: 1; max-width: 520px; margin-left: auto; padding: 0 .9rem; height: 40px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; }
.lp-search:focus-within { background: rgba(255, 255, 255, .14); border-color: var(--gold-400); }
.lp-search .lp-ico { color: #93A1B6; }
.lp-search input { flex: 1; min-width: 0; padding: 0; font: inherit; font-size: .92rem; color: #FFF; background: none; border: 0; outline: none; }
.lp-search input::placeholder { color: #93A1B6; }
.lp-search-inline { flex: 0 1 340px; margin: 0; background: var(--surface); border-color: var(--line); }
.lp-search-inline input { color: var(--ink); }
.lp-search-inline input::placeholder { color: var(--faint); }
.lp-search-inline:focus-within { background: var(--surface); border-color: var(--accent); }
.lp-top-tools { display: flex; align-items: center; gap: .3rem; }
.lp-icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; color: inherit; background: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; }
.lp-icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lp-icon-btn:disabled { opacity: .3; cursor: default; }
.lp-icon-btn .lp-ico { width: 19px; height: 19px; }
.lp-top .lp-icon-btn { color: #D2DAE6; }
.lp-dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; font-size: .64rem; font-weight: 700; line-height: 17px; text-align: center; color: #FFF; background: #E5484D; border-radius: 99px; box-shadow: 0 0 0 2px var(--navy-900); }
.lp-burger { display: none; }
.lp-user { display: flex; align-items: center; gap: .5rem; padding: .2rem .7rem .2rem .2rem; font: inherit; color: #E9EEF6; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; cursor: pointer; }
.lp-user-name { font-size: .88rem; font-weight: 600; }
.lp-pop-wrap { position: relative; }
.lp-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: min(380px, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); }
.lp-pop-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.lp-pop-head button { font: inherit; font-size: .82rem; color: var(--link); background: none; border: 0; cursor: pointer; }
.lp-pop-list a { display: grid; gap: .15rem; padding: .7rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.lp-pop-list a:hover { background: var(--surface-2); }
.lp-pop-list a.is-unread { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.lp-pop-list a.is-unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.lp-pop-list b { font-size: .9rem; font-weight: 600; }
.lp-pop-list span { font-size: .82rem; color: var(--muted); }
.lp-pop-list small, .lp-pop-empty { font-size: .76rem; color: var(--faint); }
.lp-pop-empty { padding: 1.5rem 1rem; text-align: center; }
.lp-pop-foot { display: block; padding: .7rem; text-align: center; font-size: .86rem; font-weight: 600; color: var(--link); text-decoration: none; }
.lp-usermenu { width: 260px; padding: .4rem; }
.lp-usermenu-head { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.lp-usermenu-head div { display: grid; min-width: 0; }
.lp-usermenu-head small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lp-usermenu a, .lp-usermenu button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .6rem; font: inherit; font-size: .9rem; color: var(--ink); text-align: left; text-decoration: none; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.lp-usermenu a:hover, .lp-usermenu button:hover { background: var(--surface-2); }

.lp-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.lp-side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 1.2rem .8rem 2rem; background: var(--surface); border-right: 1px solid var(--line); }
.lp-side nav { display: grid; gap: .1rem; }
.lp-side nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 10px; }
.lp-side nav a:hover { background: var(--surface-2); color: var(--ink); }
.lp-side nav a.is-active { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.lp-side-head { margin: 1.4rem .7rem .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.lp-side-courses a { display: grid !important; grid-template-columns: 12px minmax(0, 1fr); gap: .1rem .6rem !important; }
.lp-side-courses a small { grid-column: 2; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.lp-side-courses a.is-active small { color: inherit; opacity: .8; }
.lp-side-swatch { grid-row: span 2; align-self: center; width: 10px; height: 10px; border-radius: 3px; background: hsl(var(--hue) 55% 50%); }
.lp-side-empty { padding: .3rem .7rem; font-size: .84rem; color: var(--muted); }
.lp-side .lp-side-empty a { display: inline; padding: 0; font-size: inherit; color: var(--link); background: none; }
.lp-main { min-width: 0; outline: none; }

@media (max-width: 1023px) {
  .lp-body { grid-template-columns: minmax(0, 1fr); }
  .lp-burger { display: inline-grid; }
  .lp-side { position: fixed; inset: 64px auto 0 0; z-index: 70; width: min(300px, 86vw); height: auto; transform: translateX(-102%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s linear 260ms; box-shadow: var(--shadow-3); }
  body.lp-menu-open .lp-side { transform: none; visibility: visible; transition: transform 260ms var(--ease-out); }
  body.lp-menu-open::after { content: ''; position: fixed; inset: 64px 0 0; z-index: 60; background: rgba(7, 12, 21, .45); }
  .lp-user-name { display: none; }
}
@media (max-width: 700px) {
  .lp-top { gap: .4rem; padding: 0 .6rem; }
  .lp-brand span { display: none; }
  .lp-search { padding: 0 .7rem; }
  .lp-user { padding: .15rem; }
}

/* ---------------------------------------------------------------- Pages */

.lp-page { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: 1.6rem 0 4rem; }
.lp-page-wide { width: min(100% - 2rem, 1440px); }
.lp-narrow { width: min(100% - 2rem, 760px); }
.lp-page h1 { font-size: var(--step-4); letter-spacing: -.02em; line-height: 1.12; }
.lp-h2, .lp-page h1.lp-h2 { font-size: var(--step-2); letter-spacing: -.01em; }
.lp-h3 { font-size: var(--step-1); }
.lp-section-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
.lp-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; font-size: .84rem; color: var(--muted); }
.lp-crumbs a { color: var(--muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--link); text-decoration: underline; }
.lp-panel { padding: 1.2rem 1.3rem; }
.lp-empty, .lp-empty-soft { padding: 2rem 1.2rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.lp-empty-soft { grid-column: 1 / -1; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lp-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--gap-4); align-items: start; }
.lp-form-error, .lp-field-error { font-size: .86rem; color: var(--danger); font-weight: 500; }
.lp-form-error { padding: .7rem .9rem; background: var(--danger-soft); border-radius: 10px; }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.lp-btn-danger { --btn-bg: var(--danger); --btn-ink: #FFF; }
.lp-danger { color: var(--danger); }
.lp-link-btn { padding: 0; font: inherit; font-size: .84rem; font-weight: 600; color: var(--link); background: none; border: 0; cursor: pointer; }
.lp-link-btn:hover { text-decoration: underline; }
.lp-inline-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; white-space: nowrap; }
.lp-code { padding: .9rem 1rem; font-family: var(--font-mono); font-size: .82rem; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.lp-count { margin-left: auto; min-width: 22px; padding: .05rem .45rem; font-size: .72rem; font-weight: 700; text-align: center; color: var(--accent-ink); background: var(--accent); border-radius: 99px; }

.lp-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; font-family: var(--font-display); font-weight: 700; color: #FFF; background: hsl(var(--hue, 210) 45% 46%); }
.lp-person { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.lp-person span { display: grid; }
.lp-person small { font-size: .78rem; color: var(--muted); }
.lp-person:hover b { color: var(--link); }

.lp-tabs { display: flex; gap: .2rem; margin-top: 1.2rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .95rem; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lp-tabs a:hover { color: var(--ink); }
.lp-tabs a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.lp-seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; }
.lp-seg button { padding: .38rem .9rem; font: inherit; font-size: .86rem; color: var(--ink-2); background: none; border: 0; border-radius: 99px; cursor: pointer; }
.lp-seg button[aria-pressed='true'] { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.lp-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.lp-filterbar select { width: auto; }
.lp-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.lp-chips .chip { cursor: pointer; }
.lp-chips .chip[aria-pressed='true'] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lp-chips .chip small { opacity: .7; }

.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .8rem; }
.lp-stats .stat { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.lp-stats .stat b { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -.02em; }
.lp-stats .stat span { font-size: .84rem; color: var(--muted); }
.lp-stats .stat.is-link { color: inherit; text-decoration: none; transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.lp-stats .stat.is-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.lp-todo { padding: 1rem 1.15rem; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); border-radius: var(--r-md); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.lp-todo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .5rem; margin-top: .6rem; }
.lp-todo-item { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: var(--r-sm, 10px); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.lp-todo-item:hover { border-color: var(--line-strong); }
.lp-todo-item b { min-width: 2rem; padding: .15rem .45rem; border-radius: 99px; text-align: center; font-variant-numeric: tabular-nums; background: var(--warn); color: #fff; }
.lp-todo-item.is-calm b { background: var(--surface-2); color: inherit; }
.lp-todo-item span { flex: 1; min-width: 0; font-size: .9rem; }
.lp-todo-item svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lp-stats .stat.is-live b { color: var(--ok); }
.lp-stats .stat.is-live b::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: .45rem; vertical-align: middle; border-radius: 50%; background: var(--ok); animation: pulse-dot 1.8s infinite; }

.lp-progress { height: 7px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.lp-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.lp-ring { position: relative; display: inline-grid; place-items: center; }
.lp-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 6; }
.lp-ring-bg { stroke: rgba(255, 255, 255, .18); }
.lp-ring-fg { stroke: var(--gold-400); stroke-linecap: round; transition: stroke-dashoffset 800ms var(--ease-out); }
.lp-ring b { position: relative; font-family: var(--font-display); font-size: .86rem; }

.lp-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lp-table th, .lp-table td { padding: .65rem .85rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.lp-table thead th { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.lp-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.lp-table tr:last-child td, .lp-table tr:last-child th { border-bottom: 0; }
.lp-table input, .lp-table select { padding: .35rem .5rem; font-size: .88rem; }
.lp-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lp-status th { width: 32%; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
.lp-num-sm { width: 90px; }

.lp-list { display: grid; gap: .4rem; }
.lp-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; color: var(--ink); text-decoration: none; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; width: 100%; }
.lp-row:hover { border-color: var(--accent); }
.lp-row > span:not(.lp-count):not(.lp-avatar):not(.badge) { display: grid; min-width: 0; flex: 1; }
.lp-row > .badge { flex: none; }
.lp-row small { font-size: .8rem; color: var(--muted); }
.lp-row.is-unread { border-left: 4px solid var(--accent); }
.lp-row > .lp-ico { color: var(--muted); }
.lp-pick { display: grid; gap: .35rem; max-height: 260px; overflow-y: auto; }

/* ---------------------------------------------------------------- Dialogs */

/* The site's reset removes the margin that centres a dialog; put it back. */
.lp-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 20px; box-shadow: var(--shadow-3); }
.lp-dialog.is-wide { width: min(860px, calc(100vw - 2rem)); }
.lp-dialog::backdrop { background: rgba(7, 12, 21, .55); backdrop-filter: blur(3px); }
.lp-dialog[open] { display: flex; flex-direction: column; animation: lp-pop 220ms var(--ease-out); }
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.lp-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem .8rem; border-bottom: 1px solid var(--line); }
.lp-dialog-head h2 { font-size: var(--step-1); }
.lp-dialog-body { padding: 1.1rem 1.3rem; overflow-y: auto; }
.lp-dialog-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.3rem; border-top: 1px solid var(--line); background: var(--surface-2); }

/* ---------------------------------------------------------------- Editor and rich text */

.lp-editor { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.lp-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lp-editor-bar { display: flex; flex-wrap: wrap; gap: .1rem; padding: .3rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-editor-bar button { display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 .4rem; font: inherit; font-size: .84rem; color: var(--ink-2); background: none; border: 0; border-radius: 7px; cursor: pointer; }
.lp-editor-bar button:hover { background: var(--surface); color: var(--ink); }
.lp-editor-sep { width: 1px; margin: .3rem .2rem; background: var(--line); }
.lp-editor-area { min-height: 150px; max-height: 60vh; overflow-y: auto; padding: .9rem 1rem; outline: none; }
[data-minimal] .lp-editor-area { min-height: 90px; }
.lp-editor-area:empty::before { content: attr(data-placeholder); color: var(--faint); }

.lp-rich { line-height: 1.7; overflow-wrap: anywhere; }
.lp-rich > * + * { margin-top: .75em; }
.lp-rich h2 { font-size: var(--step-2); margin-top: 1.2em; }
.lp-rich h3 { font-size: var(--step-1); margin-top: 1.1em; }
.lp-rich ul, .lp-rich ol { padding-left: 1.4em; }
.lp-rich li + li { margin-top: .3em; }
.lp-rich a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.lp-rich blockquote { padding: .6em 1em; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.lp-rich pre { padding: .8em 1em; font-family: var(--font-mono); font-size: .86em; overflow-x: auto; background: var(--navy-900); color: #E9EEF6; border-radius: 10px; }
.lp-rich code { font-family: var(--font-mono); font-size: .9em; padding: .1em .35em; background: var(--surface-2); border-radius: 5px; }
.lp-rich img { max-width: 100%; height: auto; border-radius: 10px; }
.lp-rich table { width: 100%; border-collapse: collapse; }
.lp-rich th, .lp-rich td { padding: .5em .7em; border: 1px solid var(--line); }
.lp-rich th { background: var(--surface-2); }
.lp-rich .callout, .lp-rich .callout-tip, .lp-rich .callout-info, .lp-rich .callout-warn { padding: .8em 1em; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.lp-rich .callout-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.lp-rich .callout-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.lp-rich .video, .lp-rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.lp-rich .video iframe { width: 100%; height: 100%; }
.lp-reading { max-width: 72ch; font-size: 1.04rem; }
.lp-small-rich { font-size: .84rem; }

/* ---------------------------------------------------------------- Sign in */

.lp-auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--gold-500) 22%, transparent), transparent 60%), var(--navy-900); }
.lp-auth-wrap { display: grid; grid-template-columns: 1fr 1fr; width: min(980px, 100%); background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); }
.lp-auth-wrap.is-wide { grid-template-columns: .9fr 1.1fr; }
.lp-auth-art { display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 3rem; color: #E9EEF6; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.lp-auth-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.lp-auth-art h2 { font-size: var(--step-4); color: #FFF; line-height: 1.1; }
.lp-auth-art ul { margin-top: .8rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.lp-auth-art li::before { content: '✓'; margin-right: .6rem; color: var(--gold-400); font-weight: 700; }
.lp-auth-card { padding: 3rem 2.6rem; }
.lp-auth-card h1 { font-size: var(--step-3); }
@media (max-width: 820px) { .lp-auth-wrap, .lp-auth-wrap.is-wide { grid-template-columns: minmax(0, 1fr); } .lp-auth-art { padding: 2rem; } .lp-auth-art ul { display: none; } .lp-auth-card { padding: 2rem 1.5rem; } }

/* ---------------------------------------------------------------- Dashboard */

.lp-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lp-hello .lead { margin-top: .4rem; color: var(--muted); }
.lp-hello-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.lp-dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap-5); margin-top: var(--gap-5); align-items: start; }
.lp-dash-side { position: sticky; top: 84px; }
@media (max-width: 1100px) { .lp-dash { grid-template-columns: minmax(0, 1fr); } .lp-dash-side { position: static; order: -1; } }
.lp-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-top: 1rem; }
.lp-ccard { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease); }
.lp-ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.lp-ccard-img { display: grid; place-items: center; aspect-ratio: 16 / 7; background: linear-gradient(135deg, hsl(var(--hue) 50% 32%), hsl(calc(var(--hue) + 40) 55% 22%)); text-decoration: none; overflow: hidden; }
.lp-ccard-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-ccard-img span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; color: rgba(255, 255, 255, .85); }
.lp-ccard-body { display: grid; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.lp-ccard-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-ccard h3 { font-size: 1.05rem; line-height: 1.3; }
.lp-ccard h3 a { color: var(--ink); text-decoration: none; }
.lp-ccard h3 a::after { content: ''; position: absolute; inset: 0; }
.lp-ccard-people { display: flex; align-items: center; }
.lp-ccard-people .lp-avatar { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.lp-ccard-people small { margin-left: .9rem; font-size: .8rem; color: var(--muted); }
.lp-star { position: absolute; top: .6rem; right: .6rem; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; color: #FFF; background: rgba(7, 12, 21, .35); border: 0; border-radius: 50%; cursor: pointer; }
.lp-star.is-on { color: var(--gold-400); }
.lp-star.is-on .lp-ico { fill: currentColor; }

.lp-tl-group + .lp-tl-group { margin-top: .9rem; }
.lp-tl-head { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.lp-tl-group.is-overdue .lp-tl-head { color: var(--danger); }
.lp-tl-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; color: var(--ink); text-decoration: none; border-radius: 10px; }
.lp-tl-item:hover { background: var(--surface-2); }
.lp-tl-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); border-radius: 9px; }
.lp-tl-text { display: grid; min-width: 0; flex: 1; }
.lp-tl-text b { font-size: .9rem; font-weight: 600; }
.lp-tl-text small, .lp-tl-when small { font-size: .76rem; color: var(--muted); }
.lp-tl-when { display: grid; text-align: right; font-size: .84rem; }
.lp-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; }
.lp-recent-item { display: flex; align-items: center; gap: .7rem; padding: .7rem; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-recent-item span:last-child { display: grid; min-width: 0; }
.lp-recent-item b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-recent-item small { font-size: .76rem; color: var(--muted); }

/* ---------------------------------------------------------------- Course page */

.lp-course-head { position: relative; display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; color: #FFF; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(120deg, hsl(var(--hue) 48% 26%), var(--navy-900)); }
.lp-course-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.lp-course-head-text { position: relative; flex: 1; min-width: 0; }
.lp-course-head h1 { color: #FFF; font-size: var(--step-4); }
.lp-course-head .kicker { color: var(--gold-400); }
.lp-course-head .lp-ccard-people small { color: #C3CDDC; }
.lp-course-head .lp-ccard-people .lp-avatar { box-shadow: 0 0 0 2px hsl(var(--hue) 48% 26%); }
.lp-course-progress { position: relative; display: grid; justify-items: center; gap: .3rem; color: #E9EEF6; }
.lp-course-progress small { font-size: .78rem; color: #C3CDDC; }
.lp-course-head.is-compact { padding: .9rem 1.4rem; gap: 1rem; }
.lp-course-head.is-compact h1 { font-size: var(--step-2); }
.lp-course-head.is-compact .lp-ccard-people { display: none; }
.lp-course-head.is-compact .kicker { font-size: .72rem; }
.lp-course-head.is-compact .lp-course-progress small { display: none; }
.lp-celebrate { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; background: var(--ok-soft); color: var(--ok); border-radius: var(--r-md); }
.lp-celebrate div { flex: 1; color: var(--ink); }
.lp-course-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap-4); align-items: start; }
.lp-course-index { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.lp-course-index .lp-side-head { margin-left: .5rem; margin-top: .2rem; }
.lp-course-index nav { display: grid; gap: .1rem; }
.lp-course-index a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .5rem; font-size: .88rem; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.lp-course-index a:hover { background: var(--surface); color: var(--ink); }
.lp-course-index a.is-hidden { opacity: .55; }
.lp-course-index small { font-size: .74rem; color: var(--muted); }
.lp-course-index small.is-done { color: var(--ok); }
@media (max-width: 960px) { .lp-course-layout { grid-template-columns: minmax(0, 1fr); } .lp-course-index { display: none; } .lp-course-head { flex-wrap: wrap; } }
.lp-editbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-course-summary { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-section { scroll-margin-top: 84px; margin-bottom: 1.2rem; padding: 1.1rem 1.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.lp-section.is-hidden { opacity: .72; border-style: dashed; }
.lp-section-title { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.lp-section-title h2 { font-size: var(--step-2); flex: 1; }
.lp-section-summary { margin-top: .5rem; color: var(--ink-2); }
.lp-section-empty { margin-top: .6rem; font-size: .88rem; color: var(--faint); }
.lp-mods { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .2rem; }
.lp-mod { display: flex; align-items: flex-start; gap: .9rem; padding: .75rem .6rem; border-radius: 12px; }
.lp-mod:hover { background: var(--surface-2); }
.lp-mod.is-hidden { opacity: .62; }
.lp-mod.is-label { display: block; padding: .5rem .6rem; }
.lp-mod.is-label:hover { background: none; }
.lp-mod-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; color: #FFF; background: var(--tc, var(--muted)); border-radius: 11px; box-shadow: 0 3px 8px color-mix(in srgb, var(--tc, #000) 30%, transparent); }
.lp-mod-icon .lp-ico { width: 21px; height: 21px; }
.lp-mod-icon.is-big { width: 54px; height: 54px; border-radius: 14px; }
.lp-mod-icon.is-big .lp-ico { width: 27px; height: 27px; }
.lp-mod-main { flex: 1; min-width: 0; }
.lp-mod-type { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lp-mod-name { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; }
a.lp-mod-name:hover { color: var(--link); text-decoration: underline; }
.lp-mod.is-locked .lp-mod-name { color: var(--muted); }
.lp-mod-desc { margin-top: .15rem; font-size: .86rem; color: var(--muted); }
.lp-mod-restrict { display: flex; align-items: center; gap: .35rem; margin-top: .3rem; font-size: .8rem; color: var(--warn); }
.lp-mod-dates { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.lp-date { padding: .15rem .55rem; font-size: .76rem; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; }
.lp-date.is-soon { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.lp-date.is-past { color: var(--faint); }
.lp-mod-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.lp-done { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; font: inherit; font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 99px; cursor: pointer; }
.lp-done .lp-ico { width: 14px; height: 14px; }
.lp-done:hover { border-color: var(--ok); }
.lp-done.is-done { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.lp-done.is-auto { cursor: default; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.lp-done.is-auto:not(.is-done) { color: var(--muted); }
.lp-done.is-fail { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.lp-mod-actions { display: inline-flex; flex-wrap: wrap; gap: .1rem; }
.lp-mod-actions .lp-icon-btn { width: 32px; height: 32px; color: var(--muted); }
.lp-mod-actions .lp-icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.lp-mod-actions .lp-icon-btn.lp-danger:hover { color: var(--danger); }
.lp-add-mod { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .7rem; padding: .7rem; font: inherit; font-weight: 600; color: var(--link); background: none; border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; }
.lp-add-mod:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
@media (max-width: 640px) { .lp-mod { flex-wrap: wrap; } .lp-mod-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-left: calc(42px + .9rem); } }

.lp-chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.lp-chooser-item { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; padding: .85rem; font: inherit; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.lp-chooser-item:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.lp-chooser-item .lp-mod-icon { grid-row: span 2; }
.lp-chooser-item small { font-size: .78rem; color: var(--muted); line-height: 1.35; }

.lp-enrol { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; padding: 0; }
.lp-enrol-img { display: grid; place-items: center; min-height: 240px; background: linear-gradient(135deg, hsl(var(--hue) 50% 32%), hsl(calc(var(--hue) + 40) 55% 22%)); }
.lp-enrol-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-enrol-img span { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: rgba(255, 255, 255, .85); }
.lp-enrol-body { padding: 1.6rem 1.8rem; }
@media (max-width: 700px) { .lp-enrol { grid-template-columns: minmax(0, 1fr); } .lp-enrol-img { min-height: 140px; } }

/* ---------------------------------------------------------------- Forms */

.lp-form { display: grid; gap: 1.2rem; }
.lp-fieldset { padding: 1.3rem 1.4rem; border: 1px solid var(--line); min-width: 0; }
.lp-fieldset legend { padding: 0 .4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.lp-form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.lp-thumb { width: 160px; height: 70px; object-fit: cover; border-radius: 10px; }
.lp-drop { position: relative; display: grid; place-items: center; padding: 1.3rem; text-align: center; color: var(--muted); background: var(--surface-2); border: 2px dashed var(--line-strong); border-radius: 14px; cursor: pointer; }
.lp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lp-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.lp-files { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.lp-files li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.lp-files a { flex: 1; min-width: 0; color: var(--link); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-files small { font-size: .78rem; color: var(--muted); }
.lp-file-ico { display: grid; place-items: center; color: var(--muted); }
.lp-file-ico.is-big .lp-ico { width: 40px; height: 40px; }
.lp-qrow, .lp-arow, .lp-band { display: grid; gap: .5rem; align-items: center; }
.lp-qrow { grid-template-columns: 190px 1fr; padding: .7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lp-qrow textarea { grid-column: 1 / -1; min-height: 0; }
.lp-qrow .lp-inline-check, .lp-qrow .lp-icon-btn { justify-self: start; }
.lp-arow { grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1.4fr) auto; }
.lp-arow:has([data-tol]) { grid-template-columns: minmax(0, 1fr) 110px 110px minmax(0, 1.3fr) auto; }
.lp-arow:has([data-q]) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.lp-band { grid-template-columns: 110px 1fr auto; }
.lp-qlist { display: grid; gap: .6rem; }
.lp-chapter { padding: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lp-chapter .row { margin-bottom: .5rem; }
@media (max-width: 700px) { .lp-arow, .lp-arow:has([data-tol]), .lp-arow:has([data-q]) { grid-template-columns: 1fr 1fr; } .lp-qrow { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Activities */

.lp-mod-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }
.lp-mod-head h1 { font-size: var(--step-3); }
.lp-mod-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.lp-mod-head-side { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lp-intro { margin-top: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-mod-body { margin-top: 1.4rem; }
.lp-prevnext { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.lp-prevnext a { display: flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.lp-prevnext a span { display: grid; }
.lp-prevnext small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.lp-prevnext .is-next { justify-content: flex-end; text-align: right; }
.lp-prevnext .is-course { padding: .45rem 1rem; border: 1px solid var(--line-strong); border-radius: 99px; }
.lp-prevnext a:hover { color: var(--link); }
.lp-url, .lp-download { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem; }
.lp-url > div, .lp-download > div { flex: 1; min-width: 200px; display: grid; }
.lp-url > .lp-ico { width: 36px; height: 36px; color: var(--tc, var(--link)); }
.lp-url-link { font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.lp-download small { color: var(--muted); }
.lp-preview-img { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }
.lp-preview-pdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-book { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap-4); }
.lp-book-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: .1rem; }
.lp-book-toc .lp-side-head { margin: 0 0 .4rem .4rem; }
.lp-book-toc a { padding: .45rem .6rem; font-size: .9rem; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.lp-book-toc a.is-sub { padding-left: 1.6rem; font-size: .86rem; }
.lp-book-toc a.is-active { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.lp-book-page { padding: 1.6rem 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-book-page > h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.lp-book-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
@media (max-width: 860px) { .lp-book { grid-template-columns: minmax(0, 1fr); } .lp-book-toc { position: static; } }

.lp-assign-dates { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: var(--ink-2); }
.lp-feedback { padding: 1.2rem 1.3rem; border-left: 4px solid var(--ok); }
.lp-grade-big { display: flex; align-items: baseline; gap: .5rem; margin-top: .4rem; }
.lp-grade-big b { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; }
.lp-grade-big span { color: var(--muted); }
.lp-submit { padding: 1.3rem; }
.lp-grading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 1.2rem; align-items: start; }
.lp-grading tr[data-row] { cursor: pointer; }
.lp-grading tr.is-selected { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.lp-grade-pane { position: sticky; top: 84px; padding: 1.2rem; max-height: calc(100vh - 100px); overflow-y: auto; }
.lp-sub-text { padding: .9rem 1rem; background: var(--surface-2); border-radius: 12px; max-height: 360px; overflow-y: auto; }
@media (max-width: 1000px) { .lp-grading { grid-template-columns: minmax(0, 1fr); } .lp-grade-pane { position: static; max-height: none; } }

.lp-discussions { display: grid; gap: .5rem; }
.lp-discussion { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-discussion:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.lp-discussion.is-unread { border-left: 4px solid var(--accent); }
.lp-discussion-main { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.lp-discussion-main b { display: flex; align-items: center; gap: .35rem; }
.lp-discussion-main p { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-discussion-main small, .lp-discussion-side small { font-size: .76rem; color: var(--faint); }
.lp-discussion-side { display: grid; justify-items: end; text-align: right; }
.lp-pin { color: var(--warn); width: 15px; height: 15px; }
.lp-thread { display: grid; gap: .8rem; }
.lp-post { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); scroll-margin-top: 90px; }
.lp-post.is-reply { margin: .7rem 0 0 calc(min(var(--depth), 2) * 0rem); background: var(--surface-2); }
.lp-post .lp-post.is-reply { margin-left: 1.2rem; }
.lp-post.is-new { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.lp-post header { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.lp-post header div { display: grid; }
.lp-post header small { font-size: .78rem; color: var(--muted); }
.lp-post-subject { font-size: var(--step-1); margin-bottom: .4rem; }
.lp-post footer { display: flex; gap: 1rem; margin-top: .7rem; }
.lp-reply { margin-top: .8rem; }

.lp-choice, .lp-survey { padding: 1.2rem 1.3rem; }
.lp-option { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .8rem; margin-top: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.lp-option:hover { border-color: var(--accent); }
.lp-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.lp-option input { margin-top: .2rem; accent-color: var(--accent); }
.lp-option.is-full { opacity: .55; }
.lp-option > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.lp-bars { display: grid; gap: .5rem; }
.lp-bar-row { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(80px, 3fr) 48px; gap: .4rem .8rem; align-items: center; font-size: .9rem; }
.lp-bar { height: 12px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); border-radius: inherit; }
.lp-bar.is-low i { background: var(--danger); }
.lp-bar-people { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }
.lp-rating { display: flex; gap: .4rem; }
.lp-rating label { position: relative; }
.lp-rating input { position: absolute; opacity: 0; }
.lp-rating span { display: grid; place-items: center; width: 44px; height: 44px; font-weight: 700; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.lp-rating input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lp-rating input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-answers { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .9rem; }
.lp-letters { display: flex; flex-wrap: wrap; gap: .25rem; }
.lp-letters button { min-width: 34px; height: 34px; font: inherit; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.lp-letters button[aria-pressed='true'] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lp-glossary { display: grid; gap: .7rem; }
.lp-gentry { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-gentry.is-pending { border-style: dashed; }
.lp-gentry dt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.lp-gentry dd { margin: .3rem 0 0; }

/* ---------------------------------------------------------------- Quiz */

.lp-rules { margin: 0; padding: 1rem 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-rules dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lp-rules dd { margin: .2rem 0 0; font-weight: 600; }
.lp-attempt { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--gap-4); align-items: start; }
.lp-attempt-side { position: sticky; top: 84px; padding: 1rem; }
.lp-attempt-side .lp-side-head { margin: .8rem 0 .5rem; }
.lp-attempt-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.lp-timer { display: grid; text-align: center; padding: .7rem; background: var(--navy-800); color: #FFF; border-radius: 12px; }
.lp-timer small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #93A1B6; }
.lp-timer b { font-family: var(--font-mono); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.lp-timer.is-low { background: var(--danger); animation: lp-blink 1s steps(2) infinite; }
@keyframes lp-blink { 50% { opacity: .82; } }
.lp-qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: .3rem; }
.lp-qnav button { position: relative; height: 38px; font: inherit; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.lp-qnav button.is-answered { background: color-mix(in srgb, var(--info) 14%, var(--surface)); border-color: var(--info); }
.lp-qnav button.is-current { box-shadow: 0 0 0 2px var(--accent); }
.lp-qnav button.is-flagged::after { content: ''; position: absolute; top: 2px; right: 2px; border: 5px solid transparent; border-top-color: var(--danger); border-right-color: var(--danger); }
@media (max-width: 900px) { .lp-attempt { grid-template-columns: minmax(0, 1fr); } .lp-attempt-side { position: sticky; top: 64px; z-index: 20; order: -1; } .lp-attempt-side .lp-qnav, .lp-attempt-side .lp-side-head { display: none; } }
.lp-q { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; scroll-margin-top: 90px; }
.lp-q.is-info { display: block; padding: 1rem 1.2rem; background: var(--info-soft); border-radius: var(--r-md); }
.lp-q-info { display: grid; align-content: start; gap: .2rem; padding: .8rem; font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lp-q-info b { font-family: var(--font-display); font-size: .98rem; }
.lp-q-info span { color: var(--ink-2); }
.lp-q-info small { color: var(--muted); }
.lp-q.is-correct .lp-q-info { border-color: var(--ok); background: var(--ok-soft); }
.lp-q.is-partial .lp-q-info { border-color: var(--warn); background: var(--warn-soft); }
.lp-q.is-incorrect .lp-q-info { border-color: var(--danger); background: var(--danger-soft); }
.lp-q.is-needsgrading .lp-q-info { border-color: var(--info); background: var(--info-soft); }
.lp-flag { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; padding: 0; font: inherit; font-size: .78rem; color: var(--muted); background: none; border: 0; cursor: pointer; }
.lp-flag.is-on { color: var(--danger); font-weight: 600; }
.lp-q-body { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-q-text { margin-bottom: .8rem; font-size: 1.02rem; }
.lp-opt-mark { font-weight: 700; color: var(--muted); min-width: 1.2em; }
.lp-num { display: flex; align-items: center; gap: .5rem; max-width: 320px; }
.lp-match { border-collapse: separate; border-spacing: 0 .4rem; }
.lp-match td { padding-right: 1rem; }
.lp-order { list-style: decimal; padding-left: 1.6rem; display: grid; gap: .35rem; }
.lp-order li { display: list-item; padding: .55rem .7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.lp-order li > span:first-child { display: inline; }
.lp-order-btns { float: right; display: inline-flex; gap: .2rem; }
.lp-order-btns button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.lp-gap { display: inline-block; width: auto; min-width: 8ch; max-width: 22ch; padding: .15rem .45rem !important; margin: 0 .15rem; font: inherit; border: 0 !important; border-bottom: 2px solid var(--accent) !important; border-radius: 4px 4px 0 0 !important; background: var(--surface-2) !important; }
.lp-q-feedback, .lp-q-right, .lp-q-general, .lp-q-comment { margin-top: .8rem; padding: .7rem .9rem; font-size: .9rem; border-radius: 10px; }
.lp-q-feedback { background: var(--info-soft); }
.lp-q-right { background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.lp-q-general { background: var(--surface-2); }
.lp-q-comment { background: var(--warn-soft); }
.lp-q-grade { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.lp-q-grade input[type='number'] { width: 90px; }
.lp-q-grade input[name='comment'] { flex: 1; min-width: 180px; }
@media (max-width: 640px) { .lp-q { grid-template-columns: minmax(0, 1fr); } .lp-q-info { grid-template-columns: auto 1fr auto; align-items: center; } }

.lp-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.lp-slot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-slot-n { display: grid; place-items: center; width: 30px; height: 30px; font-weight: 700; color: #FFF; background: var(--t-quiz, #8A3FB8); border-radius: 8px; }
.lp-slot-main { flex: 1; min-width: 200px; display: grid; }
.lp-slot-main small { font-size: .8rem; color: var(--muted); }
.lp-slot-field { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); }
.lp-slot-field input { width: 70px; padding: .3rem .45rem; }
.lp-bankpick { display: grid; gap: .3rem; max-height: 50vh; overflow-y: auto; }
.lp-bankpick .lp-option { margin: 0; }
.lp-bankpick .lp-option > span { display: grid; }
.lp-bankpick small { font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------- Grades */

.lp-gradetable .lp-gcat td { background: var(--surface-2); }
.lp-gradetable .lp-gsub td { font-style: italic; color: var(--ink-2); }
.lp-gradetable .lp-gtotal td { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.lp-gitem { display: inline-flex; align-items: center; gap: .45rem; }
.lp-gitem .lp-ico { color: var(--muted); }
.lp-total-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.lp-total-card .lp-side-head { margin: 0; }
.lp-grader { max-height: 72vh; }
.lp-grader table { border-collapse: separate; border-spacing: 0; }
.lp-grader thead th { position: sticky; top: 0; z-index: 2; vertical-align: bottom; }
.lp-grader thead th small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; }
.lp-sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 200px; box-shadow: 1px 0 0 var(--line); }
.lp-grader thead .lp-sticky { z-index: 3; background: var(--surface-2); }
.lp-gcell { width: 84px; padding: .3rem .45rem !important; text-align: right; }
.lp-grader td.is-override { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.lp-grader td.is-changed { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.lp-savebar { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .8rem; padding: .6rem .9rem; color: #E9EEF6; background: var(--navy-800); border-radius: 12px; box-shadow: var(--shadow-2); }
.lp-savebar[hidden] { display: none; }
.lp-savebar span { flex: 1; }
.lp-savebar .btn-ghost { color: #E9EEF6; border-color: rgba(255, 255, 255, .25); }
.lp-perm td { text-align: center; }
.lp-perm td:first-child { text-align: left; }
.lp-perm td.is-override { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.lp-perm input { width: 18px; height: 18px; accent-color: var(--accent); }

.lp-comp th:not(.lp-sticky) { height: 170px; padding: .4rem; }
.lp-vert { display: inline-flex; align-items: center; gap: .3rem; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lp-comp td { text-align: center; padding: .4rem; }
.lp-comp-cell { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #FFF; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.lp-comp-cell.s1, .lp-comp-cell.s2 { background: var(--ok); border-color: var(--ok); }
.lp-comp-cell.s3 { background: var(--danger); border-color: var(--danger); }
.lp-comp-cell .lp-ico { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- People, reports, badges */

.lp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.lp-faces { display: flex; flex-wrap: wrap; gap: .25rem; }
.lp-spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-spark span { flex: 1; min-height: 3px; background: linear-gradient(to top, var(--gold-600), var(--gold-400)); border-radius: 3px 3px 0 0; }
.lp-spark span:hover { background: var(--navy-600); }
.lp-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.lp-badge-card { display: grid; justify-items: center; gap: .35rem; padding: 1.3rem 1.1rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-badge-card.is-mine { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 16%, transparent); }
.lp-badge-card.is-off { opacity: .6; }
.lp-badge-img { display: grid; place-items: center; width: 96px; height: 96px; color: var(--accent-ink); background: radial-gradient(circle at 30% 30%, var(--gold-400), var(--gold-600)); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--accent-soft); }
.lp-badge-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-badge-img .lp-ico { width: 46px; height: 46px; }
.lp-badge-card h3 { font-size: 1.05rem; margin-top: .4rem; }
.lp-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.lp-cat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem .6rem calc(.9rem + var(--depth) * 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-cat > span:first-child { display: flex; align-items: center; gap: .5rem; }

/* ---------------------------------------------------------------- Calendar */

.lp-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.2rem; align-items: start; }
@media (max-width: 1050px) { .lp-cal-wrap { grid-template-columns: minmax(0, 1fr); } }
.lp-cal { padding: 1rem; }
.lp-cal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.lp-cal-head h2 { flex: 1; text-align: center; font-size: var(--step-2); }
.lp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.lp-cal-dow { padding: .3rem; text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-cal-day { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 92px; padding: .35rem; font: inherit; text-align: left; background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; cursor: pointer; overflow: hidden; }
.lp-cal-day:hover { border-color: var(--line-strong); }
.lp-cal-day b { font-size: .84rem; }
.lp-cal-day.is-today b { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; }
.lp-cal-day.is-selected { border-color: var(--accent); background: var(--surface); }
.lp-cal-day.is-empty { background: none; cursor: default; }
.lp-cal-day small { font-size: .68rem; color: var(--muted); }
.lp-cal-ev { display: block; padding: 1px 5px; font-size: .7rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; border-left: 3px solid var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.k-site { --k: #8A3FB8; } .k-course { --k: #2F6FB3; } .k-group { --k: #2A8C82; } .k-user { --k: #6B7A91; } .k-due { --k: #B5462F; }
.lp-cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.lp-cal-legend i { display: inline-block; width: 10px; height: 10px; margin-right: .3rem; border-radius: 3px; background: var(--k); vertical-align: middle; }
.lp-cal-list { display: grid; gap: .5rem; }
.lp-cal-item { display: grid; gap: .1rem; padding: .6rem .7rem; border-left: 3px solid var(--k); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.lp-cal-item small { font-size: .78rem; color: var(--muted); }
.lp-cal-item a { color: var(--ink); }
@media (max-width: 640px) { .lp-cal-day { min-height: 54px; } .lp-cal-ev { font-size: 0; height: 6px; padding: 0; } }

/* ---------------------------------------------------------------- Messages */

.lp-msgs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1rem; height: calc(100vh - 64px - 3.2rem); min-height: 480px; }
.lp-msgs-list { padding: 1rem; overflow-y: auto; }
.lp-convs { display: grid; gap: .2rem; }
.lp-conv { display: flex; align-items: center; gap: .7rem; padding: .6rem; color: var(--ink); text-decoration: none; border-radius: 12px; }
.lp-conv:hover { background: var(--surface-2); }
.lp-conv.is-active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lp-conv > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.lp-conv small { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-conv.is-unread b { font-weight: 800; }
.lp-conv-time { flex: none; font-size: .72rem; color: var(--faint); }
.lp-msgs-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lp-msgs-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.lp-msgs-head a { color: var(--ink); text-decoration: none; }
.lp-msgs-back { display: none; }
.lp-msgs-thread { flex: 1; overflow-y: auto; padding: 1rem; display: grid; align-content: start; gap: .6rem; background: var(--bg); }
.lp-bubble { display: flex; align-items: flex-end; gap: .5rem; max-width: 78%; }
.lp-bubble > div { padding: .6rem .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.lp-bubble small { display: block; margin-top: .2rem; font-size: .7rem; color: var(--faint); }
.lp-bubble.is-mine { justify-self: end; }
.lp-bubble.is-mine > div { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.lp-bubble.is-mine small { color: color-mix(in srgb, var(--accent-ink) 65%, transparent); }
.lp-msgs-form { display: flex; gap: .6rem; padding: .8rem; border-top: 1px solid var(--line); }
.lp-msgs-form textarea { flex: 1; min-height: 0; resize: none; }
@media (max-width: 860px) {
  .lp-msgs { grid-template-columns: minmax(0, 1fr); height: auto; }
  .lp-msgs.has-conv .lp-msgs-list { display: none; }
  .lp-msgs:not(.has-conv) .lp-msgs-main { display: none; }
  .lp-msgs-back { display: inline-grid; }
  .lp-msgs-thread { min-height: 55vh; }
}

/* ---------------------------------------------------------------- Profile */

.lp-profile-head { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.lp-profile-head > div { flex: 1; min-width: 220px; }
.lp-avatar-edit { position: relative; display: inline-block; cursor: pointer; border-radius: 50%; }
.lp-avatar-edit > span:not(.lp-avatar) { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .2rem; font-size: .76rem; font-weight: 600; color: #FFF; background: rgba(7, 12, 21, .55); border-radius: 50%; opacity: 0; transition: opacity var(--t) var(--ease); }
.lp-avatar-edit:hover > span:not(.lp-avatar), .lp-avatar-edit:focus-within > span:not(.lp-avatar) { opacity: 1; }

/* ---------------------------------------------------------------- Certificate */

.lp-cert { margin-top: 1.4rem; padding: 14px; background: linear-gradient(135deg, var(--gold-600), var(--gold-400), var(--gold-600)); border-radius: 18px; }
.lp-cert-inner { display: grid; justify-items: center; gap: .4rem; padding: 3.4rem 2rem 2.4rem; text-align: center; color: #101A2B; background: #FFFDF7; border-radius: 10px; outline: 1px solid rgba(179, 127, 20, .4); outline-offset: -12px; }
.lp-cert-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #B37F14; }
.lp-cert h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3rem); color: #101A2B; }
.lp-cert-line { margin-top: .8rem; color: #63718A; font-style: italic; }
.lp-cert-name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: #16233A; border-bottom: 2px solid #E8B84B; padding: 0 1.5rem .3rem; }
.lp-cert-course { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: #16233A; }
.lp-cert-date { color: #33415A; }
.lp-cert-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; margin-top: 2rem; font-size: .76rem; color: #63718A; }

/* ---------------------------------------------------------------- Dark mode touches */

[data-theme='dark'] .lp-auth-wrap, [data-theme='dark'] .lp-side { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lp-side { background: var(--surface); } }

/* ---------------------------------------------------------------- Print */

@media print {
  .lp-top, .lp-side, .lp-noprint, .lp-impersonate, .lp-notice, .toast-stack, .lp-crumbs { display: none !important; }
  .lp-body { display: block; }
  body.lp { background: #FFF; }
  .lp-page { width: 100%; padding: 0; }
  .lp-cert { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-ccard, .lp-dialog[open], .lp-timer.is-low { animation: none; transition: none; } }

/* Fields the site's base styles miss: untyped text inputs and date-and-time pickers. */
.lp input:not([type]), .lp input[type='datetime-local'] {
  width: 100%; padding: .82rem 1rem; font-size: var(--step-0);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.lp input[type='datetime-local'] { appearance: none; }
/* Tighter fields inside rows and tables. */
.lp-arow input, .lp-arow select, .lp-band input, .lp-qrow input, .lp-qrow select, .lp-qrow textarea, .lp-chapter input,
.lp-slot-field input, .lp-table input:not([type='checkbox']), .lp-table select, .lp-filterbar select, .lp-q-grade input { padding: .5rem .7rem; font-size: .92rem; border-radius: 10px; }
.lp-filterbar select { width: auto; min-width: 150px; }

.lp-table .lp-gcell { width: 92px; text-align: right; }
.lp-avatar { flex: none; }

/* Action buttons inside table cells keep the cell a real table cell. */
td.lp-mod-actions { display: table-cell; white-space: nowrap; text-align: right; }
td.lp-mod-actions .lp-icon-btn { display: inline-grid; vertical-align: middle; }
.lp-side-courses .lp-side-empty a { display: inline !important; padding: 0 !important; }
.lp-section-head > .lp-filterbar { flex: 1 1 auto; }
.lp-filterbar .lp-search-inline { flex: 1 1 260px; max-width: 380px; }

/* ==========================================================================
   Registration details, people records, email, attendance, rubrics,
   at-risk students, bookmarks and "continue"
   ========================================================================== */

.lp-req { color: var(--danger); }
.lp-signup-group { margin: .4rem 0 0; padding: 1rem 1rem .4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.lp-signup-group legend { padding: 0 .4rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.lp-auth-card .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.lp-consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.lp-consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--gold-600); }
.lp-details > summary { display: flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 600; padding: .55rem 0; }

/* Facts lists (details on a profile or record) */
.lp-facts { display: grid; gap: .1rem; margin: 0; }
.lp-facts > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.lp-facts > div:last-child { border-bottom: 0; }
.lp-facts dt { font-size: .84rem; color: var(--muted); }
.lp-facts dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }

/* Users: filters, selection and bulk actions */
.lp-search-grow { flex: 1 1 320px; max-width: 520px; }
.lp-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.lp-filters select, .lp-filters input:not([type='checkbox']) { width: auto; min-width: 140px; max-width: 260px; padding: .45rem .7rem; font-size: .88rem; border-radius: 10px; }
label.chip { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
label.chip input { width: 15px; height: 15px; accent-color: var(--gold-600); }
.lp-bulkbar { position: sticky; top: 72px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; padding: .6rem .9rem; color: #E9EEF6; background: var(--navy-800); border-radius: 12px; box-shadow: var(--shadow-2); }
.lp-bulkbar[hidden] { display: none; }
.lp-bulkbar b { margin-right: auto; }
.lp-bulkbar .btn-ghost { color: #E9EEF6; border-color: rgba(255, 255, 255, .25); }
.lp-bulkbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.lp-bulkbar .lp-link-btn { color: var(--gold-400); }
.lp-bulkbar .lp-danger { color: #FFB4AB; }
.lp-table .lp-check { width: 38px; text-align: center; }
.lp-table .lp-check input { width: 17px; height: 17px; accent-color: var(--gold-600); cursor: pointer; }
.lp-table tr.is-picked td { background: color-mix(in srgb, var(--gold-400) 12%, transparent); }

/* One person's record */
.lp-record-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.4rem; }
.lp-record-id { flex: 1 1 280px; min-width: 0; }
.lp-record-id h1 { margin: 0; font-size: var(--step-3); }
.lp-record-id p { margin: .2rem 0 0; overflow-wrap: anywhere; }
.lp-record-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.lp-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 960px) { .lp-record-grid { grid-template-columns: minmax(0, 1fr); } }
.lp-progress-sm { height: 5px; width: 90px; display: inline-block; vertical-align: middle; margin-right: .4rem; }
.lp-progress-sm > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.lp-note-form { display: grid; gap: .5rem; }
.lp-note-form textarea { width: 100%; }
.lp-note-form .btn { justify-self: start; }
.lp-notes-list { display: grid; gap: .6rem; }
.lp-note { padding: .7rem .9rem; background: var(--warn-soft); border-left: 3px solid var(--gold-600); border-radius: 0 10px 10px 0; }
.lp-note p { margin: 0 0 .25rem; white-space: pre-wrap; }
.lp-note .lp-link-btn { margin-left: .6rem; }
.lp-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.lp-activity li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.lp-activity li small { flex: none; }

/* Email composer */
.lp-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 1.2rem; align-items: start; }
.lp-compose-main { display: grid; gap: 1rem; min-width: 0; }
.lp-compose-main .lp-fieldset { margin: 0; }
.lp-compose-main h2.lp-h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.lp-compose-side { position: sticky; top: 84px; }
@media (max-width: 1100px) { .lp-compose { grid-template-columns: minmax(0, 1fr); } .lp-compose-side { position: static; } }
.lp-reach { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; padding: .7rem .9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lp-reach-n { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-600); }
.lp-placeholders { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .4rem; }
.lp-placeholders .chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; padding: .22rem .55rem; cursor: pointer; }
.lp-field-switch { display: flex; align-items: flex-end; padding-bottom: .5rem; }
.lp-compose-actions { justify-content: flex-end; }
.lp-mail { overflow: hidden; background: #fff; color: #2D3748; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); }
.lp-mail-top { padding: .9rem 1.1rem; background: #16233A; color: #fff; }
.lp-mail-top b { display: block; font-family: var(--font-display); }
.lp-mail-top small { color: #D9A227; font-size: .76rem; }
.lp-mail-body { padding: 1.1rem; }
.lp-mail-body h3 { margin: 0 0 .7rem; color: #16233A; font-size: 1.1rem; }
.lp-mail-body .lp-rich { color: #2D3748; font-size: .9rem; }
.lp-mail-body .muted { color: #8A94A6; }
.lp-mail-body mark { background: #FFF1C9; color: #8A5A00; border-radius: 4px; padding: 0 .2rem; }
.lp-mail-btn { display: inline-block; margin-top: .9rem; padding: .55rem 1rem; color: #1A1204; background: #D9A227; border-radius: 9px; font-weight: 700; font-size: .84rem; }
.lp-campaign { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.lp-campaign:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.lp-campaign-text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.lp-campaign-text small { overflow-wrap: anywhere; }
.lp-campaign-stat { flex: 0 0 200px; display: grid; gap: .3rem; text-align: right; }
.lp-campaign-stat .lp-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
@media (max-width: 640px) { .lp-campaign { flex-wrap: wrap; } .lp-campaign-stat { flex-basis: 100%; text-align: left; } }

/* Attendance */
.lp-att { display: inline-flex; align-items: center; padding: .16rem .55rem; font-size: .76rem; font-weight: 600; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.lp-att.is-p { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.lp-att.is-l { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.lp-att.is-e { background: var(--info-soft); color: var(--info); border-color: transparent; }
.lp-att.is-a { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.lp-att-counts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .35rem; }
.lp-sessions { display: grid; gap: .6rem; }
.lp-session { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.lp-session.is-live { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.lp-session-date { flex: none; width: 56px; padding: .35rem 0; text-align: center; background: var(--surface-2); border-radius: 12px; }
.lp-session-date b { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.lp-session-date small { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--muted); }
.lp-session-text { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.lp-session-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .lp-session { flex-wrap: wrap; } .lp-session-actions { flex-basis: 100%; justify-content: flex-start; } }
.lp-att-me { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 1.3rem; }
.lp-att-ring { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); }
.lp-att-ring .lp-ico { width: 38px; height: 38px; }
.lp-reg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lp-reg-tools select { width: auto; }
.lp-reg-tools .lp-att-counts { margin: 0 0 0 auto; }
.lp-register { display: grid; gap: .45rem; }
.lp-reg-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(140px, 220px); align-items: center; gap: .8rem; padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-reg-buttons { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.lp-reg-btn { padding: .38rem .7rem; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.lp-reg-btn:hover { border-color: var(--line-strong); }
.lp-reg-btn.is-p.is-on { color: #fff; background: var(--ok); border-color: var(--ok); }
.lp-reg-btn.is-l.is-on { color: #fff; background: var(--warn); border-color: var(--warn); }
.lp-reg-btn.is-e.is-on { color: #fff; background: var(--info); border-color: var(--info); }
.lp-reg-btn.is-a.is-on { color: #fff; background: var(--danger); border-color: var(--danger); }
.lp-reg-remark { padding: .42rem .6rem !important; font-size: .86rem !important; }
@media (max-width: 760px) { .lp-reg-row { grid-template-columns: minmax(0, 1fr); gap: .45rem; } }
.lp-pw-card { display: grid; gap: .1rem; text-align: center; padding: .7rem 1.1rem; }
.lp-pw-card b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .06em; color: var(--gold-600); }
.lp-savebar-bottom { top: auto; bottom: 14px; margin-top: 1.2rem; }
.lp-savebar-bottom .btn-ghost { color: #E9EEF6; border-color: rgba(255, 255, 255, .25); }
.lp-att-table td { text-align: center; }
.lp-att-cell { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: .78rem; font-weight: 700; border-radius: 7px; }
.lp-att-cell.is-p { background: var(--ok-soft); color: var(--ok); }
.lp-att-cell.is-l { background: var(--warn-soft); color: var(--warn); }
.lp-att-cell.is-e { background: var(--info-soft); color: var(--info); }
.lp-att-cell.is-a { background: var(--danger-soft); color: var(--danger); }

/* Rubrics */
.lp-rubric-edit > [data-rubric] { padding: 1rem; background: var(--surface-2); border-radius: var(--r-md); }
.lp-rubric-edit > [data-rubric][hidden] { display: none; }
.lp-crit { padding: .8rem; }
.lp-crit [data-ctext] { font-weight: 600; }
.lp-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.lp-level { position: relative; display: grid; gap: .3rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lp-level [data-lpts] { width: 80px; padding: .3rem .5rem !important; font-weight: 700; }
.lp-level textarea { padding: .4rem .5rem; font-size: .84rem; min-height: 54px; }
.lp-level [data-rmlevel] { position: absolute; top: .3rem; right: .3rem; width: 26px; height: 26px; }
.lp-level-add { display: grid; place-items: center; gap: .2rem; min-height: 90px; font: inherit; font-size: .84rem; color: var(--muted); background: none; border: 1.5px dashed var(--line-strong); border-radius: 10px; cursor: pointer; }
.lp-level-add:hover { color: var(--ink); border-color: var(--gold-600); }
.lp-rubric { display: grid; gap: .5rem; }
.lp-rubric-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .6rem; align-items: stretch; }
.lp-rubric-crit { padding: .6rem .7rem; font-weight: 600; font-size: .9rem; background: var(--surface-2); border-radius: 10px; }
.lp-rubric-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.lp-rubric-level { position: relative; display: grid; align-content: start; gap: .15rem; padding: .55rem .65rem; font-size: .84rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.lp-rubric-level b { font-size: .8rem; color: var(--muted); }
label.lp-rubric-level { cursor: pointer; }
label.lp-rubric-level:hover { border-color: var(--line-strong); }
.lp-rubric-level input { position: absolute; opacity: 0; pointer-events: none; }
.lp-rubric-level.is-on { border-color: var(--gold-600); background: color-mix(in srgb, var(--gold-400) 16%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-400) 35%, transparent); }
.lp-rubric-level.is-on b { color: var(--gold-600); }
.lp-rubric-level:focus-within { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.lp-rubric-total { margin: .2rem 0 0; text-align: right; }
@media (max-width: 700px) { .lp-rubric-row { grid-template-columns: minmax(0, 1fr); } }

/* At-risk students */
.lp-risk { padding: 1.2rem 1.3rem; border-left: 4px solid var(--warn); }
.lp-risk h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.lp-risk h2 .lp-ico { color: var(--warn); }

/* Bookmark toggle in activity headers */
.lp-bookmark.is-on { color: var(--gold-600); }
.lp-bookmark.is-on .lp-ico { fill: currentColor; }

/* Dashboard: welcome note and "continue" */
.lp-welcome-note { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; padding: .9rem 1.1rem; background: color-mix(in srgb, var(--gold-400) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent); border-radius: var(--r-md); }
.lp-welcome-note p { margin: 0; }
.lp-welcome-note .lp-ico { flex: none; margin-top: .15rem; color: var(--gold-600); }
.lp-continue { margin-top: 1.6rem; }
.lp-continue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.lp-continue-card { position: relative; display: grid; gap: .35rem; padding: 1.2rem 1.15rem 1.2rem; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.lp-continue-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: hsl(var(--hue) 55% 48%); }
.lp-continue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.lp-continue-course { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-continue-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.lp-continue-card > b { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-size: 1.02rem; }
.lp-continue-card .lp-progress { margin-top: .3rem; }
.lp-continue-card .lp-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.lp-continue-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font-weight: 600; font-size: .88rem; color: var(--link); }

/* Hidden means hidden, whatever display a component sets. */
.lp [hidden], .lp-dialog [hidden] { display: none !important; }
/* Panel headings with an icon sit on one line. */
.lp-panel h2.lp-h3, .lp-panel h3.lp-h3 { display: flex; align-items: center; gap: .5rem; }
/* Many tabs: wrap on wide screens rather than hiding the last ones. */
@media (min-width: 1024px) { .lp-tabs { flex-wrap: wrap; overflow: visible; } }
.lp-grade-pane .lp-rubric-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.lp-grade-pane .lp-rubric-crit { padding: .45rem .6rem; }
@media (max-width: 600px) { .lp-savebar-bottom [data-state] { display: none; } .lp-savebar-bottom { justify-content: flex-end; } }

/* ==========================================================================
   Consistency pass
   ========================================================================== */

/* Empty states always span the whole grid they sit in. */
.lp-empty { grid-column: 1 / -1; }
/* Banners keep readable text: the button drops below instead of squeezing it. */
.lp-celebrate div { min-width: min(100%, 240px); }
/* Tab bars that scroll on small screens fade at the edge that has more. */
.lp-tabs.is-scrollable:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.lp-tabs.is-scrollable.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
/* Segmented filters scroll sideways on phones rather than wrapping into a lump. */
@media (max-width: 700px) { .lp-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .lp-seg::-webkit-scrollbar { display: none; } .lp-seg button { flex: none; white-space: nowrap; } }
/* Activity headers: the done/bookmark/settings group always sits under the title on phones. */
@media (max-width: 700px) { .lp-mod-head-side { flex-basis: 100%; } }
/* Toolbars: selects take the width of their text, not the whole row. */
.lp-section-head .row select, .lp-section-head > select { width: auto; min-width: 160px; max-width: 100%; padding: .45rem 2.2rem .45rem .8rem; font-size: .88rem; border-radius: 99px; }
/* Grader report: the course total stays in view while the items scroll. */
.lp-grader tr > :last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -8px 0 12px -10px rgba(0, 0, 0, .25); }
.lp-grader thead tr > :last-child { z-index: 3; background: var(--surface-2); }
.lp-grader tfoot tr > :last-child, .lp-grader tr.lp-avg > :last-child { background: var(--surface-2); }
/* Messages: the "choose a conversation" placeholder fills its panel. */
.lp-msgs-main > .lp-empty-soft, .lp-msgs > section > .lp-empty-soft { flex: 1; display: grid; place-items: center; height: 100%; margin: 0; border: 0; border-radius: inherit; }
/* Grade inputs line up their numbers. */
.lp-gcell, input[name="grade"], .lp-q-grade input[name="mark"] { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Research submissions
   ========================================================================== */

.rs-banner { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; color: inherit; text-decoration: none; background: color-mix(in srgb, var(--gold-400) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent); border-radius: var(--r-md); }
.rs-banner span { flex: 1; }
.rs-banner .lp-ico { color: var(--gold-600); }

.rs-list { display: grid; gap: .6rem; }
.rs-item { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.rs-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.rs-item-main { flex: 1; min-width: 0; display: grid; gap: .12rem; }
.rs-item-main b { font-family: var(--font-display); font-size: 1.02rem; overflow-wrap: anywhere; }
.rs-item-main small { font-size: .8rem; }
.rs-item-side { display: grid; justify-items: end; gap: .25rem; text-align: right; flex: none; }
.rs-item-side small { font-size: .78rem; }
@media (max-width: 600px) { .rs-item { flex-wrap: wrap; } .rs-item-side { justify-items: start; text-align: left; flex-basis: 100%; } }
.rs-empty { padding: 1.4rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

.rs-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.rs-type { display: grid; align-content: start; gap: .45rem; padding: 1.3rem; color: inherit; text-decoration: none; }
a.rs-type { transition: transform .15s, box-shadow .15s; }
a.rs-type:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.rs-type h3 { font-size: 1.08rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rs-type .btn { justify-self: start; margin-top: .3rem; }
.rs-type-ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--gold-600); background: color-mix(in srgb, var(--gold-400) 16%, var(--surface)); border-radius: 12px; }
.rs-type-ico .lp-ico { width: 22px; height: 22px; }
.rs-type-meta { color: var(--muted); }

.rs-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.rs-form { display: grid; gap: 1rem; min-width: 0; }
.rs-form .lp-fieldset { margin: 0; }
.rs-side { position: sticky; top: 84px; }
@media (max-width: 1000px) { .rs-edit { grid-template-columns: minmax(0, 1fr); } .rs-side { position: static; } }
.rs-req { padding: 1.3rem; }
.rs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rs-checks li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.rs-checks li .lp-ico { flex: none; margin-top: .15rem; color: var(--muted); }
.rs-checks li.is-ok { color: var(--ink); }
.rs-checks li.is-ok .lp-ico { color: var(--ok); }
.rs-checks small { color: var(--muted); }
.rs-count { font-variant-numeric: tabular-nums; }
.rs-co { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: .45rem; align-items: center; }
.rs-co input { padding: .5rem .7rem; font-size: .92rem; }
@media (max-width: 700px) { .rs-co { grid-template-columns: 1fr auto; } .rs-co input:not(:first-child) { grid-column: 1; } }
.btn-block { width: 100%; justify-content: center; }

.rs-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: s; }
.rs-step { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; font-size: .84rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.rs-step > span { display: grid; place-items: center; width: 22px; height: 22px; font-size: .74rem; font-weight: 700; background: var(--surface-2); border-radius: 50%; }
.rs-step > span .lp-ico { width: 13px; height: 13px; }
.rs-step.is-done { color: var(--ink); }
.rs-step.is-done > span { color: #fff; background: var(--ok); }
.rs-step.is-current { color: var(--ink); font-weight: 600; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rs-step.is-current > span { color: var(--accent-ink); background: var(--accent); }
.rs-step.is-accepted { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.rs-step.is-accepted > span { background: var(--ok); color: #fff; }
.rs-step.is-rejected > span { background: var(--danger); color: #fff; }
.rs-step.is-revisions > span { background: var(--warn); color: #fff; }

.rs-next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); }
.rs-next p { margin: 0; flex: 1 1 280px; }
.rs-next.is-accepted { border-left-color: var(--ok); }
.rs-next.is-rejected, .rs-next.is-withdrawn { border-left-color: var(--line-strong); }
.rs-next.is-revisions { border-left-color: var(--warn); }
.rs-decision { padding: 1.2rem 1.3rem; }
.rs-version > summary { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; cursor: pointer; }
.rs-version-body { display: grid; gap: .5rem; padding: 0 1.1rem 1.1rem; }
.rs-abstract { white-space: pre-wrap; line-height: 1.7; }
.rs-response { padding: .8rem .9rem; background: var(--surface-2); border-radius: 10px; }
.rs-response p { margin: .3rem 0 0; white-space: pre-wrap; }

.rs-reviews { display: grid; gap: .8rem; }
.rs-review { padding: 1.1rem 1.2rem; display: grid; gap: .5rem; }
.rs-review.is-pending { border-style: dashed; }
.rs-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .35rem .9rem; padding: .6rem .7rem; background: var(--surface-2); border-radius: 10px; font-size: .86rem; }
.rs-scores > div { display: flex; justify-content: space-between; gap: .6rem; }
.rs-scores b { font-variant-numeric: tabular-nums; }
.rs-scores small { color: var(--muted); font-weight: 400; }
.rs-comment { white-space: pre-wrap; line-height: 1.65; margin: 0; }
.rs-confidential { padding: .55rem .75rem; font-size: .86rem; background: var(--warn-soft); border-radius: 8px; white-space: pre-wrap; }
.rs-invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-left: 4px solid var(--warn); }
.rs-invite p { margin: 0; }

.rs-review-form { padding: 1.3rem; display: grid; gap: 1rem; }
.rs-scale { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.rs-scale label { position: relative; cursor: pointer; }
.rs-scale input { position: absolute; opacity: 0; }
.rs-scale span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .4rem; font-weight: 700; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.rs-scale label:hover span { border-color: var(--accent); }
.rs-scale label.is-on span, .rs-scale input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.rs-scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs-recs { display: grid; gap: .4rem; margin-top: .35rem; }
.rs-recs .choice { padding: .6rem .8rem; }
.rs-recs .choice.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

.rs-manage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .rs-manage { grid-template-columns: minmax(0, 1fr); } }
.rs-row { cursor: pointer; }
.rs-row:hover td, .rs-row:focus td { background: var(--surface-2); }
button.stat { font: inherit; text-align: left; color: inherit; cursor: pointer; }
button.stat:hover { border-color: var(--accent); }
.rs-cfg { padding: .9rem 1rem; background: var(--surface-2); border-radius: 12px; }
.rs-qrow { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr auto auto; gap: .45rem; align-items: center; }
.rs-qrow input, .rs-qrow select { padding: .5rem .65rem; font-size: .9rem; }
[data-crow].rs-qrow { grid-template-columns: 1.2fr 2fr auto auto; }
@media (max-width: 800px) { .rs-qrow, [data-crow].rs-qrow { grid-template-columns: minmax(0, 1fr); } }

/* Settings fieldsets: switches and notes get room to breathe. */
.lp-fieldset > .switch { margin-top: .9rem; }
.lp-fieldset > .switch + .switch { margin-top: .7rem; }
.lp-fieldset > .hint, .lp-form .hint { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-top: .8rem; }
.lp-fieldset .field .hint { margin-top: .35rem; }
/* Status badges in tables stay on one line. */
.lp-table .badge { white-space: nowrap; }
/* Touch screens can't hover: keep a small "Change" strip on the picture. */
@media (hover: none) {
  .lp-avatar-edit { overflow: hidden; }
  .lp-avatar-edit > span:not(.lp-avatar) { opacity: 1; inset: auto 0 0 0; padding: .3rem 0 .45rem; border-radius: 0; font-size: .68rem; }
  .lp-avatar-edit > span:not(.lp-avatar) .lp-ico { display: none; }
}
.lp-stats .stat.is-alert b { color: var(--warn); }
/* Jumping to the grading pane stops below the sticky top bar. */
.lp-grade-pane { scroll-margin-top: 80px; }


/* --------------------------------------------------------------------------
   Level Up
   -------------------------------------------------------------------------- */
.t-scheduler { --tc: #1F7A8C; }
.t-lesson { --tc: #7A5AF8; }
.t-wiki { --tc: #2F6FB3; }
.t-data { --tc: #4B6B3A; }
.t-workshop { --tc: #B0562B; }
.t-scorm { --tc: #A23E7C; }
.t-lti { --tc: #5F6B7A; }
.xp-badge { display: inline-grid; place-items: center; flex: none; color: #fff; font-family: var(--font-display); font-weight: 700; border-radius: 50%; background: linear-gradient(145deg, hsl(var(--lv) 60% 48%), hsl(calc(var(--lv) + 40) 65% 36%)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.xp-badge.is-sm { width: 30px; height: 30px; font-size: .85rem; }
.xp-badge.is-md { width: 44px; height: 44px; font-size: 1.1rem; }
.xp-badge.is-lg { width: 92px; height: 92px; font-size: 2.3rem; }
.xp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap-4); align-items: start; }
@media (max-width: 1000px) { .xp-layout { grid-template-columns: minmax(0, 1fr); } }
.xp-hero { display: flex; align-items: center; gap: 1.4rem; padding: 1.5rem; flex-wrap: wrap; }
.xp-hero-text { flex: 1 1 220px; min-width: 0; }
.xp-hero h2 { font-size: var(--step-2); }
.xp-total { text-align: right; }
.xp-total b { display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; }
.xp-total span { font-size: .8rem; color: var(--muted); }
.xp-track { display: block; height: 8px; margin-top: .5rem; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.xp-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.xp-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.xp-ladder li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 12px; }
.xp-ladder li.is-me { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.xp-rank { width: 1.6rem; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--muted); flex: none; }
.xp-anon { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); flex: none; }
.xp-who { flex: 1; min-width: 0; display: grid; }
.xp-who small { color: var(--muted); font-size: .8rem; }
.xp-who b small { font-weight: 400; }
.xp-bar { width: 110px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; flex: none; }
.xp-bar i { display: block; height: 100%; background: var(--accent); }
.xp-points { flex: none; min-width: 4rem; text-align: right; font-variant-numeric: tabular-nums; }
.xp-points small { font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .xp-bar { display: none; } }
.xp-levels, .xp-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.xp-levels li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; opacity: .55; }
.xp-levels li.is-done { opacity: .8; }
.xp-levels li.is-now { opacity: 1; font-weight: 600; }
.xp-levels li span:nth-child(2) { flex: 1; }
.xp-levels small { color: var(--muted); }
.xp-ways li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-size: .9rem; }
.xp-ways li span small { display: block; color: var(--muted); font-size: .78rem; }
.xp-ways b { color: var(--ok); }
.xp-ways b.is-minus { color: var(--danger); }
.xp-strip { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; margin-bottom: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-decoration: none; }
.xp-strip:hover { border-color: var(--line-strong); }
.xp-strip-text { display: grid; flex: none; }
.xp-strip-text small { font-size: .78rem; color: var(--muted); }
.xp-strip .xp-track { flex: 1; margin: 0; }
.xp-celebrate { text-align: center; padding: .5rem 0; }
.xp-celebrate h3 { margin-top: .7rem; font-size: var(--step-2); }
.lp-viewas { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .25rem .7rem; font: inherit; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; cursor: pointer; }
.lp-viewas:hover, .lp-viewas.is-on { background: var(--gold-500); color: #2A1D02; border-color: transparent; }

/* --------------------------------------------------------------------------
   Scheduler
   -------------------------------------------------------------------------- */
.sc-rules { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.sc-rules span { padding: .2rem .65rem; font-size: .82rem; color: var(--muted); background: var(--surface-2); border-radius: 99px; }
.sc-mine { display: grid; gap: .6rem; }
.sc-appt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-wrap: wrap; }
.sc-appt-when { display: grid; min-width: 150px; }
.sc-appt-when b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.sc-appt-when small { color: var(--muted); }
.sc-appt-main { flex: 1 1 200px; min-width: 0; }
.sc-note { margin-top: .3rem; padding: .4rem .7rem; font-size: .9rem; background: var(--surface-2); border-radius: 8px; }
.sc-day { margin-top: 1rem; }
.sc-day h3 { font-size: 1rem; margin-bottom: .45rem; }
.sc-times { display: flex; flex-wrap: wrap; gap: .45rem; }
.sc-time { display: grid; justify-items: center; min-width: 96px; padding: .5rem .8rem; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.sc-time:hover:not(:disabled) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.sc-time:disabled { opacity: .5; cursor: not-allowed; }
.sc-time small { font-size: .74rem; color: var(--muted); }
.sc-rows { display: grid; gap: .35rem; }
.sc-row { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .55rem .8rem; font: inherit; color: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sc-row:hover { border-color: var(--line-strong); }
.sc-row-time { display: grid; width: 62px; flex: none; }
.sc-row-time small { font-size: .74rem; color: var(--muted); }
.sc-row-main { flex: 1; min-width: 0; display: grid; }
.sc-row-main > span { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.sc-row-main small { font-size: .78rem; color: var(--muted); }
.sc-booking { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; }

/* --------------------------------------------------------------------------
   Mailbox
   -------------------------------------------------------------------------- */
.mb-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--gap-4); align-items: start; }
.mb-rail { position: sticky; top: 84px; display: grid; gap: .6rem; }
.mb-folders { display: grid; gap: .1rem; }
.mb-folders a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; color: inherit; text-decoration: none; border-radius: 10px; font-size: .94rem; }
.mb-folders a span { flex: 1; }
.mb-folders a b { font-size: .78rem; padding: .05rem .45rem; background: var(--surface-2); border-radius: 99px; }
.mb-folders a:hover { background: var(--surface-2); }
.mb-folders a.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
@media (max-width: 860px) {
  .mb-layout { grid-template-columns: minmax(0, 1fr); }
  .mb-rail { position: static; }
  .mb-folders { display: flex; overflow-x: auto; scrollbar-width: none; }
  .mb-folders a { flex: none; }
  .mb-rail .lp-side-head { display: none; }
}
.mb-tools { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.mb-tools .lp-search { flex: 1 1 240px; }
.mb-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mb-list .lp-empty-soft { border: 0; }
.mb-item { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; color: inherit; text-decoration: none; }
.mb-item + .mb-item { border-top: 1px solid var(--line); }
a.mb-item:hover { background: var(--surface-2); }
.mb-item.is-unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mb-item.is-unread .mb-subject, .mb-item.is-unread b { font-weight: 700; }
.mb-item-main { flex: 1; min-width: 0; display: grid; color: inherit; text-decoration: none; }
.mb-item-top { display: flex; justify-content: space-between; gap: .6rem; }
.mb-item-top small { flex: none; font-size: .78rem; color: var(--muted); }
.mb-item-main > small, .mb-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-subject { font-size: .94rem; }
.mb-star { flex: none; padding: .2rem; color: var(--line-strong); background: none; border: 0; cursor: pointer; }
.mb-star.is-on { color: var(--accent); }
.mb-star.is-on svg { fill: currentColor; }
.mb-thread { display: grid; gap: .6rem; }
.mb-msg { padding: 1rem 1.2rem; }
.mb-msg header { display: flex; align-items: center; gap: .6rem; }
.mb-msg header div { display: grid; }
.mb-msg header small { font-size: .8rem; color: var(--muted); }
.mb-reply { padding: 1rem 1.2rem; }
.mb-scope { display: grid; gap: .15rem; }
.mb-scope select { width: auto; min-width: 240px; padding: .45rem 2.2rem .45rem .8rem; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Lesson, wiki, workshop, SCORM, Moodle import, roles
   -------------------------------------------------------------------------- */
.xl-page { padding: 1.4rem 1.6rem; }
.xl-rows { display: grid; gap: .4rem; }
.xl-row { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 1.2fr) minmax(0, 1.5fr) auto; gap: .4rem; align-items: center; }
.xl-row input, .xl-row select { padding: .45rem .6rem; font-size: .9rem; }
[data-kind='content'] .xl-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; }
@media (max-width: 720px) { .xl-row, [data-kind='content'] .xl-row { grid-template-columns: minmax(0, 1fr); } }
.xw-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--gap-4); align-items: start; }
.xw-side { display: grid; gap: .1rem; }
.xw-side a { padding: .4rem .6rem; color: inherit; text-decoration: none; border-radius: 8px; font-size: .92rem; }
.xw-side a:hover { background: var(--surface-2); }
.xw-side a.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
@media (max-width: 760px) { .xw-layout { grid-template-columns: minmax(0, 1fr); } }
.xs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.xs-steps li { display: flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; font-size: .88rem; color: var(--muted); background: var(--surface-2); border-radius: 99px; }
.xs-steps li span { display: grid; place-items: center; width: 22px; height: 22px; font-size: .75rem; font-weight: 700; background: var(--surface); border-radius: 50%; }
.xs-steps li.is-now { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.xs-steps li.is-done { color: var(--ok); }
.xs-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.xm-drop { display: grid; justify-items: center; gap: .4rem; padding: 3rem 1rem; text-align: center; cursor: pointer; }
.xm-drop input { position: absolute; opacity: 0; pointer-events: none; }
.xm-drop .lp-ico { width: 30px; height: 30px; color: var(--muted); }
.xm-section + .xm-section { margin-top: 1rem; }
.xm-item { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; }
.xm-item.is-off { opacity: .55; cursor: default; }
.xm-item > span:last-child { display: grid; }
.xm-item small { font-size: .78rem; color: var(--muted); }
.xr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .7rem; align-items: start; }
.xr-can { margin: 0; padding-left: 1.1rem; font-size: .86rem; display: grid; gap: .2rem; }


/* --------------------------------------------------------------------------
   Required fields: one look on every form
   -------------------------------------------------------------------------- */
.field:has(> input:required, > select:required, > textarea:required) > label:not(:has(.req))::after,
.req { color: var(--danger); font-weight: 700; }
.field:has(> input:required, > select:required, > textarea:required) > label:not(:has(.req))::after { content: ' *'; }
form.lp-form:has(input:required, select:required, textarea:required)::before { content: 'Fields marked * are required.'; display: block; margin-bottom: .75rem; font-size: .88rem; color: var(--muted); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field .lp-field-error { margin-top: .3rem; font-size: .84rem; font-weight: 600; color: var(--danger); }

.t-h5p { --tc: #1E7E5E; }

.mb-rail .btn { width: 100%; height: auto; white-space: normal; text-align: center; justify-content: center; }

/* Marking guides */
.lp-rubric-edit > [data-guide] { padding: 1rem; background: var(--surface-2); border-radius: var(--r-md); }
.lp-rubric-edit > [data-guide][hidden] { display: none; }
[data-gedit] textarea { width: 100%; }
.lp-guide td:last-child, .lp-guide th:last-child { width: 90px; text-align: right; white-space: nowrap; }
.lp-guide tfoot td { font-weight: 600; border-top: 2px solid var(--line-strong); }
.lp-guide-mark { display: grid; gap: .6rem; }
.lp-guide-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, 1.6fr); gap: .6rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-guide-score { display: flex; align-items: center; gap: .35rem; }
.lp-guide-score input { width: 70px; }
.lp-guide-score span { font-size: .86rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .lp-guide-row { grid-template-columns: minmax(0, 1fr); } }

/* MUPSN events in the portal */
.k-mupsn { --k: #C7921B; }
.lp-mupsn-lead { display: grid; gap: .15rem; padding: .85rem 1rem; color: inherit; text-decoration: none; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold-500, #D4A21C) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-500, #D4A21C) 40%, transparent); }
.lp-mupsn-lead:hover { border-color: var(--gold-500, #D4A21C); }
.lp-mupsn-lead b { font-family: var(--font-display); font-size: 1.05rem; }
.lp-mupsn-lead small { color: var(--muted); }
.lp-mupsn-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600, #9C7414); }

/* Accounts waiting for approval */
.lp-approvals { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--warn, #B7791F) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn, #B7791F) 40%, transparent); }
.lp-approvals > div { display: flex; align-items: center; gap: .6rem; }
.lp-approvals[hidden] { display: none; }
.lp-pending { text-align: center; }
.lp-pending-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: .6rem; color: var(--accent-ink, #2A1D02); background: var(--accent, #D4A21C); }
.lp-pending-icon .lp-ico { width: 30px; height: 30px; }
