* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f3f6fb; }
body { margin: 0; min-height: 100vh; background: #f3f6fb; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { border: 0; border-radius: .55rem; background: #4f46e5; color: white; cursor: pointer; font-weight: 650; padding: .7rem 1rem; }
button:hover { background: #4338ca; }
button:focus-visible, input:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
button.secondary { background: #e9edf7; color: #28354e; }
button.secondary:hover { background: #dce3f1; }
button.danger { color: #a32132; }
input { width: 100%; min-width: 0; margin-top: .35rem; border: 1px solid #c8d0df; border-radius: .5rem; background: #fff; padding: .65rem .75rem; }
label { display: block; color: #526079; font-size: .9rem; font-weight: 600; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.card { background: #fff; border: 1px solid #e1e6ef; border-radius: .9rem; box-shadow: 0 5px 18px #1d2b4510; padding: 1.25rem; }
.auth-card { width: min(100%, 27rem); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .3rem; font-size: 1.55rem; }
h2 { margin-bottom: .25rem; font-size: 1.15rem; }
h3 { margin-bottom: .4rem; overflow-wrap: anywhere; }
p { color: #63708a; line-height: 1.5; }
#login-form { display: grid; gap: .75rem; }
#login-form button { margin-top: .3rem; }
.notice { margin: .9rem 0 0; border-left: 3px solid #f4b942; background: #fff9e8; padding: .7rem; font-size: .88rem; overflow-wrap: anywhere; }
.notice code { color: #28354e; }
.page { width: min(100% - 2rem, 78rem); margin: 0 auto; padding: 1.25rem 0 3rem; }
.topbar, .section-heading, .account-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar { margin-bottom: 1.25rem; border-bottom: 1px solid #dce3ee; padding: .25rem 0 1rem; }
.topbar p, .section-heading p { margin-bottom: 0; font-size: .9rem; }
.account-bar { justify-content: flex-end; flex-wrap: wrap; color: #53617b; }
.page > .card { margin-bottom: 1rem; }
.section-heading { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0; }
.form-grid.compact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.form-actions { display: flex; gap: .5rem; align-items: end; }
.message { min-height: 1.2rem; margin: .2rem 0 0; font-size: .9rem; }
.message[data-kind="error"] { color: #b42332; }
.session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.session-card { min-width: 0; border: 1px solid #e3e8f0; border-radius: .75rem; padding: .9rem; overflow-wrap: anywhere; }
.session-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.session-heading h3 { max-width: 70%; }
.status-badge { flex: none; border-radius: 999px; background: #eef2ff; color: #4338ca; padding: .25rem .5rem; font-size: .75rem; font-weight: 700; }
.muted { margin-bottom: .35rem; color: #69768d; font-size: .85rem; }
.qr-image { display: block; width: 10rem; height: 10rem; margin: .7rem auto; border: 1px solid #e3e8f0; border-radius: .5rem; }
.empty-state { padding: .8rem; text-align: center; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
th, td { border-bottom: 1px solid #e8ecf2; padding: .65rem .5rem; vertical-align: top; overflow-wrap: anywhere; }
th { color: #69768d; font-size: .78rem; }
td button { padding: .4rem .65rem; }
@media (max-width: 680px) {
  .page { width: min(100% - 1rem, 78rem); padding-top: .75rem; }
  .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .account-bar { width: 100%; justify-content: space-between; }
  .form-grid, .form-grid.compact { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; }
}
