/* Tailwind steps only: zinc for the page, indigo for action, emerald for
   signed in, red for deletion. */
:root { color-scheme: light; font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif; color: #18181b; background: #fafafa; }
body { margin: 0; }
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* The header lines up with the card under it. */
header.top { display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: calc(100% - 2rem); max-width: 34rem; margin: 0 auto; padding: 1.25rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: #18181b; }
.brand:hover { text-decoration: none; }
.viewer { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: #3f3f46; }
.viewer form { margin: 0; }

main { box-sizing: border-box; width: calc(100% - 2rem); max-width: 34rem; margin: 6vh auto 4rem; padding: 2rem; background: #fff; border: 1px solid #e4e4e7; border-radius: 0.75rem; }
main.wide { max-width: 60rem; }
h1 { font-size: 1.375rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.identity h1 { margin: 0; }
h2 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #71717a; margin: 2rem 0 0.75rem; }
p { margin: 0 0 1rem; color: #3f3f46; }
.muted { color: #71717a; font-size: 0.875rem; }
.error { color: #b91c1c; }

.identity { display: flex; align-items: center; gap: 1rem; }
.identity p { margin: 0.15rem 0 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 9999px; background: #e0e7ff; color: #4338ca; font-weight: 700; font-size: 1.25rem; flex: none; }
.avatar.small { width: 1.75rem; height: 1.75rem; font-size: 0.8rem; }
.signed-in { display: inline-flex; align-items: center; gap: 0.4rem; color: #047857; font-size: 0.875rem; }
.signed-in::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #10b981; }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid #e4e4e7; border-radius: 0.5rem; }
.rows li { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
.rows li + li { border-top: 1px solid #e4e4e7; }
.rows .name { font-weight: 600; width: 5rem; flex: none; }
.rows .detail { flex: 1; color: #71717a; font-size: 0.875rem; overflow-wrap: anywhere; }
.badge { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 9999px; background: #f4f4f5; color: #3f3f46; }

.button, button { display: block; width: 100%; box-sizing: border-box; padding: 0.6rem 1rem; margin: 0 0 0.75rem; border: 1px solid #d4d4d8; border-radius: 0.5rem; background: #fff; color: #18181b; font: inherit; text-align: center; cursor: pointer; }
.button:hover, button:hover { background: #f4f4f5; text-decoration: none; }
.button.small, button.small { display: inline-block; width: auto; margin: 0; padding: 0.3rem 0.8rem; font-size: 0.875rem; }
button.link { display: inline; width: auto; margin: 0; padding: 0; border: 0; background: none; color: #4f46e5; font-size: 0.875rem; }
button.link:hover { background: none; text-decoration: underline; }
button.primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
button.primary:hover { background: #4338ca; }
.danger { border-color: #fca5a5; color: #b91c1c; }
.danger:hover { background: #fef2f2; }
.danger-zone { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #e4e4e7; }
details.danger-zone summary { cursor: pointer; list-style: none; font-size: 0.875rem; color: #71717a; }
details.danger-zone summary::-webkit-details-marker { display: none; }
details.danger-zone summary:hover { color: #b91c1c; text-decoration: underline; }
details.danger-zone[open] summary { margin-bottom: 0.75rem; }

label { display: block; font-weight: 600; margin: 0 0 0.25rem; }
input[type=text] { display: block; width: 100%; box-sizing: border-box; padding: 0.55rem 0.75rem; margin: 0 0 0.75rem; border: 1px solid #d4d4d8; border-radius: 0.5rem; font: inherit; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e4e4e7; }
td button { width: auto; margin: 0; padding: 0.25rem 0.75rem; }
code { font: 0.875rem ui-monospace, monospace; background: #f4f4f5; padding: 0.1rem 0.3rem; border-radius: 0.25rem; overflow-wrap: anywhere; }
