.wr-dashboard, .wr-roster {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1216px;
  margin: 32px auto;
  color: #111827;
  font: 14px/1.45 system-ui, "PingFang HK", "Microsoft JhengHei", sans-serif;
}
.wr-dashboard *, .wr-roster * { box-sizing: border-box; }
.wr-dashboard h1, .wr-dashboard h2, .wr-dashboard p,
.wr-roster h1, .wr-roster h2, .wr-roster p { margin: 0; }
.wr-dashboard button, .wr-roster button { cursor: pointer; font: inherit; }
.wr-dashboard button:focus-visible, .wr-roster button:focus-visible { outline: 3px solid #6366f1; outline-offset: 3px; }
.wr-dashboard button:disabled { cursor: wait; opacity: .65; }
.wr-dashboard { display: grid; gap: 24px; }
.wr-box, .wr-print-tools, .wr-paper-table {
  background: #fff; border: 1px solid #e2e5eb; border-radius: 16px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}
.wr-dash-head, .wr-metric, .wr-side { padding: 20px; }
.wr-dash-head, .wr-section-head, .wr-seat-top, .wr-seat-bottom,
.wr-refresher, .wr-update-line, .wr-side-top, .wr-paper-title, .wr-print-tools, .wr-dialog-head {
  display: flex; align-items: center; gap: 12px;
}
.wr-dash-head, .wr-section-head, .wr-seat-top, .wr-seat-bottom, .wr-paper-title, .wr-dialog-head {
  justify-content: space-between;
}
.wr-update-line { gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.wr-live { display: inline-flex; align-items: center; gap: 8px; color: #168864; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.wr-live i { width: 10px; height: 10px; border-radius: 50%; background: #4abe98; }
.wr-zone, .wr-control { background: #f1f5f9; border: none; border-radius: 7px; }
.wr-zone { color: #475467; font-size: 11px; padding: 2px 7px; }
.wr-dash-head h1, .wr-paper-head h1 { color: #101525; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.wr-refresher { color: #64748b; font-size: 12px; flex-wrap: wrap; }
.wr-dashboard .wr-control { color: #364152; font-size: 12px; font-weight: 650; padding: 5px 10px; }
.wr-control:hover { background: #e6eaf0; }
.wr-metrics, .wr-sides, .wr-seats { display: grid; gap: 16px; }
.wr-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wr-metric { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 138px; }
.wr-metric h2 { color: #677588; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; }
.wr-metric strong { font-size: 36px; line-height: 1.2; letter-spacing: -.035em; }
.wr-metric small { color: #667085; font-size: 12px; }
.wr-checked { border-color: #a7ebd4; }
.wr-checked h2, .wr-checked strong, .wr-checked small { color: #128563; }
.wr-pending strong { color: #374151; }
.wr-overall strong, .wr-paper-title h2 { color: #211b47; }
.wr-track { height: 12px; overflow: hidden; border-radius: 999px; background: #f1f5f9; }
.wr-track i { display: block; height: 100%; background: #10b981; border-radius: inherit; }
.wr-metric .wr-track { margin-top: 6px; }
.wr-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wr-side-top { gap: 8px; margin-bottom: 14px; }
.wr-side-icon { font-size: 21px; }
.wr-side h2 { color: #111827; font-size: 14px; }
.wr-side p { margin-top: 4px; font-size: 12px; font-weight: 600; }
.wr-side strong { margin-left: auto; font-size: 24px; }
.wr-bride { border-color: #f4cfe4; color: #cf2d7d; }
.wr-bride .wr-track { background: #fbe8f2; }
.wr-bride .wr-track i { background: #e94497; }
.wr-groom { border-color: #bfd9fb; color: #2f65cd; }
.wr-groom .wr-track { background: #dbeafe; }
.wr-groom .wr-track i { background: #4382ef; }
.wr-overview { padding: 24px; }
.wr-section-head { margin-bottom: 16px; }
.wr-section-head h2 { font-size: 16px; }
.wr-section-head p, .wr-dialog-head p, .wr-paper-head p { color: #667085; font-size: 12px; margin-top: 4px; }
.wr-link { color: #d82c56; font-weight: 650 !important; background: transparent; border: 0; padding: 4px 0; text-decoration: none; }
.wr-link:hover { text-decoration: underline; }
.wr-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wr-seat { display: flex; flex-direction: column; text-align: left; color: #344054; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 13px; padding: 15px; }
.wr-seat:hover { border-color: #b6a7e6; background: #f7f6ff; }
.wr-seat-top { width: 100%; align-items: start; gap: 5px; }
.wr-seat-top b { color: #fff; background: #373078; border-radius: 4px; padding: 2px 6px; font-size: 12px; overflow-wrap: anywhere; }
.wr-seat-top strong { color: #64748b; font-size: 12px; white-space: nowrap; }
.wr-seat-bottom { width: 100%; gap: 4px; margin-top: auto; padding-top: 5px; color: #667085; font-size: 11px; flex-wrap: wrap; }
.wr-seat-bottom em { color: #5746ba; font-size: 11px; font-style: normal; font-weight: 650; }
.wr-seat .wr-track { width: 100%; height: 8px; margin-top: 12px; background: #e2e8f0; }
.wr-seat.wr-low .wr-track i { background: #f43f5e; }
.wr-seat.wr-half .wr-track i { background: #f59e0b; }
.wr-seat.wr-half .wr-seat-top strong { color: #b9630e; }
.wr-seat.wr-full .wr-seat-top strong { color: #15815e; }
.wr-empty { padding: 34px 14px; text-align: center; color: #64748b; border: 1px dashed #dce2eb; border-radius: 12px; background: #fafbfc; }
.wr-dialog { width: min(660px, calc(100vw - 24px)); max-height: 80vh; border: 1px solid #e0e3eb; border-radius: 16px; padding: 20px; color: #111827; background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / 20%); }
.wr-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.wr-dialog-head { align-items: start; margin-bottom: 12px; }
.wr-dialog-head h2 { font-size: 19px; }
.wr-dialog-body { overflow-x: auto; }
.wr-roster { max-width: 976px; margin: 24px auto; }
.wr-print-tools { gap: 12px; border-radius: 12px; padding: 16px; }
.wr-print-tools > span { border-inline-start: 1px solid #d1d5db; padding-inline-start: 12px; font-size: 12px; font-weight: 600; color: #667085; }
.wr-print-tools .wr-print { margin-inline-start: auto; padding: 8px 14px; color: #fff; background: #111827; border: 0; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wr-print-tools .wr-print:hover { background: #30394e; }
.wr-paper-head { margin: 24px 0; padding-bottom: 16px; border-bottom: 1px solid #d1d5db; }
.wr-paper-table { padding: 16px; margin-bottom: 16px; border-radius: 12px; }
.wr-paper-title { gap: 8px; padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.wr-paper-title h2 { font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.wr-paper-title > span { padding: 3px 9px; border-radius: 12px; background: #eef2ff; color: #373078; font-size: 12px; font-weight: 650; }
.wr-names { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 14px; }
.wr-names th { padding: 4px 5px; background: #f8fafc; color: #667085; text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: .055em; }
.wr-names td { border-bottom: 1px solid #f0f1f3; padding: 7px 5px; overflow-wrap: anywhere; }
.wr-names tr:last-child td { border-bottom: 0; }
.wr-names th:first-child, .wr-names td:first-child { padding-inline-start: 0; text-align: center; }
.wr-names td:first-child { color: #727b8c; }
.wr-names td:nth-child(2) { font-weight: 550; }
.wr-names th:nth-child(1) { width: 5%; }
.wr-names th:nth-child(2) { width: 31%; }
.wr-names th:nth-child(3) { width: 40%; }
.wr-names th:nth-child(4) { width: 24%; }
.wr-tag, .wr-status { display: inline-block; font-size: 11px; }
.wr-tag { background: #eff6ff; color: #326bca; padding: 3px 5px; border-radius: 4px; margin: 1px 0; }
.wr-status { border-radius: 999px; background: #f3f4f6; color: #4b5563; padding: 1px 8px; }
.wr-status.is-in { color: #065f46; background: #d1fae5; font-weight: 700; }
@media (max-width: 960px) {
  .wr-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wr-dash-head { align-items: start; flex-direction: column; }
}
@media (max-width: 650px) {
  .wr-dashboard, .wr-roster { width: calc(100% - 24px); margin-top: 16px; }
  .wr-dashboard { gap: 14px; }
  .wr-metrics, .wr-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wr-sides { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wr-dash-head, .wr-side, .wr-overview, .wr-paper-table { padding: 14px; }
  .wr-metric { min-height: 112px; padding: 12px; }
  .wr-metric strong { font-size: 28px; }
  .wr-metric h2 { font-size: 10px; }
  .wr-refresher { gap: 6px; }
  .wr-zone { font-size: 10px; }
  .wr-section-head { flex-wrap: wrap; gap: 6px; }
  .wr-seat { padding: 10px; }
  .wr-print-tools { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .wr-print-tools > span { order: 1; width: 100%; border: 0; padding: 0; }
  .wr-names { font-size: 12px; }
  .wr-names th { font-size: 10px; letter-spacing: 0; }
  .wr-tag, .wr-status { font-size: 10px; }
  .wr-names th:first-child { width: 7%; }
  .wr-names th:nth-child(3) { width: 35%; }
  .wr-names th:last-child { width: 27%; }
}
@page { size: A4 portrait; margin: 12mm; }
@media print {
  body:has(.wr-roster) { background: #fff !important; display: block !important; color: #000; margin: 0; }
  body:has(.wr-roster) :is(header, nav, footer, .wr-print-tools),
  body:has(.wr-roster) [role="status"] { display: none !important; }
  body:has(.wr-roster) main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; min-height: 0 !important; }
  .wr-roster { width: 100%; max-width: none; margin: 0; font-size: 10pt; }
  .wr-paper-head { margin: 0 0 10pt; padding-bottom: 6pt; }
  .wr-paper-head h1 { font-size: 15pt; }
  .wr-paper-head p { font-size: 8pt; }
  .wr-paper-table { box-shadow: none; border-radius: 0; border: 0; margin: 0 0 13pt; padding: 0; break-inside: avoid-page; }
  .wr-paper-title { margin-bottom: 4pt; padding-bottom: 3pt; break-after: avoid; }
  .wr-paper-title h2 { font-size: 13pt; }
  .wr-names { font-size: 10pt; }
  .wr-names thead { display: table-header-group; }
  .wr-names tr { break-inside: avoid; }
  .wr-names td { padding-block: 3pt; border-bottom: .5pt solid #d4d9df; }
  .wr-tag, .wr-status, .wr-names th, .wr-paper-title > span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
