* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: #1f2328;
  background: #f6f7f9;
}

main { max-width: 420px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 15px; margin: 0 0 8px; }

section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.notice {
  background: #fff8e1;
  border: 1px solid #f0d58c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  white-space: pre-line;
}

.hint { min-height: 18px; margin: 6px 0 14px; font-size: 12px; color: #8a6d1a; }

button {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled { opacity: .4; cursor: not-allowed; }
button.danger { color: #cf222e; border-color: #cf222e; }
button.plain { height: auto; padding: 0; border: 0; font-size: 12px; color: #0969da; }

/* Google 官方按钮容器:留出高度避免渲染前后跳动 */
#google-btn { min-height: 44px; }

/* Apple 按钮:黑底白字 */
#apple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 300px;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
#apple-btn svg { width: 16px; height: 16px; margin-top: -2px; }

.profile { display: flex; gap: 12px; align-items: flex-start; }
#avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #eee; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; min-width: 0; }
dt { color: #656d76; }
dd { margin: 0; word-break: break-all; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions button { flex: 1; white-space: nowrap; }

#log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
}
#log li { padding: 4px 0; border-bottom: 1px solid #eef0f2; word-break: break-all; }
#log li.error { color: #cf222e; }
#log time { color: #8c959f; margin-right: 6px; }
