/* Field Notes daily check-in: calm glass surfaces, durable mobile geometry and
   short-lived transform/opacity effects only. */
.field-notes-page .fn-checkin-open,
.fn-checkin-modal,
.fn-checkin-modal *,
.fn-checkin-result-card,
.fn-checkin-result-card *,
.fn-checkin-notice-card,
.fn-checkin-notice-card * {
  box-sizing: border-box;
}

.fn-checkin-modal [hidden],
.fn-checkin-result-card [hidden],
.fn-checkin-notice-card [hidden] {
  display: none !important;
}

.field-notes-page .fn-checkin-open {
  --nahida-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(52, 95, 45, 0.1);
  --nahida-button-hover-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(52, 95, 45, 0.12);
  position: relative;
  isolation: isolate;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 5px;
  overflow: visible;
  border: 1px solid rgba(245, 255, 238, 0.84);
  border-radius: 16px;
  color: #315f2b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(237, 248, 209, 0.48) 58%, rgba(243, 221, 154, 0.34)),
    rgba(245, 252, 240, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(52, 95, 45, 0.1);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  cursor: pointer;
  transition:
    transform 0.24s var(--ease-soft, ease),
    border-color 0.24s var(--ease-soft, ease),
    box-shadow 0.24s var(--ease-soft, ease);
}

.field-notes-page .fn-checkin-open::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  background: rgba(243, 221, 154, 0.3);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.24s var(--ease-soft, ease), transform 0.24s var(--ease-soft, ease);
}

.field-notes-page .fn-checkin-open::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px;
  width: auto;
  border-radius: inherit;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.34), transparent 48%, rgba(232, 200, 122, 0.14));
  clip-path: inset(0 round 999px);
  opacity: 0.36;
  transform: none;
  transition: opacity 0.24s var(--ease-soft, ease);
  pointer-events: none;
}

.field-notes-page .fn-checkin-open:hover {
  border-color: rgba(232, 200, 122, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(52, 95, 45, 0.12);
  transform: translateY(-2px);
}

.field-notes-page .fn-checkin-open:hover::before {
  opacity: 1;
  transform: scale(1);
}

.field-notes-page .fn-checkin-open:active {
  transform: translateY(0) scale(0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(52, 95, 45, 0.14) !important;
}

.field-notes-page .fn-checkin-open:focus-visible,
.fn-calendar-day:focus-visible,
.fn-calendar-toolbar button:focus-visible,
.fn-checkin-target input:focus-visible + .fn-checkin-switch,
.fn-checkin-official-links a:focus-visible,
#checkinRetryButton:focus-visible,
#checkinRunButton:focus-visible {
  outline: 3px solid rgba(95, 168, 79, 0.25);
  outline-offset: 3px;
}

.fn-checkin-open-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  transform: translate3d(0, -1px, 0);
  transition: transform 0.24s var(--ease-soft, ease);
}

.field-notes-page .fn-checkin-open:hover .fn-checkin-open-icon {
  transform: translate3d(0, -2px, 0) scale(1.035);
}

.fn-checkin-modal {
  z-index: 10022;
  background:
    radial-gradient(circle at 58% 18%, rgba(232, 247, 202, 0.3), transparent 42%),
    rgba(18, 34, 20, 0.4);
}

.fn-checkin-result-modal {
  z-index: 10024;
}

.fn-checkin-notice-modal {
  z-index: 10036;
}

.fn-checkin-card {
  position: relative;
  isolation: isolate;
  width: min(1010px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  border-color: rgba(245, 255, 238, 0.86);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.73), rgba(255, 255, 255, 0.22) 47%, rgba(232, 200, 122, 0.12)),
    rgba(244, 251, 239, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(52, 95, 45, 0.1),
    0 38px 96px -40px rgba(19, 51, 20, 0.7);
}

.fn-checkin-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -210px;
  right: -125px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 122, 0.19), transparent 70%);
  pointer-events: none;
}

.fn-checkin-card .fn-modal-head {
  gap: 16px;
  padding: 19px 24px;
  border-bottom-color: rgba(140, 203, 106, 0.2);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.65), rgba(232, 247, 202, 0.25)),
    rgba(247, 252, 244, 0.8);
}

.fn-checkin-card .fn-modal-head h2,
.fn-checkin-result-card .fn-modal-head h2 {
  color: #315f2b;
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}

.fn-checkin-heading-note {
  max-width: 680px;
  margin: 3px 0 0;
  color: rgba(47, 74, 43, 0.56);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fn-checkin-card .fn-modal-body {
  display: block;
  padding: 20px 22px;
}

.fn-checkin-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(276px, 0.76fr);
  align-items: stretch;
  gap: 18px;
}

