/* The review layer has its own look (charcoal and magenta) so it never reads as part of the course under it. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; background: #17171C; color: #F4F4F6; }
body.left { flex-direction: row-reverse; }
button, input, select { font: inherit; } button { cursor: pointer; }
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 6px 12px; background: #24242C; border-bottom: 3px solid #E5007D; }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.who b { font-size: 1.05rem; color: #FF7CC4; letter-spacing: .03em; text-transform: uppercase; }
.who .as { color: #C9C9D4; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.grp { display: inline-flex; gap: 6px; }
#where { color: #C9C9D4; font-size: .85rem; max-width: 30vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 52px; min-width: 56px; justify-content: center; padding: 0 12px; border-radius: 14px; border: 2px solid #8A8A99; background: #2E2E38; color: #F4F4F6; }
.tool svg, .how svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { border-color: #FF7CC4; }
.tool[aria-pressed="true"] { background: #E5007D; border-color: #E5007D; color: #fff; }
.tool::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: max-content; max-width: 18rem; padding: 6px 10px; border-radius: 8px; background: #F4F4F6; color: #17171C; font-size: .85rem; font-weight: 700; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .12s; }
.tool:hover::after, .tool:focus-visible::after { opacity: 1; }
#count { padding: 0 8px; border-radius: 999px; background: #F4F4F6; color: #24242C; }
#drawbar button, #card button, .phead button, #composer button, .intro button, .admin button, .admin a.btn { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 2px solid #8A8A99; background: #2E2E38; color: #F4F4F6; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
#drawbar button:hover, #card button:hover, .phead button:hover, #composer button:hover, .admin button:hover { border-color: #FF7CC4; }
button.go, .admin button.go, .intro button.go { background: #E5007D; border-color: #E5007D; color: #fff; }
:focus-visible { outline: 3px solid #FFD23F; outline-offset: 2px; }
#stage { position: relative; flex: 1; min-height: 0; }
body.dragging #stage, body.dragging #pane { pointer-events: none; user-select: none; }
#course { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
#show, #pins, #layer { position: absolute; inset: 0; }
#show { width: 100%; height: 100%; pointer-events: none; }
#pins { pointer-events: none; }
.pin { position: absolute; pointer-events: auto; min-width: 30px; height: 30px; border-radius: 15px 15px 15px 4px; border: 2px solid #fff; background: #E5007D; color: #fff; font-weight: 800; font-size: 13px; padding: 0 5px; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.pin.done { background: #4A7A5C; } .pin.on { outline: 3px solid #FFD23F; }
#layer { cursor: crosshair; touch-action: none; } #layer.pick { background: rgba(23, 23, 28, .12); } #layer.hold { pointer-events: none; }
#ink { position: absolute; inset: 0; width: 100%; height: 100%; }
#hl { position: absolute; display: none; border: 3px solid #E5007D; background: rgba(229, 0, 125, .14); border-radius: 6px; pointer-events: none; z-index: 2; }
#drawbar, #hint { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #24242C; border: 2px solid #E5007D; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); z-index: 5; }
#drawbar { top: 10px; } #hint { bottom: 14px; font-weight: 700; }
[hidden] { display: none !important; }
#card { position: absolute; z-index: 6; display: grid; gap: 8px; width: 360px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; padding: 12px; border-radius: 14px; background: #24242C; border: 2px solid #E5007D; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .chead span { color: #C9C9D4; font-size: .85rem; flex: 1; }
#card p { margin: 0; overflow-wrap: anywhere; } #card .on { color: #C9C9D4; font-size: .85rem; } #card .reply { padding: 8px; border-radius: 8px; background: #33333F; }
.rich { overflow-wrap: anywhere; } .rich p, .rich h3, .rich h4, .rich ul, .rich ol, .rich blockquote { margin: 0 0 .4em; } .rich ul, .rich ol { padding-left: 1.3em; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 4px 0; } .rich a { color: #FF9CD2; } .rich code { background: #33333F; padding: 1px 5px; border-radius: 5px; }
.rich table { border-collapse: collapse; } .rich td, .rich th { border: 1px solid #5A5A68; padding: 2px 6px; }
/* the notes pane: beside the course, resizable, and movable to the other side */
#pane { position: relative; flex: none; width: var(--pw, 26rem); max-width: 60vw; display: flex; flex-direction: column; background: #24242C; border-left: 3px solid #E5007D; overflow: auto; }
body.left #pane { border-left: 0; border-right: 3px solid #E5007D; }
#grip { position: absolute; top: 0; bottom: 0; left: -3px; width: 10px; cursor: ew-resize; z-index: 3; } body.left #grip { left: auto; right: -3px; }
#grip:hover, body.dragging #grip { background: rgba(255, 124, 196, .5); }
.phead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 1.15rem; } .phead span { display: inline-flex; gap: 6px; }
#composer { display: grid; gap: 8px; margin: 0 10px 12px; padding: 10px; border-radius: 12px; border: 2px solid #E5007D; background: #2E2E38; }
#cLabel { font-weight: 700; overflow-wrap: anywhere; }
.ctools { display: flex; flex-wrap: wrap; gap: 4px; } #composer .ctools button { min-height: 30px; padding: 2px 10px; border-radius: 8px; font-weight: 400; }
#ed { min-height: 9rem; max-height: 60vh; overflow: auto; resize: vertical; padding: 8px 10px; border-radius: 8px; border: 2px solid #8A8A99; background: #fff; color: #17171C; }
#ed:empty::before { content: attr(data-ph); color: #6B6B78; } #ed img { max-width: 100%; height: auto; } #ed a { color: #00648F; }
#cMsg { color: #FFD23F; }
.pfilters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 0 10px 10px; } .pfilters input { grid-column: 1 / -1; }
.pfilters input, .pfilters select { min-height: 34px; min-width: 0; padding: 2px 8px; border-radius: 8px; border: 2px solid #8A8A99; background: #fff; color: #17171C; }
#items { padding: 0 10px 14px; display: grid; gap: 6px; align-content: start; }
#items h3 { margin: 8px 0 0; font-size: .95rem; color: #FF9CD2; } #items h3 small { color: #C9C9D4; font-weight: 400; }
.li { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 2px solid #44444F; background: #2E2E38; color: #F4F4F6; }
.li:hover { border-color: #FF7CC4; } .li.done { opacity: .7; }
.li .n { flex: none; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px; background: #E5007D; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.li.done .n { background: #4A7A5C; }
.li .t { display: grid; gap: 2px; min-width: 0; } .li .rich { max-height: 9em; overflow: hidden; } .li small, .empty { color: #C9C9D4; }
/* the notice before a review starts */
dialog { border: 0; padding: 0; border-radius: 16px; background: #24242C; color: #F4F4F6; max-width: min(70rem, 94vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(10, 10, 14, .75); }
.intro { padding: 1.6rem 1.8rem; display: grid; gap: 1rem; border-top: 5px solid #E5007D; }
.intro h2 { margin: 0; font-size: 1.6rem; color: #FF7CC4; } .intro h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.intro .cols { display: grid; gap: 1.2rem 2rem; } @media (min-width: 820px) { .intro .cols { grid-template-columns: 1fr 1fr; } }
.intro ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; } .intro .how { list-style: none; padding: 0; } .intro .how li { display: flex; gap: 12px; align-items: flex-start; } .intro .how svg { color: #FF7CC4; }
.intro p { margin: .8rem 0 0; color: #C9C9D4; } .intro label { color: #C9C9D4; }
/* Jonathan's page */
.admin { display: block; overflow: auto; }
#admin { max-width: 84rem; margin: 0 auto; padding: 16px; display: grid; gap: 22px; }
#admin h2 { margin: 0 0 8px; font-size: 1.3rem; color: #FF7CC4; } #admin h3 { margin: 0; font-size: 1.05rem; }
.cardbox { padding: 14px; border-radius: 14px; background: #24242C; border: 1px solid #44444F; display: grid; gap: 10px; overflow-x: auto; }
.admin input, .admin select { min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 2px solid #8A8A99; background: #fff; color: #17171C; }
.admin table { width: 100%; border-collapse: collapse; } .admin th, .admin td { text-align: left; vertical-align: top; padding: 8px; border-top: 1px solid #44444F; } .admin th { color: #C9C9D4; font-size: .85rem; }
.admin td.b { max-width: 36rem; } .admin code { background: #33333F; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; } .admin tr.g td { background: #2E2E38; font-weight: 700; color: #FF9CD2; }
.admin a { color: #FF9CD2; } .tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #E5007D; font-size: .8rem; font-weight: 700; } .tag.done { background: #4A7A5C; }
.admin small { color: #C9C9D4; }
@media (max-width: 720px) { #where { display: none; } .tool { height: 46px; min-width: 46px; padding: 0 8px; } body { flex-direction: column; } #pane { width: 100%; max-width: none; max-height: 55vh; border-left: 0; border-top: 3px solid #E5007D; } #grip { display: none; } }
