:root {
  --oz-primary: #0b4f8a;
  --oz-primary-dark: #083a66;
  --oz-accent: #c9a227;
  --oz-bg: #f3f6fa;
  --oz-card: #ffffff;
  --oz-text: #1c2b3a;
  --oz-muted: #66788a;
  --oz-line: #e3eaf1;
  --oz-success: #1b8a5a;
  --oz-danger: #c0392b;
  --oz-warning: #d68910;
  --oz-info: #2471a3;
  --oz-shadow: 0 10px 30px rgba(11, 79, 138, 0.08);
  --oz-radius: 16px;
  --oz-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--oz-font-family);
  color: var(--oz-text);
  background: var(--oz-bg);
  min-width: 320px;
  line-height: 1.55;
}
a { color: var(--oz-primary); text-decoration: none; }
img { max-width: 100%; }

.oz-guest {
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(201, 162, 39, 0.18), transparent 50%),
    linear-gradient(180deg, #083a66 0%, #0b4f8a 42%, #f3f6fa 42%);
}
.oz-guest-header, .oz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: #fff;
}
.oz-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.oz-brand .oz-brand-logo { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; border-radius: 8px; }
.oz-brand small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.oz-guest-main { max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }
.oz-hero { color: #fff; text-align: center; padding: 18px 10px 28px; }
.oz-hero h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: .04em; }
.oz-hero p { margin: 0; opacity: .9; }

.oz-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oz-entry-card {
  background: var(--oz-card);
  border-radius: var(--oz-radius);
  box-shadow: var(--oz-shadow);
  padding: 28px 20px;
  text-align: center;
  color: var(--oz-text);
  transition: transform .2s ease, box-shadow .2s ease;
}
.oz-entry-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,79,138,.14); }
.oz-entry-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 14px; display: grid; place-items: center;
  background: rgba(11,79,138,.08); color: var(--oz-primary); font-size: 28px;
}
.oz-entry-card h3 { margin: 0 0 6px; }
.oz-entry-card p { margin: 0; color: var(--oz-muted); font-size: 13px; }

.oz-card {
  background: var(--oz-card);
  border-radius: var(--oz-radius);
  box-shadow: var(--oz-shadow);
  padding: 22px;
}
.oz-card h2 { margin: 0 0 16px; font-size: 20px; }
.oz-muted { color: var(--oz-muted); }
.oz-center { text-align: center; }

