.resident-survey[hidden], .resident-survey [hidden] { display: none !important; }
.resident-survey { margin: 1.2rem auto; padding: 1.2rem 1.4rem; max-width: 52rem; border: 1px solid #c8dcea; border-radius: 14px; background: #f3f9fd; }
body.has-fundamentals-reader .resident-survey h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
body.has-fundamentals-reader .resident-survey p { margin: .5rem 0; max-width: none; font-size: .95rem; line-height: 1.5; }
.resident-survey-code { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .8rem 0; }
.resident-survey code { font: 700 1.1rem ui-monospace, monospace; letter-spacing: .04em; color: #153951; user-select: all; }
.resident-survey button, .resident-survey a[data-survey-link] { display: inline-block; border: 1px solid #9bbace; border-radius: 8px; padding: .55rem .8rem; color: #184c6c; background: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.resident-survey a[data-survey-link] { color: #fff; background: #126caa; border-color: #126caa; margin: .5rem 0; font-weight: 650; }
.resident-survey details { margin-top: .6rem; }
.resident-survey summary { cursor: pointer; }
.resident-survey form { display: flex; align-items: end; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.resident-survey form label { display: grid; gap: .3rem; }
.resident-survey input { font: inherit; width: min(100%, 19rem); padding: .6rem; border: 1px solid #8aa9be; border-radius: 6px; }
.resident-survey :is(button,a,input,summary):focus-visible { outline: 3px solid #da9c22; outline-offset: 3px; }
body.dark .resident-survey { background: #182c3a; border-color: #365265; color: #e0ebf2; }
body.dark .resident-survey code { color: #d9effe; }
body.dark .resident-survey button, body.dark .resident-survey input { background: #223d50; color: #e0ebf2; }
@media (max-width: 560px) { .resident-survey { padding: 1rem; } .resident-survey code { font-size: .95rem; } }
