* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 { margin: 0; font-size: 18px; font-weight: 600; }

.alerts {
  padding: 0 20px;
}

.alert {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert.error {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #b71c1c;
}

.alert.warn {
  background: #fff8e1;
  border-color: #ffe082;
  color: #8d6e00;
}

.alert.info {
  background: #e3f2fd;
  border-color: #bbdefb;
  color: #0d47a1;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: #1565c0; }

.page-tag {
  color: #777;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.last-update {
  color: #777;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 108px;
  text-align: left;
}

.header-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: auto;
}

.header-links a {
  font-size: 13px;
  color: #1565c0;
  text-decoration: none;
  white-space: nowrap;
}

.header-links a:hover {
  text-decoration: underline;
}

.clocks {
  display: flex;
  gap: 16px;
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.clock-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clock > span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.controls button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.controls button:hover { background: #f0f0f0; }

main {
  padding: 16px;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.name { font-weight: 600; }

.model {
  color: #888;
  font-size: 12px;
}

.badge {
  margin-left: auto;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.progress {
  background: #e8e8e8;
  border-radius: 4px;
  height: 18px;
  position: relative;
  margin: 8px 0;
  overflow: hidden;
}

.progress-bar {
  background: #2e7d32;
  height: 100%;
  transition: width 0.4s ease;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

.row {
  font-size: 13px;
  color: #444;
  margin: 4px 0;
}

.file { word-break: break-all; }

.err-row {
  color: #b00020;
  font-size: 12px;
  background: #fff3f3;
  padding: 4px 6px;
  border-radius: 4px;
  margin: 4px 0;
}

.err-row a {
  color: #b00020;
  text-decoration: underline;
}

.err-row .sev {
  color: #777;
  font-size: 11px;
}

.ams {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.slot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 2px;
  vertical-align: middle;
}

.ts {
  color: #999;
  font-size: 11px;
  margin-top: 8px;
}

.err {
  background: #ffe5e5;
  color: #b00020;
  padding: 10px 16px;
  margin: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
}

.hidden { display: none; }

.empty {
  color: #888;
  padding: 30px;
  grid-column: 1 / -1;
  text-align: center;
}


.login {
  max-width: 380px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.login label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

.login input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.login-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.login-buttons button {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.login-buttons button[type="submit"] {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}

.login-buttons button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-msg {
  margin-top: 12px;
  font-size: 13px;
  color: #b00020;
  min-height: 18px;
}

.queue-jobs ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.queue-jobs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  padding: 2px 0;
}

.login.wide {
  max-width: 900px;
}

.ptable-wrap {
  overflow-x: auto;
}

.ptable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.ptable th,
.ptable td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.ptable input {
  width: 120px;
  margin-right: 6px;
}

.added {
  color: #2e7d32;
  font-weight: 600;
}

#detail {
  max-width: 640px;
  margin: 16px auto;
}

.drow {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.dlabel {
  min-width: 120px;
  color: #666;
}

.dval {
  flex: 1;
}

.experimental {
  color: #ed6c02;
  font-size: 12px;
  margin-left: 8px;
}

.cam {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 6px;
  background: #000;
}

.quad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}

.temps-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.temp-cell { text-align: center; }
.temp-cell .tval { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.temp-cell .ttarget { font-size: 13px; color: #888; }
.temp-cell .tlabel { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.quad {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  min-height: 120px;
}

.quad-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.quad-placeholder {
  color: #999;
  font-size: 13px;
}

.sd-refresh {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #1565c0;
  padding: 0 4px;
  vertical-align: middle;
}

.sd-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.sd-tab {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  color: #555;
}

.sd-tab.active {
  background: #1565c0;
  border-color: #1565c0;
  color: #fff;
  font-weight: 600;
}

.sd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.sd-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 12.5px;
}

.sd-play {
  flex: 0 0 auto;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
}

.sd-play:hover {
  background: #256628;
}

.sd-name {
  flex: 1;
  overflow-wrap: anywhere;
}

.sd-size {
  color: #999;
  white-space: nowrap;
}

.cam-wrap {
  position: relative;
  margin-top: 8px;
  min-height: 200px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.cam-wrap .cam {
  margin-top: 0;
  width: 100%;
  display: block;
}

.cam-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}

@media (max-width: 800px) {
  .quad-grid { grid-template-columns: 1fr; }
}

.speed-btn.active {
  border-color: #2e7d32;
  box-shadow: 0 0 0 1px #2e7d32;
  color: #2e7d32;
  font-weight: 600;
}

.cam-overlay.hidden {
  display: none;
}

.footer {
  border-top: 1px solid #e0e0e0;
  margin: 24px 16px 8px;
  padding-top: 8px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

.stats-wrap {
  padding: 16px 20px;
  overflow-x: auto;
}

.stats-table {
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.stats-table th,
.stats-table td {
  border: 1px solid #e0e0e0;
  padding: 5px 10px;
  text-align: right;
  white-space: nowrap;
}

.stats-table th {
  background: #f5f5f5;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.stats-table td.stats-day,
.stats-table th.stats-day {
  text-align: left;
}

.stats-table .stats-total {
  font-weight: 700;
  background: #fafafa;
}

.pts-pos { color: #2e7d32; }
.pts-neg { color: #c62828; }
.pts-zero { color: #bbb; text-align: center; }

/* --- print history --- */
.hist-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hist-filters select {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.stats-wrap section { margin-bottom: 28px; }
.stats-wrap section h3 { margin: 0 0 10px; font-size: 15px; }

.hist-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 12px;
  align-items: baseline;
}
.hist-total { font-size: 14px; color: #444; }
.hist-total b { font-size: 18px; color: #111; }
.hist-total.hist-mat { color: #666; font-size: 13px; }

.hist-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.hist-table th,
.hist-table td {
  border-bottom: 1px solid #eee;
  padding: 6px 12px;
  text-align: left;
  white-space: nowrap;
}
.hist-table th {
  background: #f5f5f5;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.hist-table td.num,
.hist-table th.num { text-align: right; }
.hist-table tbody tr:hover { background: #fafafa; }

.hist-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid #0002;
  vertical-align: middle;
}

.st-ok { color: #2e7d32; }
.st-fail { color: #c62828; }
.st-run { color: #1565c0; }
.st-unknown { color: #999; }

/* --- login page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
}
.login-card {
  background: #fff;
  padding: 40px 44px;
  border-radius: 14px;
  box-shadow: 0 6px 30px #0002;
  text-align: center;
  max-width: 360px;
  width: 90%;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-sub { color: #666; margin: 0 0 26px; font-size: 14px; }
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .15s, background .15s;
}
.gbtn:hover { box-shadow: 0 1px 6px #0002; background: #fafafa; }
.gbtn-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #4285f4; color: #fff; font-weight: 700; font-family: serif;
}
.login-note { margin-top: 18px; font-size: 13px; min-height: 18px; }
.login-err { color: #c62828; }

/* --- single plate page --- */
.pl-card {
  display: flex; gap: 28px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e2e4e8; border-radius: 14px; padding: 24px;
}
.pl-img {
  flex: 0 0 340px; max-width: 100%;
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f2f4f7;
  display: flex; align-items: center; justify-content: center;
}
.pl-img img { width: 100%; height: 100%; object-fit: contain; }
.pl-body { flex: 1 1 320px; min-width: 280px; }
.pl-title { margin: 0 0 8px; font-size: 22px; }
.pl-meta { color: #555; font-size: 15px; margin-bottom: 6px; }
.pl-meta b { color: #222; }
.pl-h3 { margin: 20px 0 10px; font-size: 16px; }

/* --- suggest / planner --- */
.sg-banner {
  padding: 16px 20px; margin-bottom: 20px;
  border: 1px solid #e2e4e8; border-radius: 12px; background: #f8fafc;
}
.sg-mode { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.sg-meta { color: #555; font-size: 14px; }
.sg-fit { color: #444; font-size: 13px; margin: 6px 0 14px; }
.sg-fit b { color: #2e7d32; }
.sg-printers {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 168px; overflow-y: auto;
  border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.sg-pchk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.sg-pchk input { width: 16px; height: 16px; }
.sg-batch {
  width: 100%; padding: 10px; border: 0; border-radius: 8px;
  background: #1565c0; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.sg-batch:hover { background: #114f9a; }
.sg-batch:disabled { background: #9db8dd; cursor: default; }

/* --- explorer --- */
.exp-crumbs { margin-bottom: 16px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.exp-crumbs .crumb { color: #1565c0; text-decoration: none; }
.exp-crumbs .crumb.cur { color: #222; font-weight: 700; }
.exp-crumbs .crumb-sep { color: #aaa; margin: 0 6px; }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 1500px) { .exp-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1100px) { .exp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
.exp-folder {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  border: 1px solid #e2e4e8; border-radius: 14px;
  background: #fff; text-decoration: none; color: #222;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
.exp-folder:hover { box-shadow: 0 6px 20px #0002; border-color: #c5cad2; transform: translateY(-2px); }
.exp-folder.has-slices { border-color: #b9d4b9; }
.exp-thumb {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden;
  background: #f2f4f7; display: flex; align-items: center; justify-content: center;
}
.exp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.exp-thumb-icon { font-size: 52px; }
.exp-fname { font-size: 15px; line-height: 1.3; font-weight: 600; }

#partTitle { display: flex; align-items: center; gap: 16px; font-size: 18px; flex-wrap: wrap; }
.exp-part-head { display: flex; flex-direction: column; gap: 2px; }
.exp-part-name { font-weight: 700; }
.exp-part-sub { font-size: 13px; font-weight: 400; }
.exp-sliceinfo { color: #666; }
.exp-reslice {
  padding: 8px 16px; border: 1px solid #1565c0; border-radius: 8px;
  background: #fff; color: #1565c0; font-weight: 600; font-size: 14px; cursor: pointer;
}
.exp-reslice:hover { background: #eef4ff; }
.exp-reslice:disabled { opacity: .6; cursor: default; }
.exp-reslice-msg { font-size: 13px; }
.exp-preview {
  width: 120px; height: 120px; object-fit: contain;
  border: 1px solid #e2e4e8; border-radius: 12px; background: #f2f4f7;
}

.exp-plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.exp-plate {
  display: block; border: 1px solid #e2e4e8; border-radius: 14px;
  padding: 20px 22px; background: #fff;
  color: inherit; text-decoration: none; cursor: pointer;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
a.exp-plate:hover {
  border-color: #1565c0; box-shadow: 0 4px 14px rgba(21, 101, 192, .14);
  transform: translateY(-2px);
}
.exp-plate-img {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden; margin-bottom: 14px;
  background: #f2f4f7; display: flex; align-items: center; justify-content: center;
}
.exp-plate-img img { width: 100%; height: 100%; object-fit: contain; }
.exp-plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.exp-plate-name { font-weight: 700; font-size: 19px; }
.exp-plate-name a { color: #1565c0; text-decoration: none; }
.exp-plate-name a:hover { text-decoration: underline; }
.exp-plate-meta { color: #666; font-size: 14px; }
.exp-plate-sub { color: #888; font-size: 13px; margin: 6px 0 10px; }
.exp-multi {
  display: inline-block; margin-left: 8px; padding: 2px 9px;
  border-radius: 11px; background: #fff3e0; color: #e65100;
  font-size: 12px; font-weight: 700;
}
.exp-nocompat { color: #c62828; font-size: 13px; font-weight: 600; }
.exp-noprint { color: #e65100; font-weight: 700; }
.exp-speed-h { font-size: 12px; color: #999; margin-bottom: 4px; }
.exp-speed {
  width: 100%; border-collapse: collapse; margin-bottom: 16px;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.exp-speed td { padding: 3px 0; }
.exp-speed .sp-pct { color: #1565c0; font-weight: 700; width: 46px; }
.exp-speed .sp-dur { color: #333; }
.exp-speed .sp-eta { color: #2e7d32; text-align: right; white-space: nowrap; }
.exp-plate-actions { display: flex; gap: 10px; }
.exp-printer { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; background: #fff; }
.exp-print {
  padding: 10px 20px; border: 0; border-radius: 8px;
  background: #1565c0; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.exp-print:hover { background: #114f9a; }
.exp-print:disabled { background: #9db8dd; cursor: default; }
.exp-plate-msg { margin-top: 10px; font-size: 13px; min-height: 15px; }

/* header user chip */
.user-chip { font-size: 13px; color: #444; display: flex; align-items: center; gap: 8px; }
.user-chip a { color: #c62828; text-decoration: none; }
.user-chip a:hover { text-decoration: underline; }

.hist-mult { color: #1565c0; font-weight: 600; font-size: 12px; }

.hist-table tfoot .hist-total-row td {
  font-weight: 700;
  background: #fafafa;
  border-top: 2px solid #ccc;
}

.hist-table tr.hist-live { background: #eef4ff; }
.hist-table tr.hist-live td:first-child { color: #1565c0; font-style: italic; }

.stats-settings { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.settings-block h3 { font-size: 13px; text-transform: uppercase; color: #666; letter-spacing: 0.5px; margin: 0 0 8px; }
.settings-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.settings-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.settings-list li { padding: 3px 0; }
.settings-list button, .settings-row button { cursor: pointer; padding: 3px 8px; border: 1px solid #ccc; background: #fff; border-radius: 5px; }
.exclude-item { display: block; font-size: 13px; padding: 2px 0; cursor: pointer; }
.stats-table .row-holiday { background: #fffde7; }
.stats-table th.col-excused { color: #aaa; }

.file-wrap { padding: 16px 20px; }
.file-name { font-size: 16px; word-break: break-all; margin: 0 0 16px; }
.file-cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.file-preview {
  max-width: 380px; width: 100%; border-radius: 8px; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.file-table { border-collapse: collapse; font-size: 14px; }
.file-table td { padding: 6px 12px; border-bottom: 1px solid #eee; }
.file-table .fk { color: #666; white-space: nowrap; }

.code-ref { color: #aaa; font-size: 11px; font-family: monospace; }

/* --- 3mf audit page --- */
.au-intro { color: #555; font-size: 14px; margin-bottom: 14px; max-width: 900px; line-height: 1.5; }
.au-summary { font-size: 15px; margin-bottom: 12px; }
.au-summary .au-muted { color: #888; }
.au-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #444; margin-bottom: 16px; cursor: pointer; }
.au-b { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.au-b.au-miss { background: #fdecea; color: #c62828; }
.au-b.au-drift { background: #fff3e0; color: #e65100; }
.au-b.au-ok { background: #e7f5ea; color: #2e7d32; }

.au-files { display: flex; flex-direction: column; gap: 12px; }
.au-card { border: 1px solid #e2e4e8; border-left-width: 4px; border-radius: 10px; padding: 14px 16px; background: #fff; }
.au-card.au-c-miss { border-left-color: #c62828; }
.au-card.au-c-drift { border-left-color: #e65100; }
.au-card.au-c-ok { border-left-color: #2e7d32; }
.au-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.au-part { font-weight: 700; font-size: 15px; color: #1565c0; text-decoration: none; }
.au-part:hover { text-decoration: underline; }
.au-count { color: #888; font-size: 13px; white-space: nowrap; }
.au-objs { display: flex; flex-direction: column; gap: 4px; }
.au-obj { display: flex; align-items: baseline; gap: 8px; font-size: 14px; padding: 3px 0; }
.au-dot { flex: 0 0 auto; }
.au-oname { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.au-obj.au-ok .au-oname { color: #444; }
.au-obj.au-miss .au-oname { color: #c62828; font-weight: 600; }
.au-obj.au-drift .au-oname { color: #e65100; font-weight: 600; }
.au-note { color: #888; font-size: 12.5px; }

/* --- compact per-printer print history (printer page quad) --- */
.hist-scroll { overflow-x: auto; }
.hist-mini { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.hist-mini th, .hist-mini td { padding: 4px 8px; border-bottom: 1px solid #eee; text-align: left; white-space: nowrap; }
.hist-mini th { color: #888; font-weight: 600; font-size: 11.5px; }
.hist-mini td.num { text-align: right; }
.hist-mini .hist-when { color: #666; }
.hist-mini tr.hist-live { background: #f3f8ff; }
