:root { color-scheme: dark; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0e14; color: #e6e9ef; min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: 48px;
}
.hidden { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw; border-bottom: 1px solid #141b26; position: sticky; top: 0;
  background: rgba(10,14,20,.92); backdrop-filter: blur(8px); z-index: 5; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand span, h1 span, h2 span { color: #7fd1b9; }
.streak { font-size: 15px; color: #ffb454; }

.view { max-width: 1080px; margin: 0 auto; padding: 28px 6vw; }
.hero { text-align: center; margin: 26px 0 30px; }
.badge { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #7fd1b9; border: 1px solid #1f3d36; border-radius: 999px; padding: 5px 13px; margin-bottom: 20px; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 6px; }
.sub { color: #9aa3b2; margin-top: 12px; font-size: 16px; line-height: 1.6; }

.card { background: #0f1520; border: 1px solid #1a2332; border-radius: 14px;
  padding: 18px; margin: 0 auto 14px; max-width: 560px; }
#view-dash .card { max-width: none; }
.k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7fd1b9; margin-bottom: 10px; }
.dim { color: #9aa3b2; line-height: 1.55; }

label { display: block; font-size: 14px; color: #9aa3b2; margin-bottom: 14px; }
input, select { width: 100%; margin-top: 6px; background: #0a0e14; color: #e6e9ef;
  border: 1px solid #223046; border-radius: 9px; padding: 11px 12px; font-size: 15px; }
input[type="range"] { padding: 0; accent-color: #7fd1b9; }

button { cursor: pointer; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; }
.primary { background: #7fd1b9; color: #06231b; padding: 12px 20px; width: 100%; }
.primary:disabled { opacity: .6; }
.ghost { background: transparent; color: #9aa3b2; border: 1px solid #223046; padding: 10px 16px; }
.warn { background: #2a1c10; color: #ffb454; border: 1px solid #4a3521; padding: 11px 16px; width: 100%; margin-top: 10px; }
.row-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.north p { font-size: 17px; line-height: 1.5; }
.pill { font-size: 11px; border: 1px solid #223046; border-radius: 999px; padding: 3px 9px;
  color: #9aa3b2; text-transform: none; letter-spacing: 0; }
.pill.active { color: #7fd1b9; border-color: #1f3d36; }
.pill.passed { color: #6ea8fe; border-color: #1d2f52; }
.pill.locked { opacity: .6; }

.tasks { list-style: none; }
.tasks li { padding: 10px 4px; border-bottom: 1px solid #141b26; }
.tasks li:last-child { border-bottom: none; }
.tasks label { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: #e6e9ef; font-size: 15px; }
.tasks input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: #7fd1b9; }
.tasks .meta { display: block; margin: 4px 0 0 28px; }
.tasks li.done span { text-decoration: line-through; color: #5c6675; }
.meta { font-size: 12.5px; color: #5c6675; }

.miles { list-style: none; }
.miles li { padding: 12px 4px; border-bottom: 1px solid #141b26; }
.miles li:last-child { border-bottom: none; }
.miles li.locked { opacity: .55; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.gatehint { margin-top: 3px; }

.gate { border-color: #1f3d36; background: #0c1a16; }
.gate p { margin-bottom: 12px; }

.chat { display: flex; flex-direction: column; height: 72vh; position: sticky; top: 84px; }
.chatlog { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 13px; font-size: 14.5px; line-height: 1.45; }
.msg.mentor { background: #13202e; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.student { background: #16352c; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg em { display: block; font-size: 10.5px; color: #5c6675; font-style: normal; margin-top: 3px; }
.chatrow { display: flex; gap: 8px; margin-top: 10px; }
.chatrow input { margin: 0; }
.chatrow button { width: auto; padding: 0 18px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.cmp { background: #0f1520; border: 1px solid #1a2332; border-radius: 14px; padding: 18px; }
.cmp.intense { border-color: #1f3d36; }
.cmp .weeks { font-size: 40px; font-weight: 800; margin: 6px 0 12px; }
.cmp.light .weeks { color: #ffb454; }
.cmp.intense .weeks { color: #7fd1b9; }
.cmp ol { list-style: none; }
.cmp li { padding: 7px 0; border-bottom: 1px solid #141b26; font-size: 14.5px; color: #9aa3b2; }
.cmp li b { color: #e6e9ef; margin-right: 8px; }

.modal { position: fixed; inset: 0; background: rgba(5,8,12,.72); display: grid;
  place-items: center; z-index: 20; padding: 6vw; }
.modal-box { background: #0f1520; border: 1px solid #223046; border-radius: 16px;
  padding: 26px; max-width: 520px; width: 100%; }
.modal-box h3 { margin-bottom: 10px; }
.modal-box .primary { margin-top: 16px; }
.big { font-size: 17px; line-height: 1.55; }
.loading { color: #9aa3b2; text-align: center; padding: 30px 10px; }
