#teacher,#student,#posts { margin-bottom: 22px }
#teacher > h1,#student > h1 { margin-bottom: 13px }
#setup-note,#controls > h2 { margin-bottom: 10px }
#student-link-panel,#storage-links,#copy { margin-top: 12px }
#qr { margin: 0 0 10px; max-width: 100%; height: auto }
#post-form { display: grid; gap: 11px; justify-items: start }
#post-form > .field { width: 100% }
textarea { font: inherit; width: 100%; padding: 9px; border: 1px solid #b9c6c3; border-radius: 9px }
#confirm p { margin: 10px 0 }
.post-text { white-space: pre-wrap }
#setup:has(aside:not([hidden])) { display: grid; grid-template-columns: minmax(0,1fr) minmax(16rem,21rem); gap: 1.5rem; align-items: start }
.setup-main { min-width: 0 }
#api-help,#storage-help { background: var(--soft); border: 1px solid #b8d9ca; border-radius: 14px; padding: 1rem; gap: .7rem }
#setup h3 { margin: 0; font-size: 1.3rem }
.api-steps { margin: 0; padding-inline-start: 1.5rem; display: grid; gap: 1rem }
#setup button,#setup .button { min-height: 48px }
#api-help button,#api-help .button,#storage-help button,#storage-help .button { width: 100% }
.api-example { display: grid; gap: .25rem; margin-block-start: .6rem; padding: .7rem; border: 1px solid #9abfae; border-radius: 9px; background: white; font-size: .9rem }
.api-example small { color: var(--sub) }
#setup details p { margin-block-start: .5rem }
#alias-form { display: grid; gap: .7rem; margin-block-start: 1.5rem; max-width: 29rem }
#alias { min-height: 48px; border-color: #767676 }
.address-preview { font-weight: 700; color: var(--green) }
#address-panel { margin-block: 1rem }
#account-panel { margin-block: .7rem 1rem }
@media (max-width: 710px) { #setup:has(aside:not([hidden])) { grid-template-columns: minmax(0,1fr) } }