a.oz-btn, button.oz-btn, .oz-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  color: #2b6ea3;
  background: #d7ebf8;
  box-shadow: inset 0 0 0 1px #c5ddef;
}
a.oz-btn:disabled, button.oz-btn:disabled, .oz-btn:disabled { opacity: .45; cursor: not-allowed; }
.oz-btn-block { width: 100%; }
a.oz-btn.oz-btn-primary, button.oz-btn.oz-btn-primary {
  background: #0b4f8a;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
a.oz-btn.oz-btn-lg, button.oz-btn.oz-btn-lg {
  min-height: 52px;
  font-size: 18px;
  border-radius: 14px;
  font-weight: 700;
}
.oz-login-actions {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}
button.oz-btn.oz-btn-login, a.oz-btn.oz-btn-login {
  width: 72%;
  max-width: 260px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: .12em;
}
a.oz-btn.oz-btn-accent, button.oz-btn.oz-btn-accent {
  background: #f4e8c4;
  color: #7a5b12;
  box-shadow: inset 0 0 0 1px #ead7a0;
}
a.oz-btn.oz-btn-success, button.oz-btn.oz-btn-success {
  background: #d9f3e6;
  color: #1d7a4c;
  box-shadow: inset 0 0 0 1px #bfe6d2;
}
a.oz-btn.oz-btn-pass, button.oz-btn.oz-btn-pass {
  background: #d9f4e6;
  color: #1a7a4a;
  box-shadow: inset 0 0 0 1px #b7e6ce;
}
a.oz-btn.oz-btn-pass:hover, button.oz-btn.oz-btn-pass:hover { background: #ccefdc; }
a.oz-btn.oz-btn-abort, button.oz-btn.oz-btn-abort {
  background: #fdecea;
  color: #b03a2e;
  box-shadow: inset 0 0 0 1px #f5d0cb;
}
a.oz-btn.oz-btn-abort:hover, button.oz-btn.oz-btn-abort:hover { background: #fadbd8; }
a.oz-btn.oz-btn-danger, button.oz-btn.oz-btn-danger {
  background: #fdecea;
  color: #c0392b;
  box-shadow: inset 0 0 0 1px #f5c6c0;
}
a.oz-btn.oz-btn-ghost, button.oz-btn.oz-btn-ghost {
  background: #c5dcef;
  color: #1a5a8c;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px #9ec4de;
}
a.oz-btn.oz-btn-quiet-danger, button.oz-btn.oz-btn-quiet-danger {
  background: #fbf4f3;
  color: #c27a74;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px #f0ddda;
}
.oz-btn-sm { padding: 7px 12px; font-size: 13px; }
.oz-btn + .oz-btn { margin-left: 8px; }

.oz-form-group { margin-bottom: 14px; }
.oz-form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.oz-form-group .req { color: var(--oz-danger); }
.oz-input, .oz-select, .oz-textarea,
input:not([type]),
input[type=text], input[type=password], input[type=date],
input[type=number], input[type=tel], input[type=email], input[type=file], select, textarea {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  border: 1px solid var(--oz-line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: #fff; color: var(--oz-text);
  font-family: inherit;
}
input[type=date] {
  display: block;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
input[type=date]::-webkit-date-and-time-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}
input[type=date]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
}
textarea { min-height: 88px; resize: vertical; }
.oz-hint { font-size: 12px; color: var(--oz-muted); margin-top: 4px; }
.oz-hint-quiet { font-size: 11px; color: #9aa8b6; font-weight: 400; line-height: 1.5; }
.oz-bi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.35;
}
.oz-bi-en,
.oz-badge-bi .oz-bi-en,
.oz-kv dd .oz-bi-en,
.oz-table .oz-bi-en {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8a9bab;
  line-height: 1.3;
}
.oz-badge-bi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
  text-align: left;
}
.oz-badge-bi .oz-bi-en {
  font-size: 10px;
  opacity: 0.92;
}
.oz-table th .oz-bi,
.oz-kv dt .oz-bi {
  gap: 1px;
}
.oz-bi-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oz-bi-block > .oz-bi-en {
  font-size: 12px;
  color: var(--oz-muted);
}
.oz-bi-heading {
  margin-bottom: 16px;
}
.oz-form-group label .oz-bi {
  margin-bottom: 2px;
}
.oz-error { color: var(--oz-danger); font-size: 13px; margin-top: 4px; }
.oz-input-invalid,
input.oz-input-invalid,
select.oz-input-invalid,
textarea.oz-input-invalid {
  border-color: var(--oz-danger);
  background: #fff8f7;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}
.oz-field-error {
  color: var(--oz-danger);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 10px;
  line-height: 1.45;
}
.oz-flash-modal-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 16px 18px;
  text-align: left;
}
.oz-flash-modal-list li + li { margin-top: 8px; }

.oz-date-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.oz-date-picker-wrap {
  position: relative;
}
.oz-date-trigger {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  background: #fff;
  color: var(--oz-text);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 10px 42px 10px 12px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.oz-date-trigger.is-placeholder {
  color: #9aa8b6;
  font-weight: 500;
}
.oz-date-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.oz-date-trigger:active {
  background: #f7fafc;
}
input.oz-date-native-hidden.oz-input-invalid + .oz-date-picker-wrap .oz-date-trigger {
  border-color: var(--oz-danger);
  background: #fff8f7;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}
.oz-date-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.oz-date-panel.is-open {
  display: flex;
}
body.oz-date-panel-open {
  overflow: hidden;
}
.oz-date-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: oz-date-fade-in .2s ease;
}
.oz-date-panel-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(11, 79, 138, 0.16);
  animation: oz-date-slide-up .28s ease;
}
.oz-date-panel-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d8e2ec;
  margin: 10px auto 0;
}
.oz-date-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
}
.oz-date-panel-toolbar strong {
  font-size: 16px;
  color: var(--oz-text);
}
.oz-date-panel-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--oz-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@keyframes oz-date-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes oz-date-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.oz-date-picker {
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #fff;
}
.oz-date-picker-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.28), transparent 42%),
    linear-gradient(135deg, #083a66 0%, #0b4f8a 58%, #14639f 100%);
}
.oz-date-picker-hero.is-empty {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 92px;
  justify-content: center;
}
.oz-date-picker-hero-day {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.oz-date-picker-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oz-date-picker-hero-meta strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
.oz-date-picker-hero-meta span {
  font-size: 14px;
  opacity: .88;
}
.oz-date-picker-hero-label {
  font-size: 18px;
  font-weight: 700;
}
.oz-date-picker-hero-sub {
  font-size: 13px;
  opacity: .82;
}
.oz-date-picker-body {
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}
.oz-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.oz-date-picker-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--oz-text);
  letter-spacing: .03em;
}
.oz-date-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--oz-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #d8e6f2;
  transition: transform .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.oz-date-nav svg {
  width: 18px;
  height: 18px;
}
.oz-date-nav:not(:disabled):active {
  transform: scale(0.94);
  background: #e3eef8;
}
.oz-date-nav:disabled {
  opacity: .32;
  cursor: not-allowed;
}
.oz-date-weekdays,
.oz-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.oz-date-weekdays {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
}
.oz-date-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--oz-muted);
  padding: 2px 0;
}
.oz-date-weekday.is-weekend {
  color: #b07a56;
}
.oz-date-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--oz-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.oz-date-cell-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.oz-date-cell.is-outside {
  color: #b8c4d0;
}
.oz-date-cell:not(.is-disabled):not(.is-selected):active {
  transform: scale(0.92);
  background: rgba(11, 79, 138, 0.08);
}
.oz-date-cell.is-disabled,
.oz-date-cell.is-disabled.is-outside {
  color: #c7d0da;
  background: #f5f8fb;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #edf2f7;
}
.oz-date-cell.is-today:not(.is-selected) .oz-date-cell-num::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--oz-accent);
}
.oz-date-cell.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px rgba(11, 79, 138, 0.28);
  background: rgba(11, 79, 138, 0.04);
}
.oz-date-cell.is-selected {
  background: linear-gradient(180deg, #0f5a9c 0%, var(--oz-primary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 79, 138, 0.24);
}
.oz-date-cell.is-selected.is-disabled {
  background: #f5f8fb;
  color: #c7d0da;
  box-shadow: inset 0 0 0 1px #edf2f7;
}
.oz-date-picker-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e7edf3;
  font-size: 12px;
  color: var(--oz-muted);
}
.oz-date-picker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.oz-date-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.oz-date-legend-dot.is-today {
  background: var(--oz-accent);
  box-shadow: inset 0 0 0 1.5px rgba(11, 79, 138, 0.25);
}
.oz-date-legend-dot.is-disabled {
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px #dbe3ea;
}
.oz-login-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--oz-text); cursor: pointer; }
.oz-login-check input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.oz-login-check .oz-bi { gap: 1px; }
.oz-login-page .oz-bi-heading { margin-bottom: 16px; }
.oz-login-links {
  font-size: 14px;
  line-height: 1.6;
}
.oz-search-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.oz-search-bar input,
.oz-search-bar select {
  flex: 1 1 160px;
  width: auto;
  min-width: 140px;
  max-width: 280px;
  min-height: 40px;
  background: #f7fafc;
}
.oz-search-bar .oz-btn {
  flex: 0 0 auto;
  width: auto;
  margin-left: 0;
}
.oz-search-bar .oz-multi-select {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 280px;
}
.oz-search-bar .oz-filter-segment-wrap {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  background: #f7fafc;
}
.oz-search-bar .oz-filter-segment-title {
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--oz-muted);
  white-space: nowrap;
  border-right: 1px solid var(--oz-line);
}
.oz-search-bar .oz-filter-segment {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
}
.oz-search-bar .oz-filter-segment-item {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.oz-search-bar .oz-filter-segment-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.oz-search-bar .oz-filter-segment-item span {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  color: var(--oz-text);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.oz-search-bar .oz-filter-segment-item:hover span {
  background: rgba(255, 255, 255, .72);
}
.oz-search-bar .oz-filter-segment-item:has(input:checked) span {
  background: #fff;
  color: var(--oz-primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.oz-multi-select { position: relative; }
.oz-multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  background: #f7fafc;
  color: var(--oz-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oz-multi-select-trigger::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #7f8c8d;
  flex-shrink: 0;
}
.oz-multi-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  max-height: 260px;
  overflow: auto;
  padding: 6px 0;
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.oz-multi-select.open .oz-multi-select-panel { display: block; }
.oz-multi-select-option-all {
  font-weight: 600;
  border-bottom: 1px solid var(--oz-line);
  margin-bottom: 2px;
}
.oz-multi-select-empty {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--oz-muted);
}
.oz-multi-select-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.oz-multi-select-option:hover { background: #f7fafc; }
.oz-search-bar .oz-multi-select input[type=checkbox] {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 2px 0 0;
  background: transparent;
}
.oz-multi-select-option-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.oz-import-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.oz-import-hint { margin: 0; line-height: 1.6; }
.oz-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.oz-import-actions .oz-btn {
  flex: 0 0 auto;
  width: auto;
  margin-left: 0;
}
.oz-import-actions input[type=file] {
  width: auto;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 100%;
  min-height: 40px;
}
.oz-staff .oz-filters input,
.oz-staff .oz-filters select {
  min-height: 40px;
  background: #f7fafc;
}
.oz-table th.oz-check, .oz-table td.oz-check { width: 36px; text-align: center; }
.oz-table input[type=checkbox] { width: auto; margin: 0; }
.oz-batch-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.oz-batch-bar-active {
  padding: 8px 10px;
  border-radius: 10px;
  background: #eaf2fb;
  border: 1px solid #c5d9f2;
}
.oz-table tr.oz-row-selected { background: #f3f8fd; }
.oz-error { color: var(--oz-danger); font-size: 13px; margin-top: 4px; }
.oz-radio-row, .oz-check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.oz-chip {
  border: 1px solid var(--oz-line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff;
}
.oz-chip input { margin-right: 6px; }
.oz-chip:has(input:checked) { border-color: var(--oz-primary); background: rgba(11,79,138,.08); }

.oz-tip {
  background: #fff8e8;
  border: 1px solid #f0d48a;
  color: #7a5b00;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.oz-tip strong { display: block; margin-bottom: 4px; color: #9a7b0a; }
.oz-alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.oz-alert-success { background: #e8f8f0; color: #146c43; }
.oz-alert-error { background: #fdecea; color: #922b21; }
.oz-alert-info { background: #eaf2fb; color: #1a5276; }
.oz-alert-warning { background: #fff8e6; color: #7d5a00; }

.oz-table-wrap { overflow-x: auto; }
table.oz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oz-table th, .oz-table td { padding: 10px 8px; border-bottom: 1px solid var(--oz-line); text-align: left; white-space: nowrap; }
.oz-table th { color: var(--oz-muted); font-weight: 600; background: #f8fbfe; }
.oz-table tr.oz-row-overstay td,
.oz-table tr.oz-row-disabled td { background: #fdecea; }

.oz-badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.oz-badge-warning { background: #fdebd0; color: #9a7b0a; }
.oz-badge-danger { background: #fadbd8; color: #922b21; }
.oz-badge-info { background: #d6eaf8; color: #1a5276; }
.oz-badge-primary { background: #d4e6f1; color: #0b4f8a; }
.oz-badge-success { background: #d5f5e3; color: #146c43; }
.oz-badge-muted { background: #eaecee; color: #566573; }
.oz-badge-teal { background: #ccfbf1; color: #0f766e; }
.oz-badge-orange { background: #ffedd5; color: #c2410c; }
.oz-badge-slate { background: #e2e8f0; color: #475569; }
.oz-badge-emerald { background: #bbf7d0; color: #15803d; }
.oz-badge-purple { background: #f3e8ff; color: #7e22ce; }
.oz-badge-rose { background: #ffe4e6; color: #be123c; }
.oz-badge-indigo { background: #e0e7ff; color: #4338ca; }

.oz-staff { min-height: 100vh; display: flex; background: var(--oz-bg); }
.oz-sidebar {
  width: 230px; background: #072c4d; color: #d6e4f0; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto; flex-shrink: 0;
}
.oz-sidebar a.oz-nav-link { display: block; color: #d6e4f0; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; text-decoration: none; }
.oz-sidebar a.oz-nav-link.active, .oz-sidebar a.oz-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.oz-sidebar .oz-brand { padding: 6px 8px 18px; }
.oz-sidebar .oz-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.oz-sidebar .oz-brand .oz-bi-en {
  color: rgba(214, 228, 240, 0.72);
  font-size: 11px;
  font-weight: 500;
}
.oz-sidebar .oz-brand-role {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.88;
}
.oz-sidebar .oz-brand-role .oz-bi-en {
  font-size: 10px;
  opacity: 0.85;
}
.oz-nav-bi .oz-bi-zh { line-height: 1.3; }
.oz-sidebar .oz-nav-bi .oz-bi-en {
  color: rgba(214, 228, 240, 0.68);
  font-size: 10px;
}
.oz-sidebar a.oz-nav-link.active .oz-nav-bi .oz-bi-en,
.oz-sidebar a.oz-nav-link:hover .oz-nav-bi .oz-bi-en {
  color: rgba(255, 255, 255, 0.72);
}
.oz-sidebar .oz-nav-btn .oz-nav-bi {
  align-items: flex-start;
  width: 100%;
}
.oz-sidebar .oz-nav-btn .oz-bi-en {
  color: rgba(26, 90, 140, 0.75);
  font-size: 10px;
}
.oz-bottom-nav a.oz-nav-link {
  flex: 1;
  text-align: center;
  padding: 8px 4px 10px;
  font-size: 12px;
  color: var(--oz-muted);
  text-decoration: none;
}
.oz-bottom-nav a.oz-nav-link.active { color: var(--oz-primary); font-weight: 700; }
.oz-bottom-nav .oz-nav-bi {
  align-items: center;
  width: 100%;
}
.oz-bottom-nav .oz-nav-bi .oz-bi-en {
  font-size: 9px;
  color: #9aa8b6;
}
.oz-bottom-nav a.oz-nav-link.active .oz-nav-bi .oz-bi-en {
  color: var(--oz-primary);
  opacity: 0.75;
}
.oz-nav-bi-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.oz-nav-bi-inline .oz-bi-en {
  font-size: 11px;
  font-weight: 500;
}
.oz-nav-btn-link {
  height: auto;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.oz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oz-topbar { background: #fff; color: var(--oz-text); border-bottom: 1px solid var(--oz-line); }
.oz-topbar .oz-brand { color: var(--oz-primary); }
.oz-content { padding: 18px 18px 84px; }
.oz-user { font-size: 13px; color: var(--oz-muted); display: flex; align-items: center; gap: 10px; }
.oz-user form { margin: 0; }
.oz-user .oz-btn { width: auto; flex-shrink: 0; }

.oz-bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
  border-top: 1px solid var(--oz-line); z-index: 20;
}

.oz-notice { white-space: pre-wrap; line-height: 1.8; background: #f8fbfe; padding: 16px; border-radius: 12px; }
.oz-entry-notice { font-size: 14px; line-height: 1.75; }
.oz-qr { display: grid; place-items: center; padding: 12px; }
.oz-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.oz-filters > * { min-width: 0; }
.oz-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.oz-filter-actions form { margin: 0; }
.oz-appointment-delete-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.oz-appointment-delete-filters input[type=date] {
  min-height: 40px;
  min-width: 0;
  flex: 0 1 160px;
  background: #f7fafc;
}
.oz-appointment-delete-filters select {
  min-height: 40px;
  min-width: 220px;
  flex: 0 1 280px;
  max-width: 100%;
  background: #f7fafc;
}
.oz-appointment-delete-filters .oz-btn {
  flex: 0 0 auto;
  min-height: 40px;
  margin-left: auto;
}
.oz-filter-fold { margin: 0 0 12px; }
.oz-filter-fold > summary { display: none; }
.oz-filter-fold .oz-filter-statuses { margin: 0; }
@media (min-width: 901px) {
  .oz-filter-fold .oz-filter-statuses {
    display: flex;
  }
}
.oz-filter-statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
}
.oz-filter-statuses .oz-chip { padding: 5px 12px; font-size: 13px; }
.oz-filter-statuses .oz-chip input { width: auto; min-height: 0; margin: 0 4px 0 0; }
.oz-filter-statuses .oz-chip-all {
  font-weight: 600;
  color: var(--oz-primary);
  border-color: #9ec4de;
  background: #e8f2fa;
}
.oz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.oz-actions .oz-btn { margin-left: 0; }
.oz-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; }
.oz-kv dt { color: var(--oz-muted); }
.oz-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.oz-detail-page .oz-toolbar { flex-wrap: nowrap; }
.oz-detail-page .oz-toolbar h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oz-detail-page .oz-toolbar .oz-badge { flex-shrink: 0; }
.oz-detail-page .oz-actions > form { width: 100%; }
.oz-reject-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.oz-reject-box .oz-form-group { margin-bottom: 8px; }
.oz-reject-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.oz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.oz-stat { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--oz-shadow); }
.oz-stat span { display: block; font-size: 13px; line-height: 1.4; color: var(--oz-muted); }
.oz-stat b { display: block; font-size: 26px; color: var(--oz-primary); margin-top: 4px; }
.oz-hidden { display: none !important; }
.oz-suggest { border: 1px solid var(--oz-line); border-radius: 10px; background: #fff; max-height: 220px; overflow: auto; }
.oz-suggest div { padding: 8px 12px; cursor: pointer; }
.oz-suggest div:hover { background: #eef3f8; }
.oz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oz-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.oz-form-grid-2 > .oz-form-group { margin-bottom: 14px; }
.oz-form-grid-2 > .oz-form-section,
.oz-form-grid-2 > .oz-form-group-span-2 { grid-column: 1 / -1; }
.oz-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.oz-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.oz-pager {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--oz-muted);
}
.oz-pager-meta b { color: var(--oz-text); }
.oz-pager-size { display: flex; align-items: center; gap: 6px; }
.oz-pager-size a, .oz-pager-size span {
  min-width: 32px; text-align: center; padding: 4px 8px; border-radius: 8px;
  background: #fff; border: 1px solid var(--oz-line); color: var(--oz-text);
}
.oz-pager-size span:not(.is-active) { border: 0; background: transparent; padding: 0; min-width: 0; color: var(--oz-muted); }
.oz-pager-size .is-active { background: var(--oz-primary); color: #fff; border-color: var(--oz-primary); }
.oz-pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.oz-pagination a, .oz-pagination span {
  padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--oz-line); color: var(--oz-text);
}
.oz-pagination span:not(.is-active) { color: var(--oz-muted); background: #f6f8fb; }
.oz-pagination .is-active { background: var(--oz-primary); color: #fff; border-color: var(--oz-primary); }
.oz-pager-jump { display: flex; align-items: center; gap: 6px; }
.oz-pager-jump input[type="number"] { width: 64px; }
.oz-scan-stage {
  position: relative;
}
.oz-scan-viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.oz-scan-overlay {
  --oz-frame-x: 50%;
  --oz-frame-y: 30%;
  --oz-frame-size: 260px;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.oz-scan-stage.is-scanning .oz-scan-overlay.is-aligned,
.oz-scan-stage.is-success .oz-scan-overlay {
  opacity: 1;
}
.oz-scan-shade {
  position: absolute;
  background: rgba(0, 0, 0, 0.68);
  transition: background 0.25s ease;
}
.oz-scan-shade-top {
  top: 0;
  left: 0;
  right: 0;
  height: max(0px, calc(var(--oz-frame-y) - var(--oz-frame-size) / 2));
}
.oz-scan-shade-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--oz-frame-y) + var(--oz-frame-size) / 2);
}
.oz-scan-shade-left {
  left: 0;
  width: max(0px, calc(var(--oz-frame-x) - var(--oz-frame-size) / 2));
  top: calc(var(--oz-frame-y) - var(--oz-frame-size) / 2);
  height: var(--oz-frame-size);
}
.oz-scan-shade-right {
  right: 0;
  left: calc(var(--oz-frame-x) + var(--oz-frame-size) / 2);
  top: calc(var(--oz-frame-y) - var(--oz-frame-size) / 2);
  height: var(--oz-frame-size);
}
.oz-scan-frame {
  position: absolute;
  left: var(--oz-frame-x);
  top: var(--oz-frame-y);
  width: var(--oz-frame-size);
  height: var(--oz-frame-size);
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.oz-scan-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #fff;
  border-style: solid;
  border-width: 0;
}
.oz-scan-corner-tl { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; }
.oz-scan-corner-tr { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; }
.oz-scan-corner-bl { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; }
.oz-scan-corner-br { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; }
.oz-scan-line {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2) 10%, #43a047 50%, rgba(76, 175, 80, 0.2) 90%, transparent);
  box-shadow: 0 0 10px rgba(67, 160, 71, 0.75);
  animation: oz-scan-sweep 2s linear infinite;
}
@keyframes oz-scan-sweep {
  0% { top: 8%; opacity: 0.55; }
  50% { top: 92%; opacity: 1; }
  100% { top: 8%; opacity: 0.55; }
}
.oz-scan-hint {
  position: absolute;
  left: var(--oz-frame-x);
  top: calc(var(--oz-frame-y) + var(--oz-frame-size) / 2 + 14px);
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}
.oz-scan-success-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.94);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.oz-scan-success-badge svg {
  width: 38px;
  height: 38px;
}
.oz-scan-stage.is-success .oz-scan-line,
.oz-scan-stage.is-success .oz-scan-hint {
  opacity: 0;
}
.oz-scan-stage.is-success .oz-scan-shade {
  background: rgba(0, 0, 0, 0.64);
}
.oz-scan-stage.is-success .oz-scan-corner {
  border-color: #a5d6a7;
  transition: border-color 0.25s ease;
}
.oz-scan-stage.is-success .oz-scan-frame {
  box-shadow: inset 0 0 0 2px rgba(129, 199, 132, 0.75);
}
.oz-scan-stage.is-success .oz-scan-success-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.oz-scan-stage.is-success .oz-scan-stop {
  visibility: hidden;
}
.oz-scan-box { border: 2px dashed var(--oz-line); border-radius: 16px; min-height: 240px; overflow: hidden; background: #111; }
.oz-scan-box.is-active { background: #000; min-height: 260px; }
.oz-scan-box.is-idle {
  min-height: 200px;
  background: #f7fafc;
  border-style: solid;
  border-color: #e3eaf1;
}
.oz-scan-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.96);
  color: var(--oz-primary);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oz-scan-start svg {
  width: 44px;
  height: 44px;
  opacity: 0.88;
}
.oz-scan-start:active {
  background: rgba(11, 79, 138, 0.06);
}
.oz-scan-stage.is-scanning .oz-scan-start {
  display: none;
}
.oz-scan-stop {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #eef4fa;
  color: var(--oz-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oz-scan-stop:active {
  background: #e3eef8;
}
.oz-scan-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--oz-muted);
}
.oz-scan-status.is-error { color: var(--oz-danger); }
.oz-scan-status.is-ok { color: #2e7d32; }
.oz-guard-hint-touch { display: none; }
.oz-guard-touch-only { display: none; }
.oz-guard-scan-layout .oz-guard-manual-form { margin-top: 4px; }
.oz-guard-scan-layout #tokenInput { font-size: 16px; min-height: 48px; }
.oz-guard-camera-title {
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 14px;
}
@media (pointer: coarse) {
  .oz-guard-hint-desktop { display: none; }
  .oz-guard-hint-touch { display: block; }
  .oz-guard-touch-only { display: block; }
  .oz-guard-scan-layout {
    display: flex;
    flex-direction: column;
  }
  .oz-guard-scan-layout .oz-guard-manual-form {
    order: 2;
    margin-top: 12px;
  }
  .oz-guard-scan-layout .oz-guard-camera-wrap {
    order: 1;
  }
  .oz-scan-hint { font-size: 15px; }
}
#reader { width: 100%; max-width: 100%; min-height: 220px; }
#reader video, #reader canvas, #reader img,
.oz-scan-box video, .oz-scan-box canvas, .oz-scan-box img {
  max-width: 100% !important;
  width: 100% !important;
  min-height: 200px !important;
  height: auto !important;
  object-fit: cover;
  background: #000;
}
#reader__scan_region { min-height: 200px; background: #000 !important; }
#reader__scan_region, #reader__dashboard, #reader__dashboard_section {
  max-width: 100% !important;
}
#reader__dashboard_section_csr span,
#reader__header_message { word-break: break-word; }
.oz-guard-scan-layout #reader__dashboard,
.oz-guard-scan-layout #reader__header_message {
  display: none !important;
}
.oz-guard-scan-layout .oz-scan-box.is-active {
  min-height: 0;
  line-height: 0;
}
.oz-guard-scan-layout .oz-scan-stage.is-scanning .oz-scan-viewport,
.oz-guard-scan-layout .oz-scan-stage.is-success .oz-scan-viewport {
  min-height: 0;
}

.oz-guard-page { max-width: 620px; margin: 0 auto; }
.oz-guard-page h2 { margin: 0 0 14px; word-break: break-word; font-size: 30px; line-height: 1.3; }
.oz-guard-result h2 { font-size: 34px; margin-bottom: 18px; font-weight: 700; }
.oz-guard-notice {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  padding: 18px 16px;
  border-radius: 14px;
  margin: 0 0 20px;
  letter-spacing: .02em;
}
.oz-guard-notice-ok {
  font-size: 20px;
  font-weight: 600;
  padding: 14px 16px;
  background: #f4fbf7;
  color: #4a8f6a;
  border: 1px solid #d4ebe0;
  box-shadow: none;
}
.oz-guard-notice-info {
  background: #eaf2fb;
  color: #154360;
  border: 2px solid #85c1e9;
  box-shadow: 0 4px 16px rgba(36, 113, 163, .12);
}
.oz-guard-notice-error {
  background: #fdecea;
  color: #922b21;
  border: 2px solid #f1948a;
  box-shadow: 0 4px 16px rgba(192, 57, 43, .12);
}
.oz-modal-card.oz-modal-prominent h2 {
  font-size: 24px;
  margin: 0 0 4px;
}
.oz-modal-card.oz-modal-prominent .oz-flash-modal-message {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 20px;
  padding: 16px 18px;
}
.oz-modal-card.oz-modal-prominent .oz-btn {
  min-height: 52px;
  font-size: 18px;
}
.oz-guard-result .oz-kv,
.oz-guard-result .oz-guard-kv {
  grid-template-columns: 7.5em 1fr;
  gap: 12px 16px;
  margin: 0 0 22px;
  align-items: start;
  font-size: 20px;
}
.oz-guard-result .oz-kv dt,
.oz-guard-result .oz-guard-kv dt {
  line-height: 1.55;
  font-size: 18px;
  color: var(--oz-muted);
}
.oz-guard-result .oz-kv dd,
.oz-guard-result .oz-guard-kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
}
.oz-guard-result .oz-kv dd .oz-badge {
  font-size: 17px;
  padding: 5px 12px;
}
.oz-guard-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oz-guard-actions form { margin: 0; }
.oz-guard-actions .oz-btn,
.oz-guard-actions a.oz-btn {
  width: 100%;
  margin-left: 0;
}
.oz-guard-actions .oz-btn-lg {
  min-height: 56px;
  font-size: 20px;
}
.oz-staff-guard .oz-guard-page .oz-muted {
  font-size: 17px;
  line-height: 1.5;
}
.oz-staff-guard .oz-guard-scan-layout h2 {
  font-size: 28px;
}
.oz-staff-guard .oz-guard-scan-layout label {
  font-size: 17px;
}
.oz-staff-guard .oz-guard-scan-layout .oz-btn-lg {
  min-height: 54px;
  font-size: 19px;
}
.oz-footer { text-align: center; opacity: .75; padding: 24px 0 12px; font-size: 12px; color: var(--oz-muted); }
.oz-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 40; padding: 16px;
}
.oz-modal.show { display: grid; }
.oz-modal-card { background: #fff; border-radius: 16px; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; padding: 20px; }
.oz-confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.oz-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.oz-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.oz-exit-photo-picker { margin-bottom: 12px; }
.oz-exit-photo-hint { margin: 4px 0 0; }
.oz-exit-photo-list {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.oz-exit-photo-item {
  position: relative; width: 100px; height: 100px; flex-shrink: 0;
}
.oz-exit-photo-item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--oz-line); display: block;
}
.oz-exit-photo-remove {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: #c0392b; color: #fff; font-size: 14px; line-height: 22px;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.oz-exit-photo-add {
  width: 100px; height: 100px; flex-shrink: 0;
  border: 2px dashed var(--oz-line); border-radius: 10px;
  background: #f8fbfe; color: var(--oz-muted); font-size: 28px;
  cursor: pointer; display: grid; place-items: center;
}
.oz-exit-photo-add:disabled { opacity: .45; cursor: not-allowed; }

.oz-record-list { display: flex; flex-direction: column; gap: 12px; }
.oz-record-card {
  border: 1px solid var(--oz-line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcfe;
}
.oz-record-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.oz-record-card-top .oz-badge { flex-shrink: 0; text-align: center; }
.oz-record-card-date { font-size: 16px; font-weight: 700; }
.oz-record-page { min-width: 0; overflow: hidden; }
.oz-record-filters {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.oz-record-filters > * { min-width: 0; }
.oz-record-filters .oz-btn {
  width: auto;
  min-width: 88px;
  min-height: 40px;
  margin-left: 0;
}
.oz-filter-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.oz-filter-dates > .oz-form-group { min-width: 0; overflow: hidden; }
.oz-filter-dates input { min-width: 0; width: 100%; max-width: 100%; }
.oz-record-filter-phone,
.oz-record-filter-date,
.oz-record-filter-submit { margin-bottom: 0; }
.oz-record-filter-dates { width: 100%; max-width: 100%; }
.oz-record-filter-date label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.oz-record-filter-date input[type=date] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.oz-record-card-body { display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.oz-record-card-body div {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oz-record-card-body span { color: var(--oz-muted); }
.oz-record-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.oz-record-card-actions .oz-btn {
  margin-left: 0;
  flex: 1 1 calc(50% - 8px);
  min-height: 36px;
  font-weight: 500;
}
.oz-record-card-actions form { flex: 1 1 calc(50% - 8px); margin: 0; }
.oz-record-card-actions form .oz-btn { width: 100%; }

.oz-detail-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 0;
  font-size: 14px;
  align-items: start;
}
.oz-detail-kv dt {
  color: var(--oz-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--oz-line);
  white-space: nowrap;
}
.oz-detail-kv dt::after { content: "："; }
.oz-detail-kv dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
  padding: 8px 0;
  border-bottom: 1px solid var(--oz-line);
}
.oz-follower-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.oz-follower-item {
  border: 1px solid var(--oz-line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfe;
  font-size: 14px;
}
.oz-follower-item b { display: block; margin-bottom: 6px; }
.oz-empty { text-align: center; color: var(--oz-muted); padding: 28px 8px; }
.oz-card .oz-toolbar h2 { margin: 0; min-width: 0; }
.oz-record-page .oz-toolbar {
  flex-wrap: nowrap;
  align-items: center;
}
.oz-record-page .oz-toolbar h2 { font-size: 18px; }
.oz-record-page .oz-toolbar .oz-btn {
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
}
.oz-card h3 { font-size: 16px; margin: 18px 0 8px; }

.oz-form-lead { margin: -6px 0 14px; color: var(--oz-muted); font-size: 13px; }
.oz-form-page .oz-hint {
  font-size: 11px;
  color: #9aa8b6;
  font-weight: 400;
  line-height: 1.45;
}
.oz-form-page input::placeholder,
.oz-form-page textarea::placeholder {
  font-size: 13px;
  color: #9aa8b6;
  opacity: 1;
}
.oz-form-section {
  margin: 0 0 14px;
  padding: 14px 14px 6px;
  background: #f7fafc;
  border: 1px solid var(--oz-line);
  border-radius: 14px;
}
.oz-form-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--oz-primary);
  font-weight: 700;
  letter-spacing: .04em;
}
.oz-form-page .oz-form-section:last-of-type { margin-bottom: 8px; }
.oz-form-page .oz-toolbar {
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 8px;
}
.oz-form-page .oz-toolbar h2 { font-size: 18px; }
.oz-form-page .oz-toolbar .oz-btn { width: auto; flex-shrink: 0; }
.oz-suggest-wrap { position: relative; }
.oz-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 8px);
  z-index: 12;
  box-shadow: var(--oz-shadow);
  border-radius: 10px;
}
.oz-suggest div { padding: 12px; min-height: 44px; display: flex; align-items: center; }
.oz-input-readonly { background: #eef3f8 !important; color: var(--oz-muted); }
.oz-chip-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oz-chip-group-2 { grid-template-columns: 1fr 1fr; }
.oz-form-page .oz-chip {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  border-radius: 12px;
  background: #fff;
}
.oz-form-page .oz-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.oz-form-page .oz-chip:has(input:checked) {
  border-color: var(--oz-primary);
  background: rgba(11,79,138,.1);
  color: var(--oz-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--oz-primary);
}
.oz-form-submit {
  display: grid;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding: 12px 0 max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18px);
  z-index: 6;
}
.oz-form-submit .oz-btn { min-height: 46px; margin-left: 0; }
.oz-form-page .oz-row-keep { min-width: 0; }
.oz-form-page .oz-row-keep > * { min-width: 0; }
.oz-form-page {
  min-width: 0;
  overflow: hidden;
}
.oz-form-page .oz-form-section {
  min-width: 0;
}
.oz-form-page .oz-form-group {
  min-width: 0;
}
.oz-follower-card {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.oz-follower-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.oz-follower-head b { font-size: 13px; font-weight: 600; color: var(--oz-muted); }
.oz-follower-no {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(11,79,138,.08);
  color: var(--oz-primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.oz-follower-fields { display: grid; gap: 6px; }
.oz-follower-fields .oz-form-group {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.oz-follower-fields label {
  margin: 0;
  font-size: 13px;
  color: var(--oz-muted);
  font-weight: 500;
}
.oz-follower-fields input,
.oz-follower-fields input[type=text],
.oz-follower-fields input[type=tel] {
  min-height: 36px;
  height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  border: 0;
  border-radius: 18px;
  background: #f3f6fa;
  color: var(--oz-text);
  box-shadow: inset 0 0 0 1px #e4ebf2;
}

/* Auth / password page polish */
.oz-guest-auth .oz-guest-header .oz-btn-primary { display: none; }
.oz-guest-auth { background: linear-gradient(180deg, #083a66 0 200px, #f3f6fa 200px); }
.oz-guest-auth .oz-guest-main { padding-top: 12px; }

.oz-auth-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 8px 0 32px;
}
.oz-auth-card {
  padding: 28px 26px 24px;
  box-shadow: 0 16px 40px rgba(11, 79, 138, 0.12);
}
.oz-label-inline {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}
.oz-bi-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.oz-bi-inline .oz-bi-en {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--oz-muted);
  line-height: inherit;
}
.oz-label-inline .oz-bi-inline .oz-bi-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--oz-muted);
}
.oz-login-check .oz-bi-inline .oz-bi-en {
  font-size: 14px;
  font-weight: 400;
}
.oz-auth-head {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--oz-line);
}
.oz-auth-head-compact { margin-bottom: 18px; }
.oz-auth-title {
  margin: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.oz-auth-title .oz-bi-zh { font-size: 20px; }
.oz-auth-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--oz-muted);
  line-height: 1.5;
}
.oz-auth-sub.oz-bi-block { margin-top: 10px; }
.oz-auth-form .oz-form-group:last-of-type { margin-bottom: 18px; }
.oz-auth-form .oz-form-group .oz-hint {
  margin-top: 6px;
  line-height: 1.45;
}
.oz-form-group-compact { margin-bottom: 8px; }
.oz-auth-form input:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
  outline: none;
}
.oz-auth-links {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--oz-line);
}
.oz-auth-links-sep { color: #c5d0db; margin: 0 4px; }
.oz-btn-save { min-height: 46px; font-size: 15px; border-radius: 12px; }

.oz-password-page {
  max-width: 520px;
  margin: 0 auto;
}

/* Approval list */
.oz-filters-approval-admin {
  grid-template-columns:
    minmax(128px, 0.9fr)
    minmax(128px, 0.9fr)
    minmax(108px, 1.1fr)
    minmax(108px, 1.1fr)
    minmax(96px, 1fr)
    minmax(96px, 1fr)
    auto;
  gap: 8px;
  align-items: center;
}
.oz-filters-approval-admin .oz-filter-submit {
  min-width: 88px;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}
.oz-approval-list-note {
  margin: 6px 0 18px;
}

/* Approval detail page */
.oz-approval-detail {
  padding: 0;
  overflow: hidden;
}
.oz-detail-header-compact {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--oz-line);
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}
.oz-detail-header-compact h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  color: var(--oz-primary);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oz-detail-back {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--oz-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.oz-detail-back:hover {
  color: var(--oz-primary);
}
.oz-detail-section-compact {
  padding: 16px 20px;
  border-bottom: 1px solid var(--oz-line);
}
.oz-detail-section-muted {
  background: #fafcfd;
}
.oz-detail-kv-dense {
  grid-template-columns: auto 1fr auto 1fr;
  column-gap: 12px 28px;
  row-gap: 6px;
  font-size: 14px;
}
.oz-detail-kv-dense dt,
.oz-detail-kv-dense dd {
  border-bottom: none;
}
.oz-detail-kv-dense dt {
  padding: 7px 0;
  white-space: nowrap;
  color: var(--oz-muted);
}
.oz-detail-kv-dense dt .oz-bi-inline {
  gap: 5px;
}
.oz-detail-kv-dense dt .oz-bi-inline .oz-bi-en {
  font-size: 12px;
  font-weight: 500;
  color: #9aa8b6;
}
.oz-detail-kv-dense dd {
  padding: 7px 0;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
}
.oz-detail-kv-dense dt::after {
  content: "";
}
.oz-detail-kv-dense .oz-detail-kv-span {
  grid-column: 2 / -1;
}
.oz-detail-highlight-danger {
  color: var(--oz-danger);
}
.oz-detail-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: flex-start;
}
.oz-detail-extra-block {
  flex: 1 1 200px;
  min-width: 0;
}
.oz-detail-extra-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--oz-muted);
  margin-bottom: 6px;
}
.oz-detail-extra-label .oz-bi-inline .oz-bi-en {
  font-size: 11px;
  font-weight: 500;
}
.oz-follower-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.oz-follower-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  font-size: 12px;
  color: var(--oz-text);
  border: 1px solid var(--oz-line);
}
.oz-photos-compact img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--oz-line);
}
.oz-detail-actions-compact {
  padding: 16px 20px 18px;
  background: #f8fbfe;
  border-top: 1px solid var(--oz-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oz-detail-actions-compact > form,
.oz-detail-actions-compact > span,
.oz-detail-actions-compact > .oz-approve-actions {
  width: 100%;
}
.oz-detail-actions-compact .oz-btn-block {
  min-height: 44px;
}
.oz-approve-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.oz-reject-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #f0d0cb;
  border-radius: 12px;
  background: #fff;
}
.oz-reject-panel label {
  display: block;
  margin: 0;
  font-size: 14px;
}
.oz-reject-panel input {
  min-height: 42px;
  margin: 0;
}
.oz-reject-panel .oz-btn {
  margin-top: 4px;
}
.oz-abort-inline textarea {
  min-height: 56px;
  margin-bottom: 6px;
  resize: vertical;
}
.oz-abort-inline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.oz-abort-inline-foot .oz-btn {
  min-height: 38px;
  white-space: nowrap;
}
.oz-detail-actions-compact input:focus,
.oz-detail-actions-compact textarea:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.1);
  outline: none;
}
/* Admin hover polish — buttons, sidebar, table rows, stat cards (medium) */
@media (prefers-reduced-motion: no-preference) {
  a.oz-btn, button.oz-btn, .oz-btn {
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  }
  a.oz-btn:hover:not(:disabled), button.oz-btn:hover:not(:disabled), .oz-btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }
  a.oz-btn.oz-btn-primary:hover:not(:disabled), button.oz-btn.oz-btn-primary:hover:not(:disabled) {
    background: var(--oz-primary-dark);
    box-shadow: 0 6px 18px rgba(11, 79, 138, .28);
  }
  a.oz-btn.oz-btn-ghost:hover:not(:disabled), button.oz-btn.oz-btn-ghost:hover:not(:disabled) {
    background: #b8d4eb;
    box-shadow: inset 0 0 0 1px #8eb8d8, 0 4px 12px rgba(11, 79, 138, .1);
  }
  a.oz-btn.oz-btn-accent:hover:not(:disabled), button.oz-btn.oz-btn-accent:hover:not(:disabled) {
    background: #edd9a8;
    box-shadow: inset 0 0 0 1px #dfc078, 0 4px 12px rgba(122, 91, 18, .12);
  }
  a.oz-btn.oz-btn-success:hover:not(:disabled), button.oz-btn.oz-btn-success:hover:not(:disabled) {
    background: #c8ecd9;
    box-shadow: inset 0 0 0 1px #a8dfc4, 0 4px 12px rgba(27, 138, 90, .12);
  }
  a.oz-btn.oz-btn-danger:hover:not(:disabled), button.oz-btn.oz-btn-danger:hover:not(:disabled) {
    background: #fad5d1;
    box-shadow: inset 0 0 0 1px #efb8b2, 0 4px 12px rgba(192, 57, 43, .12);
  }
  a.oz-btn.oz-btn-pass:hover:not(:disabled), button.oz-btn.oz-btn-pass:hover:not(:disabled) {
    box-shadow: inset 0 0 0 1px #a8dfc4, 0 4px 12px rgba(27, 138, 90, .12);
  }
  a.oz-btn.oz-btn-abort:hover:not(:disabled), button.oz-btn.oz-btn-abort:hover:not(:disabled) {
    box-shadow: inset 0 0 0 1px #efb8b2, 0 4px 12px rgba(192, 57, 43, .12);
  }
  a.oz-btn:not(.oz-btn-primary):not(.oz-btn-ghost):not(.oz-btn-accent):not(.oz-btn-success):not(.oz-btn-danger):not(.oz-btn-pass):not(.oz-btn-abort):hover:not(:disabled),
  button.oz-btn:not(.oz-btn-primary):not(.oz-btn-ghost):not(.oz-btn-accent):not(.oz-btn-success):not(.oz-btn-danger):not(.oz-btn-pass):not(.oz-btn-abort):hover:not(:disabled) {
    background: #c5e0f2;
    box-shadow: inset 0 0 0 1px #a8cce4, 0 4px 12px rgba(11, 79, 138, .1);
  }
  a.oz-btn:active:not(:disabled), button.oz-btn:active:not(:disabled), .oz-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }
  a.oz-btn.oz-btn-primary:active:not(:disabled), button.oz-btn.oz-btn-primary:active:not(:disabled) {
    background: var(--oz-primary-dark);
  }

  .oz-sidebar a.oz-nav-link {
    position: relative;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }
  .oz-sidebar a.oz-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    background: var(--oz-accent);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform .2s ease;
  }
  .oz-sidebar a.oz-nav-link:hover,
  .oz-sidebar a.oz-nav-link.active {
    padding-left: 16px;
  }
  .oz-sidebar a.oz-nav-link:hover::before,
  .oz-sidebar a.oz-nav-link.active::before {
    transform: scaleY(1);
  }

  .oz-table tr:has(td) td {
    transition: background .15s ease;
  }
  .oz-table tr:has(td):hover td {
    background: #eef3f8;
  }
  .oz-table tr.oz-row-overstay:has(td):hover td,
  .oz-table tr.oz-row-disabled:has(td):hover td {
    background: #f5d0cb;
  }
  .oz-table a {
    transition: color .15s ease;
  }
  .oz-table a:hover {
    color: var(--oz-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .oz-stat {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .oz-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(11, 79, 138, .14);
  }
  .oz-stat b {
    transition: transform .2s ease;
    transform-origin: left center;
  }
  .oz-stat:hover b {
    transform: scale(1.06);
  }
}

@media (max-width: 900px) {
  .oz-grid-3, .oz-row, .oz-form-grid-2 { grid-template-columns: 1fr; }
  .oz-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .oz-stat {
    padding: 10px 8px;
    border-radius: 10px;
  }
  .oz-stat span {
    font-size: 11px;
    line-height: 1.3;
  }
  .oz-stat b {
    font-size: 20px;
    margin-top: 2px;
  }
  .oz-sidebar { display: none; }
  .oz-bottom-nav { display: flex; }
  .oz-guest { background: linear-gradient(180deg, #083a66 0 168px, #f3f6fa 168px); }
  .oz-guest-header { padding: 12px; gap: 8px; }
  .oz-brand { min-width: 0; }
  .oz-brand span { font-size: 14px; }
  .oz-brand small { display: none; }
  .oz-guest-main { padding: 4px 12px 28px; overflow-x: hidden; }
  .oz-card { padding: 16px; min-width: 0; overflow: hidden; }
  .oz-kv { grid-template-columns: 1fr; }
  .oz-detail-page .oz-kv { grid-template-columns: 7em 1fr; align-items: start; }
  .oz-detail-page .oz-toolbar { flex-direction: row; align-items: center; }
  .oz-detail-page .oz-toolbar .oz-badge { align-self: center; }
  .oz-detail-page .oz-actions { align-items: stretch; }
  .oz-detail-page .oz-reject-box { width: 100%; }
  .oz-detail-page .oz-reject-box input { width: 100%; min-width: 0; }
  .oz-staff-guard { overflow-x: hidden; }
  .oz-staff-guard .oz-topbar {
    padding: 12px 16px;
    gap: 10px;
  }
  .oz-staff-guard .oz-topbar .oz-brand { min-width: 0; flex: 1; }
  .oz-staff-guard .oz-topbar .oz-brand .oz-brand-logo { width: 32px; height: 32px; flex-shrink: 0; }
  .oz-staff-guard .oz-topbar .oz-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 600;
  }
  .oz-staff-guard .oz-user { min-width: 0; flex-shrink: 0; gap: 8px; }
  .oz-staff-guard .oz-user span {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }
  .oz-staff-guard .oz-content {
    padding: 16px 16px 96px;
    overflow-x: hidden;
  }
  .oz-staff-guard .oz-card { overflow: hidden; padding: 22px 20px; }
  .oz-staff-guard .oz-scan-box { min-height: 220px; }
  .oz-content { padding: 14px 12px 96px; }
  .oz-topbar .oz-user { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .oz-topbar .oz-user .oz-btn { width: auto; min-height: 32px; }
  .oz-hero h1 { font-size: 22px; }
  .oz-filters { grid-template-columns: 1fr 1fr; gap: 8px; }
  .oz-filters .oz-btn { width: 100%; min-height: 40px; }
  .oz-auth-shell { padding: 0 0 24px; }
  .oz-auth-card { padding: 22px 18px 20px; }
  .oz-filters-approval-admin {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .oz-filters-approval-admin .oz-filter-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .oz-approval-list-note {
    margin-bottom: 14px;
  }
  .oz-detail-section-compact,
  .oz-detail-actions-compact,
  .oz-detail-header-compact {
    padding-left: 16px;
    padding-right: 16px;
  }
  .oz-detail-kv-dense {
    grid-template-columns: auto 1fr;
    row-gap: 4px;
  }
  .oz-detail-kv-dense .oz-detail-kv-span {
    grid-column: 2;
  }
  .oz-detail-kv-dense dt,
  .oz-detail-kv-dense dd {
    padding: 6px 0;
  }
  .oz-filter-dates { grid-template-columns: 1fr; }
  .oz-record-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }
  .oz-record-filters .oz-record-filter-phone {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .oz-record-filters .oz-record-filter-phone label {
    margin-bottom: 0;
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }
  .oz-record-filters .oz-record-filter-phone input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    min-height: 44px;
  }
  .oz-record-filters .oz-record-filter-dates {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }
  .oz-record-filters .oz-record-filter-date {
    min-width: 0;
    overflow: hidden;
  }
  .oz-record-filters .oz-record-filter-date label {
    margin-bottom: 4px;
    font-size: 12px;
  }
  .oz-record-filters .oz-record-filter-date input[type=date] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 4px;
    font-size: 16px;
  }
  .oz-record-filters .oz-record-filter-submit .oz-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .oz-record-page .oz-toolbar h2 {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .oz-filter-fold {
    border: 1px solid var(--oz-line);
    border-radius: 10px;
    background: #f7fafc;
    margin: 0 0 10px;
  }
  .oz-filter-fold > summary {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oz-text);
    cursor: pointer;
    list-style: none;
  }
  .oz-filter-fold > summary::-webkit-details-marker { display: none; }
  .oz-filter-fold[open] > summary { border-bottom: 1px solid var(--oz-line); }
  .oz-filter-fold .oz-filter-statuses {
    padding: 8px 10px 10px;
    gap: 6px;
  }
  .oz-filter-fold .oz-filter-statuses .oz-chip { padding: 4px 8px; font-size: 12px; }
  .oz-actions { flex-direction: column; }
  .oz-actions .oz-btn { width: 100%; margin-left: 0; min-height: 40px; font-weight: 500; }
  .oz-record-card-actions .oz-btn,
  .oz-record-card-actions form { flex: 1 1 calc(50% - 8px); }
  .oz-record-card-actions .oz-btn + .oz-btn { margin-left: 0; }
  .oz-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .oz-toolbar .oz-btn {
    width: auto;
    flex-shrink: 0;
  }
  .oz-toolbar .oz-search-bar {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
  }
  .oz-toolbar .oz-search-bar input,
  .oz-toolbar .oz-search-bar select {
    width: auto;
    min-width: 120px;
    max-width: 200px;
  }
  .oz-toolbar .oz-search-bar .oz-btn { width: auto; }
  .oz-toolbar .oz-search-bar .oz-filter-segment-wrap {
    flex: 1 1 100%;
    width: 100%;
  }
  .oz-toolbar .oz-search-bar .oz-filter-segment {
    flex: 1;
    justify-content: space-between;
  }
  .oz-toolbar .oz-search-bar .oz-filter-segment-item {
    flex: 1;
    text-align: center;
  }
  .oz-import-actions .oz-btn { width: auto; min-height: 36px; }
  .oz-import-actions input[type=file] {
    width: auto;
    max-width: 100%;
  }
  .oz-toolbar .oz-badge { align-self: center; }
  .oz-pager { flex-direction: column; align-items: stretch; }
  .oz-pagination { justify-content: flex-start; }
  .oz-actions .oz-btn + .oz-btn { margin-left: 0; }
  input:not([type]),
  input[type=text], input[type=password], input[type=date],
  input[type=number], input[type=tel], input[type=email], select, textarea {
    font-size: 16px;
  }
  .oz-form-page .oz-row-keep { grid-template-columns: 1fr 1fr; }
  .oz-form-page .oz-toolbar { flex-direction: row; align-items: center; }
  .oz-form-page .oz-toolbar .oz-btn { width: auto; min-height: 34px; }
  .oz-record-page .oz-toolbar { flex-direction: row; align-items: center; }
  .oz-record-page .oz-toolbar .oz-btn { width: auto; min-height: 32px; padding: 6px 12px; }
  .oz-form-page { padding: 14px 10px 6px; }
  .oz-form-page .oz-form-section { padding: 12px 10px 4px; }
  .oz-form-page .oz-form-group { margin-bottom: 12px; }
  .oz-form-page input:not([type]),
  .oz-form-page input:not([type=hidden]):not([type=radio]),
  .oz-form-page textarea, .oz-form-page select { min-height: 44px; }
  input[type=date] {
    padding: 10px 6px;
    font-size: 16px;
  }
  .oz-form-page textarea { min-height: 96px; }
  .oz-form-page input::placeholder,
  .oz-form-page textarea::placeholder {
    font-size: 13px;
    color: #9aa8b6;
  }
  .oz-follower-fields .oz-form-group { margin: 0; }
  .oz-follower-fields input,
  .oz-follower-fields input[type=text],
  .oz-follower-fields input[type=tel] {
    min-height: 36px;
    height: 36px;
    font-size: 16px;
  }
  .oz-guest-form .oz-guest-header .oz-btn-primary { display: none; }
  .oz-guest-form { background: linear-gradient(180deg, #083a66 0 92px, #f3f6fa 92px); }
  .oz-guest-form .oz-guest-main { padding: 0 10px 20px; }
  .oz-date-picker { border-radius: 20px; }
  .oz-date-picker-hero { padding: 20px 18px 22px; }
  .oz-date-picker-hero-day {
    width: 68px;
    height: 68px;
    font-size: 36px;
  }
  .oz-date-picker-body { padding: 16px 10px 14px; }
  .oz-date-weekdays,
  .oz-date-grid { gap: 5px; }
  .oz-date-cell {
    min-height: 42px;
    font-size: 16px;
    border-radius: 13px;
  }
  .oz-date-nav {
    width: 42px;
    height: 42px;
  }
}

/* Guard: 10.2" tablet portrait (~600–900px) — large kiosk text */
@media (min-width: 600px) and (max-width: 900px) {
  .oz-guard-result .oz-kv,
  .oz-guard-result .oz-guard-kv {
    grid-template-columns: 8em 1fr;
    gap: 14px 18px;
    font-size: 21px;
  }
  .oz-guard-result .oz-kv dt,
  .oz-guard-result .oz-guard-kv dt { font-size: 20px; }
  .oz-guard-result .oz-kv dd,
  .oz-guard-result .oz-guard-kv dd { font-size: 24px; }
  .oz-guard-result .oz-kv dd .oz-badge { font-size: 18px; padding: 6px 14px; }
  .oz-guard-notice { font-size: 26px; padding: 18px 16px; margin-bottom: 20px; }
  .oz-guard-notice-ok { font-size: 22px; padding: 14px 16px; }
  .oz-guard-page h2 { font-size: 32px; }
  .oz-guard-result h2 { font-size: 38px; margin-bottom: 20px; }
  .oz-guard-actions .oz-btn-lg { min-height: 60px; font-size: 22px; }
  .oz-modal-card.oz-modal-prominent .oz-flash-modal-message { font-size: 20px; padding: 16px 14px; }
  .oz-staff-guard .oz-guard-page .oz-muted { font-size: 18px; }
  .oz-staff-guard .oz-guard-scan-layout h2 { font-size: 30px; }
  .oz-staff-guard .oz-guard-scan-layout label { font-size: 18px; }
  .oz-staff-guard .oz-guard-scan-layout #tokenInput { font-size: 18px; min-height: 52px; }
  .oz-staff-guard .oz-guard-scan-layout .oz-btn-lg { min-height: 56px; font-size: 20px; }
  .oz-staff-guard .oz-guard-camera-title { font-size: 18px; margin-top: 18px; }
  .oz-staff-guard .oz-scan-status { font-size: 17px; }
  .oz-staff-guard .oz-scan-hint { font-size: 16px; }
}

/* Guard: phone (<600px) — readable but compact, label and value on one row */
@media (max-width: 599px) {
  .oz-guard-result .oz-kv,
  .oz-guard-result .oz-guard-kv {
    grid-template-columns: 5.8em 1fr;
    gap: 8px 12px;
    font-size: 16px;
    margin-bottom: 18px;
    align-items: start;
  }
  .oz-guard-result .oz-kv dt,
  .oz-guard-result .oz-guard-kv dt {
    font-size: 14px;
    margin-top: 0;
  }
  .oz-guard-result .oz-kv dd,
  .oz-guard-result .oz-guard-kv dd { font-size: 17px; }
  .oz-guard-result .oz-kv dd .oz-badge { font-size: 13px; padding: 4px 10px; }
  .oz-guard-notice { font-size: 18px; padding: 14px 12px; margin-bottom: 14px; }
  .oz-guard-notice-ok { font-size: 16px; padding: 10px 12px; }
  .oz-guard-page h2 { font-size: 24px; margin-bottom: 12px; }
  .oz-guard-result h2 { font-size: 26px; margin-bottom: 14px; }
  .oz-guard-actions { gap: 10px; }
  .oz-guard-actions .oz-btn-lg { min-height: 48px; font-size: 17px; }
  .oz-modal-card.oz-modal-prominent .oz-flash-modal-message { font-size: 17px; padding: 14px 12px; }
  .oz-staff-guard .oz-topbar { padding: 10px 12px; gap: 8px; }
  .oz-staff-guard .oz-topbar .oz-brand .oz-brand-logo { width: 28px; height: 28px; }
  .oz-staff-guard .oz-topbar .oz-brand span { font-size: 16px; }
  .oz-staff-guard .oz-user span { font-size: 12px; max-width: 7.2em; }
  .oz-staff-guard .oz-content { padding: 12px 12px 96px; }
  .oz-staff-guard .oz-card { padding: 16px; }
  .oz-staff-guard .oz-guard-page .oz-muted { font-size: 15px; }
  .oz-staff-guard .oz-guard-scan-layout h2 { font-size: 22px; }
  .oz-staff-guard .oz-guard-scan-layout label { font-size: 15px; }
  .oz-staff-guard .oz-guard-scan-layout #tokenInput { font-size: 16px; min-height: 48px; }
  .oz-staff-guard .oz-guard-scan-layout .oz-btn-lg { min-height: 48px; font-size: 17px; }
  .oz-staff-guard .oz-guard-camera-title { font-size: 15px; margin-top: 14px; }
  .oz-staff-guard .oz-scan-status { font-size: 14px; }
  .oz-staff-guard .oz-scan-box { min-height: 200px; }
}

