.portal { max-width: 640px; padding-top: 56px; padding-bottom: 80px; }
.portal h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -0.03em; }
.portal h2 { font-size: 20px; margin: 0 0 12px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; margin-bottom: 16px;
}
.muted { color: var(--dim); }
.small { font-size: 14px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

form { display: grid; gap: 12px; margin: 20px 0 8px; }
textarea {
  width: 100%; resize: vertical; min-height: 92px; padding: 12px 14px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text);
  background: #0a0a12; border: 1px solid var(--border); border-radius: 12px; word-break: break-all;
}
textarea:focus { outline: 2px solid #7b61ff80; border-color: var(--violet); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.check input { accent-color: var(--violet); width: 16px; height: 16px; }
button.button { cursor: pointer; color: var(--text); font-family: inherit; }
button.button[disabled] { opacity: .55; cursor: default; transform: none; }
.button.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.message { margin: 0; min-height: 1.2em; color: #f87171; font-size: 14px; }
.linkish { cursor: pointer; font: inherit; }

.version { margin: 0 0 12px; }
.notes {
  white-space: pre-wrap; font: 14px/1.55 Inter, system-ui, sans-serif; color: var(--dim);
  background: #0a0a12; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px;
}
.steps { margin: 18px 0 0; padding-left: 20px; color: var(--dim); font-size: 14px; display: grid; gap: 6px; }

.pcs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.pcs li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: #0a0a12; border: 1px solid var(--border); border-radius: 12px;
}
.pcs strong { display: block; }
.pcs span { color: var(--faint); font-size: 13px; }
[hidden] { display: none !important; }
.portal h3 { font-size: 15px; margin: 18px 0 4px; }
.loading { text-align: center; padding: 40px 0; }
.button.discord { display: flex; gap: 10px; width: 100%; margin: 20px 0 10px; border: 0; background: #5865f2; color: #fff; }
.button.discord:hover { background: #4752c4; }
.switch { display: block; margin: 0 auto 4px; background: none; border: 0; color: var(--cyan); font-weight: 600; font-size: 14px; padding: 6px; }
.switch:hover { text-decoration: underline; }
.key-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.key-head h2 { margin-bottom: 2px; }
.key-head p { margin: 0; }
.key-remove { background: none; border: 0; color: var(--faint); font-size: 13px; padding: 4px; }
.key-remove:hover { color: #f87171; }
.me { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.me img { border-radius: 50%; }
#sign-in .message:empty, #account .message:empty { display: none; }
.key-text { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.key-value { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 8px 10px; font-size: 12px; }
#admin-link { text-decoration: none; }
