/* Lab service bench: client unit page + staff app. Uses the brand tokens from /brand/classroom-theme.css. */
:root { --bg: var(--cyu-paper); --panel: var(--cyu-surface); --fg: var(--cyu-ink); --muted: var(--cyu-muted); --line: #cfd8d1; --acc: var(--cyu-action); --onacc: #fff; --soft: #eaf3ec; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --bg: #0d211e; --panel: #16322d; --fg: var(--cyu-paper); --muted: #b9cdc2; --line: #35574e; --acc: var(--cyu-mint); --onacc: var(--cyu-ink); --soft: #1f4038; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--cyu-font); }
[hidden] { display: none !important; }
a { color: inherit; }
.jb-top { background: var(--cyu-ink); color: var(--cyu-paper); display: flex; gap: 12px; align-items: center; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.jb-top img { width: 44px; height: 44px; object-fit: contain; }
.jb-top b { display: block; line-height: 1.2; }
.jb-top small { color: var(--cyu-mint); }
.jb-top nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.jb-top nav a, .jb-top nav button { color: var(--cyu-paper); background: transparent; border: 1px solid #5d7c70; }
main { max-width: 860px; margin: 0 auto; padding: 16px 14px 220px; display: grid; gap: 14px; }
main > * { min-width: 0; }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0; }
h2 { font-size: 1.1rem; margin: 0; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--cyu-radius-card); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--soft); font-size: .8rem; font-weight: 700; }
.pill.warn { background: var(--cyu-warning-surface); color: var(--cyu-warning); }
.pill.ok { background: var(--cyu-mint); color: var(--cyu-ink); }
.notice { background: var(--cyu-warning-surface); color: var(--cyu-warning); border-radius: var(--cyu-radius-control); padding: 10px 12px; font-weight: 600; }
.btn, button { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: var(--cyu-radius-control); border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.primary, .btn.primary { background: var(--acc); border-color: var(--acc); color: var(--onacc); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--cyu-focus); outline-offset: 2px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
label.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
label.check input { width: 22px; height: 22px; min-height: 0; }
input, select, textarea { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 10px; border-radius: var(--cyu-radius-control); border: 1px solid var(--cyu-border); background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
form.fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
form.fields .wide { grid-column: 1 / -1; }
details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entry { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.entry:first-of-type { border-top: 0; padding-top: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline li { display: flex; gap: 10px; align-items: baseline; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.timeline time { color: var(--muted); font-size: .85rem; margin-left: auto; }
.code { font-family: var(--cyu-mono); letter-spacing: .08em; }
.clockbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--cyu-ink); color: var(--cyu-paper); padding: 12px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); display: grid; gap: 8px; box-shadow: 0 -6px 24px rgb(0 0 0 / .25); }
.clockbar > * { max-width: 832px; width: 100%; margin: 0 auto; }
.clockbar button { min-height: 52px; flex: 1 1 160px; background: var(--cyu-mint); border-color: var(--cyu-mint); color: var(--cyu-ink); }
.clockbar button.alt { background: transparent; color: var(--cyu-paper); border-color: #5d7c70; }
.clockbar a { color: var(--cyu-mint); }
.clockbar label.check { color: var(--cyu-paper); min-height: 32px; }
#msg { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10; max-width: calc(100% - 24px); background: var(--cyu-ink); color: var(--cyu-paper); border: 1px solid var(--cyu-mint); padding: 10px 14px; border-radius: var(--cyu-radius-control); }
#msg:empty { display: none; }
#msg.err { background: var(--cyu-error-surface); color: var(--cyu-error); border-color: var(--cyu-error); }
.labelstage { background: #fff; border: 1px dashed var(--cyu-border); padding: 8px; overflow: auto; }
.labelstage img { display: block; max-width: none; }
@media print {
  .jb-top, .noprint, #msg, .clockbar { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; margin: 0; max-width: none; display: block; }
  .labelstage { border: 0; padding: 0; overflow: visible; break-after: page; }
  .labelstage:last-child { break-after: auto; }
  .card { break-inside: avoid; border-color: #bbb; }
}
/* work checklist */
label.check.task { align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 400; }
label.check.task input { margin-top: 2px; flex: none; }
label.check.task.is-done > span { text-decoration: line-through; text-decoration-color: var(--muted); }
label.check.task small { display: block; text-decoration: none; }
.notice ul { margin: 0; padding-left: 18px; }
img.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
