/* 在线版补充样式：复刻拾页日夜视觉变量与控件圆角 */

.nav-right {
  gap: 10px;
}

.snapshot {
  border-left: 0;
  padding-left: 0;
}

.snapshot,
.theme-toggle,
.account-bar,
.account-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle svg {
  flex-shrink: 0;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.account-pill:hover {
  background: var(--accent);
  color: #FFFFFF;
}

html[data-theme="dark"] .account-pill:hover {
  color: #0B0D10;
}

.account-pill strong {
  font-variant-numeric: tabular-nums;
}

.compact-dialog {
  width: min(500px, calc(100% - 32px));
  height: auto;
  max-height: 88dvh;
}

.account-dialog {
  width: min(620px, calc(100% - 32px));
}

.compact-dialog-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.auth-tab {
  min-height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.auth-tab.active {
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.online-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field-label input,
.redeem-box input,
.report-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.form-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.form-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 600;
}

.form-feedback {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
}

.form-feedback.is-ok {
  color: var(--accent);
}

.form-feedback.is-err {
  color: var(--amber);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  cursor: pointer;
  background: #F4F6F9;
}

.captcha-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: none;
  stroke-width: 0;
}

.code-send-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.code-send-row input {
  flex: 1;
  min-width: 0;
}

.send-code-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.account-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.account-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.account-points-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.account-points-line strong {
  color: var(--accent);
  font-size: 16px;
}

.redeem-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.redeem-box h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.redeem-box .code-send-row {
  margin-top: 10px;
}

.support-note {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px dashed var(--line);
}

.support-note a,
.support-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-footer {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy-btn {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  font-size: 11.5px;
  color: var(--ink-2);
}

.footer-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.history-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
}

.history-item-title {
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.history-item-title:hover {
  color: var(--accent);
}

.history-item-meta {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.history-delta-plus {
  color: var(--accent);
  font-weight: 700;
}

.history-delta-minus {
  color: var(--amber);
  font-weight: 700;
}

.unlock-gate-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unlock-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.unlocked-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.report-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-subtle);
}

.report-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.report-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-cap-hint {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

@media (min-width: 641px) {
  .spatial-pill-nav {
    grid-template-columns: auto minmax(180px, 460px) auto;
    gap: 14px;
  }
}

@media (max-width: 1200px) {
  .snapshot {
    display: none;
  }
}

@media (max-width: 640px) {
  .compact-dialog-body {
    padding: 16px;
  }
  .account-pill {
    padding: 0 10px;
    font-size: 12px;
  }
}
