:root { font-family: system-ui, sans-serif; color: #172c3f; background: #f3f6f8; }
* { box-sizing: border-box; }
body { margin: 0; padding: 4rem 1.25rem; }
main { max-width: 640px; margin: auto; padding: 2.5rem; background: white; border: 1px solid #dce4e9; border-radius: 12px; }
h1 { font-size: clamp(1.6rem, 5vw, 2rem); margin: .4rem 0 1.75rem; }
h2 { font-size: 1rem; }
.eyebrow { color: #47677a; font-size: .75rem; letter-spacing: .12em; font-weight: 700; }
.identity { border-bottom: 1px solid #dce4e9; margin-bottom: 1.75rem; padding-bottom: 1rem; overflow-wrap: anywhere; }
.muted { color: #536474; font-size: .9rem; }
label { display: block; font-weight: 600; margin-bottom: .5rem; }
input { width: 100%; padding: .85rem; border: 1px solid #8395a4; border-radius: 6px; font: inherit; margin-bottom: 1rem; }
button, .button { display: inline-block; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 6px; background: #165b77; color: white; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #10465e; }
button:disabled { opacity: .65; cursor: wait; }
a { color: #165b77; }
:focus-visible { outline: 3px solid #d78619; outline-offset: 3px; }
#result { padding: 1rem; background: #edf5f7; border-radius: 6px; margin-top: 1.5rem; }
output { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
footer { border-top: 1px solid #dce4e9; margin-top: 2rem; padding-top: 1.25rem; }
.secondary { background: white; border-color: #8395a4; color: #172c3f; }
.secondary:hover { background: #edf5f7; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 1rem; } main { padding: 1.4rem; } }

.login-spinner { display: inline-block; width: 1.5rem; height: 1.5rem; border: 3px solid #dce4e9; border-top-color: #165b77; border-radius: 50%; animation: login-spin .8s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-spinner { animation: none; } }

.result-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.result-header h2 { margin: 0; }
#uuid { display: block; width: 100%; overflow-wrap: anywhere; }
#copy-uuid { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; padding: 0; background: #dcecf3; border: 1px solid #8eafbf; color: #165b77; border-radius: 5px; }
#copy-uuid:hover:not(:disabled) { background: #c9e1ec; border-color: #648fa3; }
#copy-uuid:active:not(:disabled) { background: #b5d5e3; border-color: #165b77; }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; }
#copy-status:empty { display: none; }
