body { background: var(--bg-soft); min-height: 100vh; }
.pbar { background: #fff; border-bottom: 1px solid var(--line); }
.pbar .nav { height: 64px; }
.pbar .right { display: flex; gap: 16px; align-items: center; font-size: .92rem; color: var(--muted); }
.pwrap { width: min(980px, 100% - 32px); margin: 36px auto 80px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.box h1, .box h2 { margin: 0 0 6px; color: var(--navy); }
.box h1 { font-size: 1.6rem; }
.box h2 { font-size: 1.2rem; }
.box .sub { color: var(--muted); margin: 0 0 18px; }
.narrow { max-width: 440px; margin-inline: auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 8px; }
.btn-ghost { background: #fff; color: var(--navy); border-color: #cfd8e3; }
.btn-danger { background: #fff; color: #b42318; border-color: #f1b8b3; }
.err { color: #b42318; font-weight: 600; min-height: 1.2em; }
.ok { color: #1a7f43; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 18px 0; }
.notice { background: #fff4de; border: 1px solid #f3d9a4; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.notice code { background: #fff; padding: 2px 8px; border-radius: 6px; font-size: 1rem; user-select: all; }
.hidden { display: none !important; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { min-width: 240px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } th:nth-child(n+4), td:nth-child(n+4) { display: none; } }
.sigpad { width: 100%; height: 160px; background: #fff; border: 2px dashed #9fb0c7; border-radius: 10px; display: block; cursor: crosshair; }
.pdfframe { width: 100%; height: 70vh; min-height: 480px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.pill.wait { background: #fff4de; color: #9a6200; }
.pill.done { background: #e8f7ee; color: #1a7f43; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 99px; border: 1px solid #cfd8e3; background: #fff; color: var(--navy); cursor: pointer; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.chk { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.chk input { width: 18px; height: 18px; padding: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 18px; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--navy); padding: 0 8px; }
.studpick { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.sigprev { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; max-height: 90px; }
.pill.void { background: #fdecec; color: #b42318; }
.checker { background: repeating-conic-gradient(#e8edf3 0% 25%, #fff 0% 50%) 0 0 / 14px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: inline-block; }
.checker img { display: block; max-height: 90px; max-width: 100%; }
.uploadbox { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg-soft); }
