@charset "UTF-8";
:root {
  --wine: #782e3c;
  --wine-dark: #54222c;
  --wine-light: #f8eef0;
  --ink: #263238;
  --muted: #68747b;
  --border: #e1e5e7;
  --canvas: #f5f6f7;
  --white: #fff;
  --green: #276650;
  --green-bg: #edf7f1;
  --amber: #8e5a0d;
  --amber-bg: #fff5de;
  --red: #af3944;
  --red-bg: #ffeff0;
  --blue: #2c6085;
  --blue-bg: #edf4fa;
  --radius: 12px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--wine);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c59458;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.nowrap {
  white-space: nowrap;
}
.preline {
  white-space: pre-wrap;
}
.text-right {
  text-align: right;
}
.hidden,
[hidden] {
  display: none !important;
}
.initial-loading {
  padding: 25vh 20px;
  text-align: center;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-seal {
  width: 43px;
  height: 43px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: serif;
  font-weight: 700;
  font-size: 21px;
  box-shadow: inset 0 0 0 3px #ffffff1a;
}
.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  color: var(--wine);
  padding: 30px 22px 26px;
}
.nav-label {
  padding: 8px 26px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #899298;
}
.nav {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.nav a:hover {
  text-decoration: none;
  background: var(--canvas);
  color: var(--wine);
}
.nav a.active {
  background: var(--wine-light);
  color: var(--wine);
}
.nav svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.workspace {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--border);
  background: #ffffffdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 12px;
}
.topbar .today {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.025em;
}
.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--wine-light);
  color: var(--wine);
  font-weight: 700;
  font-size: 13px;
}
.user-info {
  font-size: 12px;
  line-height: 1.5;
}
.user-info strong {
  font-size: 13px;
}
.user-info span {
  display: block;
  color: var(--muted);
}
.user-area .btn {
  font-size: 12px;
  padding: 7px 10px;
  min-height: 34px;
}
main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 32px 36px 70px;
}
.global-demo-note {
  max-width: 1560px;
  margin: 20px auto 0;
  padding: 0 36px;
}
.global-demo-note .note {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .global-demo-note {
    padding: 0 18px;
    margin-top: 18px;
  }
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  color: var(--wine);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  min-height: 40px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover {
  background: #f9f9fa;
  text-decoration: none;
  border-color: #bdc3c7;
}
.btn.primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.btn.primary:hover {
  background: var(--wine-dark);
}
.btn.soft {
  background: var(--wine-light);
  border-color: transparent;
  color: var(--wine);
}
.btn.danger {
  color: var(--red);
  border-color: #e9c8cb;
}
.btn.tiny {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 31px;
}
.btn.icon {
  padding: 8px;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.link {
  background: none;
  border: 0;
  padding: 5px;
  color: var(--wine);
  min-height: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--border);
}
.card-body {
  padding: 23px;
}
.card-foot {
  padding: 15px 23px;
  border-top: 1px solid var(--border);
  background: #fcfcfd;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.filters .field {
  min-width: 130px;
  flex: 1;
}
.filters .field.wide {
  min-width: 240px;
  flex: 2;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: #505b62;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d4dade;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #929b9f;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f4f5f6;
  color: #788186;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--wine);
  margin: 0;
  flex-shrink: 0;
}
input[type="file"] {
  padding: 12px;
  background: #fafafa;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  padding: 8px 0;
}
.checkline input {
  margin-top: 2px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f0f2f4;
  color: #606c73;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green {
  color: var(--green);
  background: var(--green-bg);
}
.badge.amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.badge.red {
  color: var(--red);
  background: var(--red-bg);
}
.badge.blue {
  color: var(--blue);
  background: var(--blue-bg);
}
.badge.wine {
  color: var(--wine);
  background: var(--wine-light);
}
.note {
  display: flex;
  gap: 10px;
  background: var(--blue-bg);
  color: var(--blue);
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.7;
  border: 1px solid #dce8f0;
}
.note.warning {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: #f2e0b8;
}
.note.error {
  background: var(--red-bg);
  color: var(--red);
  border-color: #f1d6d9;
}
.note.success {
  background: var(--green-bg);
  color: var(--green);
  border-color: #d5e8dc;
}
.note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.note p + p {
  margin-top: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-number span {
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
  color: var(--muted);
}
.stat-footer {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.stat.green .stat-number {
  color: var(--green);
}
.stat.red .stat-number {
  color: var(--red);
}
.stat.amber .stat-number {
  color: var(--amber);
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: #f9fafb;
  color: #6b767d;
  font-size: 11px;
  letter-spacing: 0.025em;
  font-weight: 600;
  white-space: nowrap;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f1;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfd;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
td .btn {
  margin: 2px 3px 2px 0;
}
td input,
td select {
  min-height: 35px;
  padding: 6px 8px;
  font-size: 12px;
}
td input[type="checkbox"] {
  min-height: 17px;
}
td.num {
  font-variant-numeric: tabular-nums;
}
td.name {
  min-width: 90px;
  font-weight: 600;
}
td.note-cell {
  min-width: 170px;
}
td.status-cell {
  min-width: 117px;
}
.time-input {
  min-width: 106px;
}
.seat {
  font-weight: 700;
  color: var(--wine);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.empty {
  padding: 58px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 44px;
  height: 44px;
  color: #b5bcc0;
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
  max-width: 450px;
  margin: 0 auto;
  line-height: 1.8;
}
.empty .btn {
  margin-top: 17px;
}
.section-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 23px;
  overflow: auto;
}
.section-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0 1px 13px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 600;
}
.section-tabs button.active {
  color: var(--wine);
  border-color: var(--wine);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.split .card {
  margin: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.roll-header {
  padding: 22px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.roll-header h2 {
  font-size: 18px;
}
.roll-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 23px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}
.roll-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 23px;
  border-top: 1px solid var(--border);
}
.roll-footer .field {
  flex: 1;
  max-width: 430px;
}
.face-detail {
  max-width: 260px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.face-detail summary {
  cursor: pointer;
  white-space: nowrap;
  color: var(--blue);
}
.face-detail p {
  margin: 5px 0;
}
.row-status-present {
  box-shadow: inset 3px 0 0 #78ae96;
}
.row-status-absent {
  box-shadow: inset 3px 0 0 #cf7e87;
}
.row-status-late {
  box-shadow: inset 3px 0 0 #d6b566;
}
.row-status-conflict {
  background: #fff5f5;
}
.view-only {
  font-size: 12px;
  color: var(--muted);
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 21px 0;
}
.progress {
  height: 5px;
  background: #edf0f2;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 7px;
  min-width: 90px;
}
.progress div {
  height: 100%;
  background: var(--green);
  border-radius: 10px;
}
.list-pair {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.list-pair:last-child {
  border: 0;
}
.list-pair dt {
  color: var(--muted);
}
.list-pair dd {
  margin: 0;
  text-align: right;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.summary-grid .stat {
  padding: 12px 15px;
}
.summary-grid .stat-number {
  font-size: 23px;
  margin-top: 5px;
}
.scroll-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.student-pick {
  padding: 9px 12px;
  border-bottom: 1px solid #edf0f2;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-pick:last-child {
  border: 0;
}
.student-pick small {
  color: var(--muted);
  margin-left: auto;
}
.dropzone {
  border: 1px dashed #bdc6cd;
  border-radius: 10px;
  padding: 25px 20px;
  background: #fcfcfd;
  text-align: center;
  margin-bottom: 18px;
}
.dropzone.drag {
  background: var(--wine-light);
  border-color: var(--wine);
}
.dropzone h3 {
  margin-bottom: 5px;
}
.dropzone input {
  margin-top: 14px;
  background: white;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.error-details {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.help-list {
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.help-list li {
  margin-bottom: 5px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--wine-dark);
  color: white;
  padding: 54px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 590px;
  height: 590px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  right: -290px;
  bottom: -80px;
  box-shadow:
    0 0 0 75px #ffffff06,
    0 0 0 150px #ffffff04;
}
.login-story .brand {
  position: relative;
  z-index: 1;
}
.login-copy {
  margin: auto 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.login-copy .eyebrow {
  color: #d9b4bc;
  margin-bottom: 25px;
}
.login-copy h1 {
  font-size: 42px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  font-weight: 650;
}
.login-copy p {
  font-size: 14px;
  line-height: 2.1;
  color: #e3cbd0;
  max-width: 365px;
  margin-top: 24px;
}
.login-story footer {
  font-size: 11px;
  color: #c7a7ae;
  position: relative;
  z-index: 1;
}
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcfcfd;
  padding: 44px 35px;
}
.login-form {
  width: 100%;
  max-width: 365px;
}
.login-form h2 {
  font-size: 24px;
  margin-bottom: 9px;
}
.login-form > .muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form .field {
  margin-bottom: 18px;
}
.login-form .btn {
  width: 100%;
  margin-top: 9px;
  min-height: 45px;
}
.login-form .footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 22px;
}
.login-form .note {
  margin-top: 18px;
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 90px #1c293433;
  width: min(720px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
}
dialog.wide {
  width: min(1080px, calc(100vw - 30px));
}
dialog::backdrop {
  background: #17222b88;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 19px;
}
.modal-body {
  padding: 24px;
  overflow: auto;
  max-height: calc(90vh - 145px);
}
.modal-foot {
  padding: 15px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  background: #fafbfc;
}
.modal-body .note {
  margin-top: 0;
}
.modal-body table {
  font-size: 12px;
}
.modal-body th,
.modal-body td {
  padding: 9px 12px;
}
.modal-body .error-box:empty {
  display: none;
}
.modal-body .error-box {
  margin-top: 15px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 23px;
  max-width: 460px;
  padding: 13px 19px;
  border-radius: 8px;
  background: #253b32;
  color: #fff;
  box-shadow: 0 6px 24px #0002;
  z-index: 100;
  display: none;
  font-size: 13px;
  white-space: pre-wrap;
}
#toast.error {
  background: #8e2e39;
}
#print-area {
  display: none;
}
.loading-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--wine) 25%,
    #ead1d6 50%,
    var(--wine) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}
.loading-panel {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-line {
    animation: none;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 40px;
  }
  .stats {
    gap: 18px;
  }
  .stat {
    padding: 22px 25px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 204px;
  }
  .workspace {
    margin-left: 204px;
  }
  .sidebar .brand {
    padding: 24px 17px;
  }
  .brand-title {
    font-size: 13px;
  }
  .brand-subtitle {
    font-size: 10px;
  }
  .brand-seal {
    width: 36px;
    height: 36px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 28px 24px 55px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 45px 40px;
  }
  .login-copy h1 {
    font-size: 35px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    padding: 15px 20px;
  }
  .sidebar .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    padding: 0 12px 10px;
    gap: 3px;
  }
  .nav a {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 11px;
    gap: 7px;
  }
  .nav svg {
    width: 16px;
    height: 16px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .topbar .today {
    font-size: 11px;
  }
  .user-area {
    gap: 7px;
  }
  .avatar {
    display: none;
  }
  .user-info {
    font-size: 10px;
  }
  .user-info strong {
    font-size: 12px;
  }
  .user-area .btn {
    font-size: 11px;
    padding: 5px 7px;
  }
  main {
    padding: 24px 18px 45px;
  }
  .page-head {
    margin-bottom: 20px;
    gap: 12px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .stat-number {
    font-size: 24px;
    margin-top: 9px;
  }
  .card-head,
  .card-body,
  .roll-header {
    padding: 17px;
  }
  .card-foot,
  .roll-toolbar,
  .roll-footer {
    padding: 13px 17px;
  }
  .form-grid {
    gap: 14px;
  }
  .filters {
    gap: 12px;
  }
  .filters .field {
    min-width: 130px;
  }
  .filters .field.wide {
    min-width: 200px;
  }
  .roll-footer {
    flex-wrap: wrap;
  }
  .roll-footer .field {
    min-width: 100%;
    max-width: none;
  }
  .roll-header {
    flex-wrap: wrap;
  }
  .roll-header .actions {
    margin-top: 2px;
  }
  .section-tabs {
    gap: 20px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px;
    min-height: 190px;
  }
  .login-copy {
    margin: 27px 0 7px;
  }
  .login-copy .eyebrow,
  .login-story footer,
  .login-copy p {
    display: none;
  }
  .login-copy h1 {
    font-size: 25px;
    line-height: 1.5;
  }
  .login-copy br {
    display: none;
  }
  .login-form-side {
    padding: 35px 25px 50px;
  }
  .login-form h2 {
    font-size: 22px;
  }
  .login-form > .muted {
    margin-bottom: 23px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  dialog .modal-body {
    padding: 18px;
  }
  .modal-head,
  .modal-foot {
    padding: 15px 18px;
  }
}
@media (max-width: 480px) {
  .topbar .today {
    max-width: 100px;
  }
  .user-info span {
    display: none;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > .actions {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-number {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters .field {
    min-width: calc(50% - 12px);
  }
  .filters .field.wide {
    min-width: 100%;
  }
  .filters > .btn {
    flex: 1;
  }
  .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .roll-toolbar {
    flex-wrap: wrap;
  }
  .roll-footer > .actions {
    width: 100%;
  }
  .roll-footer > .actions .btn {
    flex: 1;
  }
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .modal-foot .btn {
    flex: 1;
  }
  .note {
    font-size: 11px;
  }
  .page-head p {
    line-height: 1.8;
  }
  #toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .login-story {
    min-height: 175px;
  }
}
@page {
  size: A4 portrait;
  margin: 12mm 10mm 13mm;
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 10pt;
  }
  #app,
  #modal,
  #toast,
  noscript {
    display: none !important;
  }
  #print-area {
    display: block !important;
    font-family:
      "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  }
  #print-area h1 {
    font-size: 18pt;
    text-align: center;
    margin-bottom: 5mm;
  }
  #print-area h2 {
    font-size: 12pt;
    margin: 5mm 0 2mm;
  }
  #print-area p {
    font-size: 9pt;
    line-height: 1.7;
    margin-bottom: 2mm;
  }
  #print-area table {
    width: 100%;
    table-layout: fixed;
    font-size: 9pt;
    border-collapse: collapse;
  }
  #print-area thead {
    display: table-header-group;
  }
  #print-area tr {
    break-inside: avoid;
  }
  #print-area th,
  #print-area td {
    border: 1px solid #999;
    padding: 2mm 1.4mm;
    white-space: normal;
    overflow-wrap: anywhere;
    color: black;
    background: white;
  }
  #print-area th {
    font-size: 8pt;
  }
  #print-area .print-meta {
    display: flex;
    justify-content: space-between;
    gap: 5mm;
    font-size: 9pt;
    border-bottom: 1px solid #555;
    padding-bottom: 3mm;
    margin-bottom: 3mm;
  }
  #print-area .print-sign {
    margin-top: 5mm;
    font-size: 9pt;
    line-height: 2;
  }
  #print-area .print-group {
    break-before: page;
  }
  #print-area .print-group:first-child {
    break-before: auto;
  }
  #print-area .print-note {
    font-size: 8pt;
    color: #444;
  }
  #print-area .print-blank td {
    height: 8mm;
  }
  a {
    color: black;
    text-decoration: none;
  }
}
