/* notes.css - Notes (admin only for now): a ruled page, a tutor's verdict beside it, and a small bar of tools. See notes.js. */
.nt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.nt-head h1 { margin: 0 auto 0 0; }
.nt-head select { width: auto; margin: 0; padding: 8px 12px; font-weight: 700; }
.nt-new { padding: 8px 14px; font-weight: 800; }
.nt-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; padding-bottom: 96px; }
.nt-paper { background: #fff; border: 2px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--rule); overflow: hidden; text-align: center; }
.nt-cv { display: block; width: 100%; touch-action: pan-y; cursor: crosshair;
  background-image: repeating-linear-gradient(transparent 0 33px, #e3e7ee 33px 34px); -webkit-user-select: none; user-select: none; }
.nt-more { margin: 12px auto 14px; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.nt-coach { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 170px); }
.nt-say { background: var(--paper); border: 2px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--rule); padding: 14px 16px; }
.nt-say b { display: block; font-size: 1.15rem; font-weight: 900; }
.nt-say .nt-text { margin-top: 6px; font-weight: 600; line-height: 1.5; }
.nt-say .nt-text p { margin: 0 0 6px; }
.nt-say.ok { border-color: var(--good); box-shadow: 0 3px 0 var(--good-dark); } .nt-say.ok b { color: var(--good); }
.nt-say.off { border-color: var(--mid); box-shadow: 0 3px 0 var(--warn); } .nt-say.off b { color: var(--warn); }
.nt-say.err b { color: var(--bad); }
.nt-say.busy { display: flex; align-items: center; gap: 10px; } .nt-say.busy b { color: var(--muted); }
.nt-dots { display: inline-flex; gap: 4px; } .nt-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: nt-dot 1s infinite ease-in-out; }
.nt-dots i:nth-child(2) { animation-delay: .15s; } .nt-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nt-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nt-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 6px; height: 58px; padding: 0 8px;
  border-radius: 20px; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(30, 34, 44, .12); box-shadow: 0 14px 34px rgba(20, 24, 34, .16), 0 2px 6px rgba(20, 24, 34, .08); max-width: calc(100vw - 12px); }
.nt-bar button { box-shadow: none; border: 0; background: none; min-width: 0; height: 40px; padding: 0 10px; border-radius: 12px; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; font-weight: 800; transition: transform .12s ease-out, background-color .15s; }
.nt-bar button:active:not(:disabled) { transform: scale(.92); box-shadow: none; }
.nt-bar button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nt-pen i { width: 18px; height: 18px; border-radius: 50%; background: #1f2329; flex: none; }
.nt-pen.q i { background: #e5484d; }
.nt-pen.on { background: color-mix(in srgb, var(--ink) 9%, transparent) !important; }
.nt-pen.q.on { background: var(--bad-soft) !important; color: var(--bad-dark); }
.nt-ic { width: 40px; justify-content: center; color: var(--muted) !important; }
.nt-ic.on { background: color-mix(in srgb, var(--ink) 9%, transparent) !important; color: var(--ink) !important; }
.nt-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-tog { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: .86rem; font-weight: 800; color: var(--muted); white-space: nowrap; cursor: pointer; }
.nt-tog input { width: 16px; height: 16px; margin: 0; display: inline-block; accent-color: var(--biro); }
.nt-bar .nt-check { background: var(--biro); color: #fff; padding: 0 18px; border-radius: 14px; }
.nt-bar .nt-check:hover { background: var(--biro); filter: brightness(1.08); }
@media (max-width: 860px) {
  .nt-body { grid-template-columns: 1fr; padding-bottom: 150px; }
  .nt-coach { position: fixed; left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); top: auto; z-index: 890; }
  .nt-coach { max-height: 46vh; gap: 6px; } .nt-thread { max-height: 22vh; }
  .nt-say { padding: 10px 14px; box-shadow: 0 8px 24px var(--shadow); max-height: 22vh; overflow: auto; }
  .nt-pen span { display: none; } .nt-tog span { font-size: .78rem; }
}
.nt-fix { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: baseline; }
.nt-fix dt { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nt-fix dd { margin: 0; font-weight: 700; line-height: 1.4; } .nt-fix dd p { margin: 0; }
.nt-thread { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; padding: 2px; }
.nt-thread[hidden] { display: none; }
.nt-msg { max-width: 92%; padding: 8px 12px; border-radius: 14px; font-weight: 600; line-height: 1.45; background: var(--paper); border: 2px solid var(--rule); align-self: flex-start; overflow-wrap: anywhere; }
.nt-msg p { margin: 0 0 6px; } .nt-msg p:last-child { margin: 0; }
.nt-msg.me { align-self: flex-end; background: var(--biro); border-color: var(--biro); color: #fff; }
.nt-msg.err { color: var(--bad); }
.nt-ask { display: flex; gap: 6px; margin: 0; }
.nt-ask input { flex: 1; min-width: 0; margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--paper); }
.nt-ask button { flex: none; width: 40px; height: 40px; min-width: 0; padding: 0; border-radius: 50%; background: var(--biro); border: 0; box-shadow: none; display: grid; place-items: center; }
.nt-ask button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