.fn-checkin-calendar-panel,
.fn-checkin-sidebar {
  min-width: 0;
  border: 1px solid rgba(140, 203, 106, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(232, 247, 202, 0.14)),
    rgba(250, 254, 248, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.fn-checkin-calendar-panel {
  position: relative;
  padding: 17px;
}

.fn-calendar-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fn-calendar-toolbar button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(140, 203, 106, 0.28);
  border-radius: 12px;
  color: rgba(49, 95, 43, 0.82);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font: 400 20px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.2s var(--ease-soft, ease), background 0.2s ease, border-color 0.2s ease;
}

.fn-calendar-toolbar button:not(:disabled):hover {
  border-color: rgba(232, 200, 122, 0.52);
  background: rgba(255, 250, 230, 0.82);
  transform: translateY(-1px);
}

.fn-calendar-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.fn-calendar-toolbar > div {
  min-width: 0;
  text-align: center;
}

.fn-calendar-toolbar > div > p {
  margin: 0 0 2px;
  color: #b0872d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
}

.fn-calendar-title {
  min-width: 0;
  margin: 0;
  color: #315f2b;
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.fn-calendar-weekdays,
.fn-calendar-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.fn-calendar-weekdays {
  margin-bottom: 6px;
}

.fn-calendar-weekdays > span {
  min-width: 0;
  padding: 5px 0;
  color: rgba(47, 74, 43, 0.52);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.fn-calendar-day {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(49, 75, 46, 0.76);
  background: rgba(255, 255, 255, 0.4);
  font: 600 12px/1 Arial, sans-serif;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-soft, ease),
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.fn-calendar-day:not(:disabled):hover {
  border-color: rgba(140, 203, 106, 0.38);
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.fn-calendar-day:disabled,
.fn-calendar-day.is-outside,
.fn-calendar-day.is-empty {
  color: rgba(47, 74, 43, 0.25);
  cursor: default;
  opacity: 0.62;
}

.fn-calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.fn-calendar-day.is-today {
  border-color: rgba(232, 200, 122, 0.58);
  color: #745820;
  background: rgba(255, 249, 226, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.fn-calendar-day.is-selected {
  border-color: rgba(95, 168, 79, 0.64);
  color: #285326;
  background:
    linear-gradient(145deg, rgba(223, 246, 194, 0.82), rgba(250, 238, 192, 0.62)),
    #eef8e6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 20px -16px rgba(49, 95, 43, 0.64);
  transform: translateY(-1px);
}

.fn-calendar-day.is-checked::after,
.fn-calendar-day.is-partial::after {
  content: none;
  display: none;
}

.fn-calendar-day.is-checked {
  border-color: rgba(95, 168, 79, 0.68);
  color: #315d2c;
  background:
    linear-gradient(145deg, rgba(228, 248, 204, 0.86), rgba(248, 253, 237, 0.72)),
    rgba(237, 249, 220, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 0 0 1px rgba(95, 168, 79, 0.12),
    0 9px 18px -17px rgba(49, 95, 43, 0.72);
}

.fn-calendar-day.is-checked.is-today {
  border-color: rgba(82, 158, 68, 0.8);
  background:
    linear-gradient(145deg, rgba(218, 244, 185, 0.94), rgba(250, 240, 198, 0.62)),
    #eef8e6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(82, 158, 68, 0.16),
    0 0 0 2px rgba(95, 168, 79, 0.1),
    0 10px 20px -16px rgba(49, 95, 43, 0.68);
}

.fn-calendar-day-mark {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 255, 238, 0.8);
  border-radius: 50%;
  color: #fff;
  background: #66a955;
  box-shadow: 0 4px 9px -5px rgba(39, 82, 33, 0.75);
  font: 700 9px/1 Arial, sans-serif;
  opacity: 0;
  transform: scale(0.42);
  pointer-events: none;
}

.fn-calendar-day.is-checked .fn-calendar-day-mark,
.fn-calendar-day.is-partial .fn-calendar-day-mark,
.fn-calendar-day.is-missed .fn-calendar-day-mark {
  opacity: 1;
  animation: fnCheckinTick 0.46s var(--ease-soft, ease) both;
}

.fn-calendar-day.is-partial {
  border-color: rgba(213, 167, 67, 0.5);
  background: rgba(255, 246, 214, 0.64);
}

.fn-calendar-day.is-partial .fn-calendar-day-mark {
  background: #c79b3b;
  font-size: 12px;
}

.fn-calendar-day.is-missed {
  border-color: rgba(190, 96, 75, 0.3);
  color: rgba(121, 67, 55, 0.78);
  background: rgba(255, 239, 232, 0.54);
  opacity: 0.86;
}

.fn-calendar-day.is-missed .fn-calendar-day-mark {
  border-color: rgba(255, 246, 241, 0.9);
  background: #c87962;
  box-shadow: 0 4px 9px -5px rgba(126, 62, 47, 0.66);
  font-size: 11px;
}

.fn-calendar-day.is-checked:disabled {
  opacity: 1;
}

.fn-calendar-day.is-partial:disabled,
.fn-calendar-day.is-today:disabled {
  opacity: 0.9;
}

.fn-calendar-day.is-checked.is-today:disabled {
  opacity: 1;
}

.fn-calendar-day.is-locked-future {
  border-color: transparent;
  color: rgba(47, 74, 43, 0.26);
  background: rgba(255, 255, 255, 0.24);
  opacity: 0.5;
}

.fn-calendar-day-number {
  position: relative;
  z-index: 1;
}

.fn-calendar-legend {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px 12px;
  margin-top: 12px;
  color: rgba(47, 74, 43, 0.5);
  font-size: 9px;
  line-height: 1.35;
}

.fn-calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fn-calendar-legend i {
  width: 9px;
  height: 9px;
  display: block;
  border: 1px solid rgba(95, 168, 79, 0.45);
  border-radius: 50%;
  background: rgba(232, 247, 202, 0.76);
}

.fn-calendar-legend i.is-complete { background: #79b865; }
.fn-calendar-legend i.is-partial { border-color: rgba(199, 155, 59, 0.56); background: #d9b45b; }
.fn-calendar-legend i.is-missed { border-color: rgba(190, 96, 75, 0.54); background: #c87962; }
.fn-calendar-legend i.is-today { border-color: rgba(232, 200, 122, 0.76); background: rgba(255, 249, 226, 0.9); }

@keyframes fnCheckinTick {
  0% { opacity: 0; transform: scale(0.42); }
  62% { opacity: 1; transform: scale(1.16); }
  100% { opacity: 1; transform: scale(1); }
}

.fn-checkin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.fn-checkin-binding {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(140, 203, 106, 0.25);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.54);
}

.fn-checkin-binding-head,
.fn-checkin-section-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fn-checkin-binding-head {
  justify-content: flex-start;
}

.fn-checkin-binding-head > div,
.fn-checkin-section-heading > div {
  min-width: 0;
}

.fn-checkin-binding-head p,
.fn-checkin-section-heading p {
  margin: 0 0 2px;
  color: #b0872d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
}

.fn-checkin-binding-head h3,
.fn-checkin-section-heading h3 {
  margin: 0;
  color: #315f2b;
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fn-checkin-binding-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 200, 122, 0.4);
  border-radius: 11px;
  background: rgba(255, 249, 226, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.fn-checkin-binding-mark svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: #98721f;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fn-checkin-provider-state {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(47, 74, 43, 0.64);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fn-checkin-provider-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.fn-checkin-provider-copy > strong {
  color: #315f2b;
  font-size: 11px;
  line-height: 1.4;
}

.fn-checkin-provider-copy > span {
  line-height: 1.55;
}

.fn-checkin-provider-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 200, 122, 0.46);
  border-radius: 11px;
  color: #8b6825;
  background: rgba(255, 244, 210, 0.68);
  font: 700 14px/1 Arial, sans-serif;
}

.fn-checkin-provider-mark::before {
  content: "i";
}

.fn-checkin-provider-state.is-loading .fn-checkin-provider-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(139, 104, 37, 0.2);
  border-top-color: #8b6825;
  border-radius: 50%;
  animation: fnPassportSpin 0.9s linear infinite;
}

.fn-checkin-provider-state.is-waiting .fn-checkin-provider-mark::before {
  content: "▦";
  font-size: 16px;
  animation: fnPassportBreathe 1.8s ease-in-out infinite;
}

.fn-checkin-provider-state.is-scanned .fn-checkin-provider-mark::before,
.fn-checkin-provider-state.is-ready .fn-checkin-provider-mark::before,
.fn-checkin-provider-state.is-bound .fn-checkin-provider-mark::before,
.fn-checkin-binding.is-bound .fn-checkin-provider-state .fn-checkin-provider-mark::before {
  content: "✓";
}

.fn-checkin-provider-state.is-scanned .fn-checkin-provider-mark,
.fn-checkin-provider-state.is-ready .fn-checkin-provider-mark,
.fn-checkin-provider-state.is-bound .fn-checkin-provider-mark,
.fn-checkin-binding.is-bound .fn-checkin-provider-state .fn-checkin-provider-mark {
  border-color: rgba(140, 203, 106, 0.42);
  color: #315f2b;
  background: rgba(232, 247, 202, 0.64);
}

.fn-checkin-provider-state.is-error .fn-checkin-provider-mark::before,
.fn-checkin-binding.is-error .fn-checkin-provider-state .fn-checkin-provider-mark::before {
  content: "×";
}

.fn-checkin-provider-state.is-error .fn-checkin-provider-mark,
.fn-checkin-binding.is-error .fn-checkin-provider-state .fn-checkin-provider-mark {
  border-color: rgba(196, 123, 82, 0.34);
  color: #94513a;
  background: rgba(255, 232, 220, 0.7);
}

.fn-checkin-provider-state.is-unavailable {
  color: rgba(111, 81, 30, 0.72);
}

.fn-checkin-provider-state.is-unavailable .fn-checkin-provider-copy > strong {
  color: #795c20;
}

.fn-checkin-provider-state.is-unavailable .fn-checkin-provider-mark::before {
  content: "!";
}

.fn-checkin-provider-state.is-unavailable .fn-checkin-provider-mark {
  border-color: rgba(232, 200, 122, 0.48);
  color: #8b6825;
  background: rgba(255, 244, 210, 0.7);
}

@keyframes fnPassportSpin {
  to { transform: rotate(360deg); }
}

@keyframes fnPassportBreathe {
  0%, 100% { opacity: 0.62; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.04); }
}

.fn-checkin-qr {
  min-width: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(140, 203, 106, 0.32);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 18%, rgba(238, 250, 211, 0.88), transparent 48%),
    rgba(250, 255, 242, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 22px rgba(74, 116, 59, 0.08);
}

.fn-checkin-qr[hidden] {
  display: none;
}

.fn-checkin-qr-frame {
  position: relative;
  width: 124px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(110, 164, 82, 0.34);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(55, 91, 44, 0.12);
}

.fn-checkin-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  transition: filter 0.24s ease, opacity 0.24s ease;
}

.fn-checkin-qr-scanline {
  position: absolute;
  z-index: 1;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 1px;
  pointer-events: none;
  opacity: 0.46;
  background: linear-gradient(90deg, transparent, rgba(151, 205, 105, 0.8), transparent);
  box-shadow: 0 0 6px rgba(151, 205, 105, 0.34);
  animation: fnQrScan 2.8s ease-in-out infinite;
}

.fn-checkin-qr-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.fn-checkin-qr-copy strong {
  color: #315f2b;
  font-size: 11px;
  line-height: 1.45;
}

.fn-checkin-qr-copy span {
  color: rgba(47, 74, 43, 0.64);
  font-size: 9px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fn-checkin-qr-feedback {
  position: absolute;
  z-index: 3;
  inset: 7px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border-radius: 8px;
  color: #315f2b;
  text-align: center;
  background: rgba(243, 252, 228, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.fn-checkin-qr-feedback[hidden] {
  display: none;
}

.fn-checkin-qr-feedback > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115, 176, 80, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 16px rgba(135, 198, 91, 0.22);
  font: 700 16px/1 Arial, sans-serif;
}

.fn-checkin-qr-feedback > strong {
  max-width: 90px;
  font-size: 9px;
  line-height: 1.45;
}

.fn-checkin-qr.is-scanned .fn-checkin-qr-scanline,
.fn-checkin-qr.is-expired .fn-checkin-qr-scanline {
  animation: none;
  opacity: 0;
}

.fn-checkin-qr.is-scanned .fn-checkin-qr-frame img,
.fn-checkin-qr.is-expired .fn-checkin-qr-frame img {
  filter: blur(1px) saturate(0.72);
  opacity: 0.58;
}

.fn-checkin-qr.is-expired .fn-checkin-qr-feedback {
  color: #83513d;
  background: rgba(255, 241, 229, 0.9);
}

.fn-checkin-qr.is-expired .fn-checkin-qr-feedback > span {
  border-color: rgba(190, 116, 77, 0.36);
  box-shadow: none;
}

@keyframes fnQrScan {
  0%, 12% { transform: translateY(0); opacity: 0; }
  28% { opacity: 0.46; }
  76% { opacity: 0.38; }
  88%, 100% { transform: translateY(106px); opacity: 0; }
}

.fn-checkin-binding-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.fn-checkin-binding-actions .fn-primary-action,
.fn-checkin-binding-actions .fn-secondary-action {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
}

.fn-checkin-binding-actions #mihoyoBindButton {
  min-width: 132px;
  white-space: nowrap;
}

.fn-checkin-binding-actions .fn-checkin-authorization-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #416d38;
  text-decoration: none;
  white-space: nowrap;
}

.fn-checkin-binding-actions .fn-checkin-authorization-continue[hidden] {
  display: none;
}

.fn-checkin-binding-actions .fn-text-action {
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  color: #8c5641;
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(140, 86, 65, 0.26);
  text-underline-offset: 3px;
  cursor: pointer;
}

.fn-checkin-official-links {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fn-checkin-official-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid rgba(232, 200, 122, 0.4);
  border-radius: 999px;
  color: #745820;
  background: rgba(255, 250, 230, 0.7);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s var(--ease-soft, ease), background 0.2s ease;
}

.fn-checkin-official-links a:hover {
  background: rgba(255, 247, 215, 0.94);
  transform: translateY(-1px);
}

.fn-checkin-privacy-note {
  margin: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(232, 200, 122, 0.58);
  border-radius: 0 10px 10px 0;
  color: rgba(47, 74, 43, 0.58);
  background: rgba(255, 249, 226, 0.38);
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fn-checkin-settings {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(140, 203, 106, 0.2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.4);
}

#checkinPreferenceState {
  flex: 0 0 auto;
  color: rgba(49, 95, 43, 0.62);
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
}

.fn-checkin-target-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.fn-checkin-target {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(140, 203, 106, 0.2);
  border-radius: 15px;
  background: rgba(252, 255, 250, 0.67);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s var(--ease-soft, ease), border-color 0.2s ease, background 0.2s ease;
}

.fn-checkin-target:not(.is-disabled):hover {
  border-color: rgba(140, 203, 106, 0.4);
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.fn-checkin-target.is-enabled,
.fn-checkin-target:has(input:checked) {
  border-color: rgba(95, 168, 79, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(232, 247, 202, 0.34)),
    rgba(249, 254, 246, 0.78);
}

.fn-checkin-target.is-disabled,
.fn-checkin-target:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.fn-checkin-target > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fn-checkin-target-copy,
.fn-checkin-target > .fn-checkin-switch + span {
  min-width: 0;
  display: grid;
  gap: 2px;
  grid-column: 1;
  grid-row: 1;
}

.fn-checkin-target-copy strong,
.fn-checkin-target > .fn-checkin-switch + span strong {
  color: rgba(39, 75, 34, 0.92);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fn-checkin-target-copy small,
.fn-checkin-target > .fn-checkin-switch + span small {
  color: rgba(47, 74, 43, 0.54);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fn-checkin-switch {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 42px;
  height: 24px;
  border: 1px solid rgba(95, 130, 88, 0.24);
  border-radius: 999px;
  background: rgba(92, 112, 87, 0.16);
  box-shadow: inset 0 1px 3px rgba(40, 65, 35, 0.08);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.fn-checkin-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(44, 72, 38, 0.18);
  transition: transform 0.22s var(--ease-soft, ease);
}

.fn-checkin-target > input:checked + .fn-checkin-switch {
  border-color: rgba(95, 168, 79, 0.58);
  background: linear-gradient(135deg, rgba(95, 168, 79, 0.78), rgba(190, 205, 104, 0.68));
  box-shadow: 0 0 0 3px rgba(140, 203, 106, 0.1);
}

.fn-checkin-target > input:checked + .fn-checkin-switch::after {
  transform: translateX(18px);
}

.fn-checkin-retry-wrap {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 11px;
  border: 1px solid rgba(232, 200, 122, 0.3);
  border-radius: 15px;
  color: rgba(111, 81, 30, 0.76);
  background: rgba(255, 248, 222, 0.54);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fn-checkin-retry-wrap > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fn-checkin-retry-wrap > div strong {
  color: #795c20;
  font-size: 10px;
  line-height: 1.4;
}

.fn-checkin-retry-wrap > div span {
  color: rgba(111, 81, 30, 0.66);
  font-size: 9px;
}

.fn-checkin-sidebar > .fn-form-status {
  min-height: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(140, 203, 106, 0.18);
  border-radius: 12px;
  color: rgba(49, 95, 43, 0.7);
  background: rgba(232, 247, 202, 0.24);
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fn-checkin-sidebar > .fn-form-status:empty {
  display: none;
}

.fn-checkin-sidebar > .fn-form-status.is-error {
  border-color: rgba(196, 123, 82, 0.24);
  color: #95523d;
  background: rgba(255, 239, 226, 0.46);
}

#checkinRetryButton,
#checkinRunButton {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: transform 0.22s var(--ease-soft, ease), box-shadow 0.22s ease, opacity 0.22s ease;
}

#checkinRetryButton {
  width: 100%;
  border: 1px solid rgba(232, 200, 122, 0.46);
  color: #745820;
  background: rgba(255, 250, 230, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

#checkinRunButton {
  min-width: 150px;
  border: 1px solid rgba(246, 255, 238, 0.8);
  color: #315f2b;
  background:
    linear-gradient(135deg, rgba(151, 211, 116, 0.72), rgba(232, 200, 122, 0.44)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(53, 91, 45, 0.12),
    0 14px 30px -21px rgba(68, 124, 52, 0.66);
}

#checkinRetryButton:not(:disabled):hover,
#checkinRunButton:not(:disabled):hover {
  transform: translateY(-1px);
}

#checkinRetryButton:disabled,
#checkinRunButton:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.fn-checkin-card .fn-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top-color: rgba(140, 203, 106, 0.2);
  background: rgba(247, 252, 244, 0.8);
}

.fn-checkin-foot > p {
  min-width: 0;
  margin: 0 auto 0 0;
  color: rgba(47, 74, 43, 0.58);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fn-checkin-foot > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.fn-checkin-foot > div .fn-primary-action,
.fn-checkin-foot > div .fn-secondary-action,
.fn-checkin-result-card .fn-modal-foot .fn-primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.fn-checkin-result-card {
  position: relative;
  isolation: isolate;
  width: min(620px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(232, 247, 202, 0.16)),
    rgba(244, 251, 239, 0.96);
}

.fn-checkin-notice-card {
  width: min(470px, 100%);
  border-color: rgba(245, 255, 238, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 217, 0.18)),
    rgba(248, 252, 244, 0.97);
}

.fn-checkin-notice-card .fn-modal-body {
  padding: 20px 22px;
}

.fn-checkin-notice-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(196, 123, 82, 0.24);
  border-radius: 17px;
  color: #86513e;
  background: rgba(255, 241, 230, 0.56);
}

.fn-checkin-notice-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 123, 82, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font: 700 18px/1 Arial, sans-serif;
}

.fn-checkin-notice-copy p {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fn-checkin-notice-card.is-info .fn-checkin-notice-copy {
  border-color: rgba(140, 203, 106, 0.3);
  color: #315f2b;
  background: rgba(232, 247, 202, 0.4);
}

.fn-checkin-notice-card.is-info .fn-checkin-notice-mark {
  border-color: rgba(140, 203, 106, 0.34);
}

.fn-checkin-result-card .fn-modal-body {
  display: grid;
  gap: 14px;
}

.fn-checkin-result-hero {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(140, 203, 106, 0.26);
  border-radius: 20px;
  color: #315f2b;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.76), transparent 58%),
    rgba(232, 247, 202, 0.42);
  text-align: center;
}

.fn-checkin-result-hero::before {
  content: none;
  display: none;
}

.fn-checkin-result-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 255, 238, 0.86);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #79b865, #acc66b);
  box-shadow: 0 12px 26px -16px rgba(49, 95, 43, 0.72);
  font: 700 23px/1 Arial, sans-serif;
  animation: fnCheckinResultMark 0.52s var(--ease-soft, ease) both;
}

.fn-checkin-result-hero > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.fn-checkin-result-hero.is-failure {
  border-color: rgba(196, 123, 82, 0.28);
  color: #8f4d39;
  background: rgba(255, 235, 224, 0.54);
}

.fn-checkin-result-hero.is-failure .fn-checkin-result-mark {
  background: linear-gradient(145deg, #c98162, #d8a176);
}

.fn-checkin-result-hero.is-partial {
  border-color: rgba(232, 200, 122, 0.4);
  color: #795c20;
  background: rgba(255, 247, 216, 0.62);
}

.fn-checkin-result-hero.is-partial .fn-checkin-result-mark {
  background: linear-gradient(145deg, #d1aa4e, #bdc36e);
}

.fn-checkin-result-hero strong {
  font-family: "Genshin", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

.fn-checkin-result-hero p {
  margin: 0;
  color: currentColor;
  font-size: 11px;
  line-height: 1.65;
  opacity: 0.74;
  overflow-wrap: anywhere;
}

@keyframes fnCheckinResultMark {
  0% { opacity: 0; transform: translateY(8px) scale(0.62); }
  64% { opacity: 1; transform: translateY(-1px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fn-checkin-result-list {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.fn-checkin-result-item {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(140, 203, 106, 0.22);
  border-radius: 16px;
  color: rgba(47, 74, 43, 0.68);
  background: rgba(252, 255, 250, 0.7);
  font-size: 10px;
  line-height: 1.55;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.fn-checkin-result-list.is-revealing > .fn-checkin-result-item {
  animation: fnCheckinResultItemReveal 0.58s var(--ease-soft, ease) calc(120ms + var(--result-delay, 0ms)) both;
}

.fn-checkin-result-list.is-revealing > .fn-checkin-result-item::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 30%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), rgba(232, 200, 122, 0.16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: fnCheckinResultTrace 0.72s ease-out calc(210ms + var(--result-delay, 0ms)) both;
}

.fn-checkin-result-item > * {
  position: relative;
  z-index: 1;
}

.fn-checkin-result-list.is-revealing > .fn-checkin-result-item .fn-checkin-result-item-mark {
  animation: fnCheckinResultItemMark 0.48s var(--ease-soft, ease) calc(220ms + var(--result-delay, 0ms)) both;
}

.fn-checkin-result-list.is-revealing > .fn-checkin-result-item .fn-checkin-reward {
  animation: fnCheckinRewardReveal 0.45s var(--ease-soft, ease) calc(300ms + var(--result-delay, 0ms)) both;
}

@keyframes fnCheckinResultItemReveal {
  0% { opacity: 0; transform: translateY(13px) scale(0.975); }
  68% { opacity: 1; transform: translateY(-1px) scale(1.006); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fnCheckinResultTrace {
  0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  30% { opacity: 0.58; }
  100% { opacity: 0; transform: translateX(520%) skewX(-18deg); }
}

@keyframes fnCheckinResultItemMark {
  0% { opacity: 0; transform: rotate(-10deg) scale(0.58); }
  68% { opacity: 1; transform: rotate(2deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes fnCheckinRewardReveal {
  0% { opacity: 0; transform: translateX(-5px) scale(0.92); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.fn-checkin-result-item.is-success {
  border-color: rgba(95, 168, 79, 0.36);
  background: rgba(237, 249, 220, 0.64);
}

.fn-checkin-result-item.is-failure,
.fn-checkin-result-item.is-failed {
  border-color: rgba(196, 123, 82, 0.28);
  color: #8f5543;
  background: rgba(255, 239, 229, 0.56);
}

.fn-checkin-result-item-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 255, 238, 0.84);
  border-radius: 11px;
  color: #fff;
  background: #79b865;
  box-shadow: 0 7px 15px -12px rgba(39, 82, 33, 0.75);
  font: 700 14px/1 Arial, sans-serif;
}

.fn-checkin-result-item.is-failed .fn-checkin-result-item-mark,
.fn-checkin-result-item.is-failure .fn-checkin-result-item-mark {
  background: #c98162;
}

.fn-checkin-result-item.is-skipped .fn-checkin-result-item-mark {
  color: rgba(49, 75, 46, 0.62);
  background: rgba(207, 216, 201, 0.74);
}

.fn-checkin-result-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fn-checkin-result-item-copy > strong,
.fn-checkin-result-item > strong {
  color: #315f2b;
  font-size: 12px;
  line-height: 1.4;
}

.fn-checkin-result-item-copy > p {
  margin: 0;
  color: inherit;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fn-checkin-result-item.is-failure > strong,
.fn-checkin-result-item.is-failure .fn-checkin-result-item-copy > strong,
.fn-checkin-result-item.is-failed .fn-checkin-result-item-copy > strong {
  color: #8f4d39;
}

.fn-checkin-rewards {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fn-checkin-reward {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(232, 200, 122, 0.35);
  border-radius: 999px;
  color: #73591f;
  background: rgba(255, 249, 226, 0.7);
  font-size: 9px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fn-checkin-reward img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fn-checkin-reward-art {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(232, 200, 122, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 42%),
    rgba(247, 239, 196, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.fn-checkin-reward-fallback {
  color: #b68d32;
  font: 700 13px/1 Arial, sans-serif;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.fn-checkin-reward-art.is-loaded img {
  opacity: 1;
}

.fn-checkin-reward-art.is-loaded .fn-checkin-reward-fallback {
  opacity: 0;
}

.fn-checkin-reward-art.is-fallback img {
  display: none;
}

.fn-checkin-burst {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.fn-checkin-result-burst {
  z-index: 6;
}

.fn-checkin-burst > i,
.fn-checkin-burst > span,
.fn-checkin-burst-particle {
  --burst-angle: 0deg;
  --burst-distance: -58px;
  --burst-delay: 0ms;
  position: absolute;
  left: 50%;
  top: 34%;
  width: 6px;
  height: 6px;
  border-radius: 55% 15% 55% 15%;
  background: rgba(140, 203, 106, 0.72);
  box-shadow: 0 0 8px rgba(232, 200, 122, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--burst-angle)) translateY(0) scale(0.4);
}

.fn-checkin-burst.is-playing > i,
.fn-checkin-burst.is-playing > span,
.fn-checkin-burst.is-playing > .fn-checkin-burst-particle {
  animation: fnCheckinBurst 0.84s var(--ease-soft, ease) var(--burst-delay) both;
}

.fn-checkin-burst > :nth-child(3n + 2) { --burst-distance: -68px; background: rgba(232, 200, 122, 0.7); }
.fn-checkin-burst > :nth-child(3n) { --burst-distance: -51px; background: rgba(255, 255, 255, 0.82); }

@keyframes fnCheckinBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--burst-angle)) translateY(0) scale(0.4); }
  24% { opacity: 0.84; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--burst-angle)) translateY(var(--burst-distance)) scale(0.86) rotate(105deg); }
}

@media (max-width: 820px) {
  .fn-checkin-card {
    width: 100%;
  }

  .fn-checkin-layout {
    grid-template-columns: 1fr;
  }

  .fn-checkin-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .fn-checkin-settings {
    grid-column: 2;
  }

  .fn-checkin-retry-wrap {
    grid-column: 1 / -1;
  }

  .fn-checkin-retry-wrap {
    margin-top: 0;
  }

  .fn-checkin-sidebar > .fn-form-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .field-notes-page .fn-checkin-open {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 15px;
  }

  .fn-checkin-open-icon {
    width: 38px;
    height: 38px;
  }

  .fn-checkin-modal {
    align-items: end;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .fn-checkin-card,
  .fn-checkin-result-card {
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    border-radius: 25px;
  }

  .fn-checkin-card .fn-modal-head,
  .fn-checkin-result-card .fn-modal-head {
    padding: 16px 15px;
  }

  .fn-checkin-card .fn-modal-body,
  .fn-checkin-result-card .fn-modal-body {
    padding: 14px;
  }

  .fn-checkin-layout,
  .fn-checkin-sidebar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .fn-checkin-settings,
  .fn-checkin-retry-wrap {
    grid-column: auto;
  }

  .fn-checkin-calendar-panel,
  .fn-checkin-sidebar {
    border-radius: 19px;
  }

  .fn-checkin-calendar-panel {
    padding: 13px;
  }

  .fn-calendar-day {
    min-height: 42px;
    border-radius: 12px;
  }

  .fn-checkin-card .fn-modal-foot {
    padding: 13px 14px max(13px, env(safe-area-inset-bottom));
  }

  .fn-checkin-card .fn-modal-foot.fn-checkin-foot {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fn-checkin-foot > p {
    margin: 0;
    text-align: center;
  }

  .fn-checkin-foot > div {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .fn-checkin-foot > div .fn-primary-action,
  .fn-checkin-foot > div .fn-secondary-action {
    width: 100%;
    min-width: 0;
  }

  #checkinRunButton {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .field-notes-page .fn-checkin-open {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .fn-checkin-open-icon {
    width: 36px;
    height: 36px;
  }

  .fn-checkin-card .fn-modal-head h2,
  .fn-checkin-result-card .fn-modal-head h2,
  .fn-checkin-notice-card .fn-modal-head h2 {
    font-size: 20px;
  }

  .fn-checkin-calendar-panel {
    padding: 10px;
  }

  .fn-calendar-toolbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 7px;
    margin-bottom: 10px;
  }

  .fn-calendar-toolbar button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .fn-calendar-title {
    font-size: 16px;
  }

  .fn-calendar-weekdays,
  .fn-calendar-grid {
    gap: 3px;
  }

  .fn-calendar-day {
    min-height: 38px;
    padding: 2px;
    border-radius: 10px;
    font-size: 11px;
  }

  .fn-calendar-day-mark {
    right: 2px;
    bottom: 2px;
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .fn-checkin-sidebar {
    padding: 11px;
  }

  .fn-checkin-qr {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .fn-checkin-qr-frame {
    width: 112px;
    border-radius: 11px;
  }

  .fn-checkin-target {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .fn-checkin-switch {
    width: 40px;
  }

  .fn-checkin-target > input:checked + .fn-checkin-switch::after {
    transform: translateX(16px);
  }

  .fn-checkin-result-hero {
    padding: 15px 11px;
  }

  .fn-checkin-reward {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-notes-page .fn-checkin-open,
  .field-notes-page .fn-checkin-open::before,
  .fn-checkin-open-icon,
  .fn-calendar-toolbar button,
  .fn-checkin-qr-scanline,
  .fn-checkin-provider-mark::before,
  .fn-checkin-qr-frame img,
  .fn-calendar-day,
  .fn-calendar-day-mark,
  .fn-checkin-official-links a,
  .fn-checkin-target,
  .fn-checkin-switch,
  .fn-checkin-switch::after,
  #checkinRetryButton,
  #checkinRunButton,
  .fn-checkin-result-mark,
  .fn-checkin-result-item,
  .fn-checkin-result-item::after,
  .fn-checkin-result-item-mark,
  .fn-checkin-reward,
  .fn-checkin-burst > i,
  .fn-checkin-burst > span,
  .fn-checkin-burst-particle {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
