* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, "PingFang SC", "Noto Sans SC", sans-serif; background: #f5f5f7; color: #1d1d1f; }
@media (prefers-color-scheme: dark) { body { background: #111; color: #eee; } section, .box { background: #1c1c1e !important; } input { background: #2c2c2e !important; color: #eee !important; border-color: #3a3a3c !important; } }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 17px; margin: 0 0 10px; }
section, .box { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.box { margin-top: 60px; }
input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; }
button { font: inherit; padding: 10px 16px; border: 0; border-radius: 8px; background: #2a5db0; color: #fff; white-space: nowrap; }
button.alt { background: #fb7299; }
button.danger { background: #c0392b; }
button.small { padding: 5px 10px; font-size: 14px; }
button.link { background: none; color: #888; padding: 4px; }
.stack > * { margin-bottom: 8px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,.2); }
.lt { min-width: 0; overflow: hidden; }
.lt a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt small { color: #888; display: block; }
.la { display: flex; gap: 4px; flex-shrink: 0; }
.la form { display: flex; gap: 4px; }
.msg { background: #e7f5e9; color: #1e6b2f; padding: 10px 12px; border-radius: 8px; }
.err { color: #c0392b; }
.small { font-size: 14px; color: #888; }
a.bm { display: inline-block; padding: 4px 10px; background: #fb7299; color: #fff; border-radius: 6px; text-decoration: none; }
