body:not(.admin-view) #dashboard .credits-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #285f56;
  color: #fffaf0;
  background: #285f56;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
body:not(.admin-view) #dashboard .credits-entry:hover { border-color: #1c4942; color: #fffaf0; background: #1c4942; }
body:not(.admin-view) #dashboard .credits-entry:focus-visible { outline: 2px solid #285f56; outline-offset: 3px; }

.credits-page { margin: 0; min-height: 100vh; }
.credits-page * { box-sizing: border-box; }
.credits-page ::selection { color: #163f38; background: #cae0d2; }
.credits-page a { color: inherit; text-underline-offset: 4px; }
.credits-page a:focus-visible, .credits-page button:focus-visible { outline: 2px solid #285f56; outline-offset: 4px; }
.credits-page [hidden] { display: none !important; }
.credits-topbar { min-height: 56px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: #f8f4ea; }
.credits-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.credits-brand-mark { width: 32px; height: 32px; border-radius: 7px; background: url('/assets/logo-ji.png') center / cover no-repeat; }
.credits-topbar nav { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.credits-topbar nav a { text-decoration: none; }
.credits-topbar nav a:hover { text-decoration: underline; }
.credits-topbar .credits-membership { padding: 7px 12px; border-radius: 2px; color: #fff9ef; background: var(--accent); }
.credits-wrap { max-width: 880px; margin: 0 auto; padding: 40px 28px 48px; }
.check-in-panel { padding: 28px 32px 32px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--card-bg); }
.check-in-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.check-in-heading h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 800; }
.check-in-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.check-in-heading-actions button { padding: 5px 9px; border: 1px solid var(--border-strong); border-radius: 3px; color: #285f56; background: transparent; font: inherit; font-size: 12px; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.check-in-heading-actions button:hover:enabled, .check-in-heading-actions button[aria-expanded="true"] { border-color: #285f56; background: #e2e9df; }
.check-in-heading-actions button:disabled { color: #696052; cursor: default; }
.check-in-heading svg { width: 23px; height: 23px; fill: none; stroke: #285f56; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.check-in-heading time { color: #696052; font-family: 'Microsoft YaHei', sans-serif; font-size: 13px; font-variant-numeric: tabular-nums; }
.check-in-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); gap: 28px; align-items: center; padding-top: 30px; }
.check-in-reward p { margin: 0; color: #696052; font-size: 14px; line-height: 1.7; }
.check-in-reward > div { display: flex; align-items: baseline; gap: 10px; margin: 9px 0 14px; color: #285f56; }
.check-in-reward strong { font-size: 54px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.check-in-reward span { font-size: 18px; font-weight: 700; }
.check-in-action { text-align: center; }
#check-in-button, #check-in-login { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #285f56; border-radius: 3px; background: #285f56; color: #fffaf0; font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer; }
#check-in-button:hover:enabled, #check-in-login:hover { background: #1c4942; border-color: #1c4942; }
#check-in-button:disabled { border-color: #b8c9bf; color: #395e52; background: #e2e9df; cursor: default; }
#check-in-button.is-unavailable:disabled { border-color: #c7cac6; color: #5b615c; background: #e2e4e1; }
#check-in-button[aria-busy="true"] { cursor: wait; }
#check-in-status { min-height: 3.4em; margin: 12px 0 0; color: #696052; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#check-in-status.is-error { color: #a13d29; }
#check-in-status.is-success { color: #285f56; }
#check-in-retry { padding: 5px; border: 0; color: #285f56; background: transparent; font-family: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.check-in-history { margin-top: 28px; }
.check-in-history h2 { margin: 0 0 14px; font-size: 16px; }
#check-in-history-status { margin: 0; color: #696052; font-size: 13px; line-height: 1.7; }
#check-in-history-status.is-error { color: #a13d29; }
.check-in-history-list { margin: 0; padding: 0; list-style: none; }
.check-in-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.check-in-history-list time { font-size: 14px; font-variant-numeric: tabular-nums; }
.check-in-history-note { display: block; margin-top: 5px; color: #696052; font-size: 12px; line-height: 1.7; }
.check-in-history-amount { color: #285f56; font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.check-in-history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; color: #696052; font-size: 13px; }
.check-in-history-pagination button { padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 3px; color: #285f56; background: var(--card-bg); font: inherit; cursor: pointer; }
.check-in-history-pagination button:hover:enabled { border-color: #285f56; }
.check-in-history-pagination button:disabled { color: #696052; opacity: .65; cursor: default; }
.history-text-button { margin-top: 8px; padding: 5px 0; border: 0; color: #285f56; background: transparent; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 560px) {
  .credits-topbar { padding: 10px 14px; flex-wrap: wrap; }
  .credits-topbar nav { margin-left: auto; gap: 12px; font-size: 12px; }
  .credits-wrap { padding: 32px 18px; }
  .check-in-panel { padding: 22px; }
  .check-in-heading { flex-wrap: wrap; gap: 10px; }
  .check-in-heading-actions { margin-left: auto; gap: 9px; }
  .check-in-content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .check-in-reward strong { font-size: 48px; }
}
