* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #0f0f0f; color: #e0e0e0; }
main { max-width: 640px; margin: 0 auto; padding: 40px 16px 64px; }
a { color: #7af; text-decoration: none; }
a:hover { text-decoration: underline; }
.back { font-size: 0.9rem; margin: 0 0 24px; }
h1 { font-size: 1.8rem; font-weight: 600; margin: 0 0 8px; }
.sub { color: #888; margin: 0 0 32px; }
label { display: block; font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
textarea, select { width: 100%; background: #161616; color: #e0e0e0; border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 12px; font: inherit; }
textarea { resize: vertical; min-height: 80px; }
textarea:focus, select:focus, button:focus-visible { outline: none; border-color: #777; }
.hint { color: #666; font-size: 0.85rem; margin: 6px 0 20px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
#preview { margin-top: 32px; display: flex; flex-direction: column; align-items: center; }
#qr { width: min(320px, 100%); aspect-ratio: 1; background: #fff; border-radius: 8px; overflow: hidden; }
#qr svg { display: block; width: 100%; height: 100%; }
#qr.empty { display: flex; align-items: center; justify-content: center; background: #161616; border: 1px dashed #333; color: #555; font-size: 0.9rem; }
.error { color: #f77; margin: 12px 0 0; text-align: center; }
.actions { display: flex; gap: 12px; margin-top: 20px; }
button { background: #e0e0e0; color: #0f0f0f; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
button:hover:not(:disabled) { background: #fff; }
button:disabled { opacity: 0.35; cursor: not-allowed; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.9rem; margin: 0 0 24px; }
.at-session { color: #888; }
.at-session-logout { background: none; color: #7af; padding: 0; font-weight: 500; font-size: inherit; border: 0; }
.at-session-logout:hover:not(:disabled) { background: none; text-decoration: underline; }
.save { margin-top: 32px; padding-top: 24px; border-top: 1px solid #222; }
.save-row { display: flex; gap: 8px; flex-wrap: wrap; }
.save-row input { flex: 1; min-width: 200px; background: #161616; color: #e0e0e0; border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 12px; font: inherit; }
.save-row input:focus { outline: none; border-color: #777; }
button.secondary { background: #222; color: #ddd; }
button.secondary:hover:not(:disabled) { background: #2c2c2c; }
.hint.error { color: #f77; }
.saved { margin-top: 32px; }
.saved h2 { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin: 0 0 10px; }
.saved input[type=search] { width: 100%; background: #161616; color: #e0e0e0; border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 12px; font: inherit; margin-bottom: 8px; }
#list { list-style: none; margin: 0; padding: 0; }
#list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #1e1e1e; }
#list li div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#list li strong { font-weight: 600; }
#list li span { color: #777; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#list button { padding: 6px 12px; font-size: 0.85rem; background: #222; color: #ddd; }
#list button:hover { background: #2c2c2c; }
#list button.danger { color: #f99; }
