.nearby-page { max-width: 860px; padding-bottom: 2rem; }
.nearby-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.nearby-icon { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nearby-card { padding: clamp(1rem, 3vw, 1.6rem); margin: 1rem 0; border: 1px solid var(--border, #6c837b); border-radius: 18px; background: var(--surface, transparent); min-width: 0; }
.nearby-card p, .nearby-card li { line-height: 1.65; overflow-wrap: anywhere; }
.nearby-card h2 { margin-top: 0; font-size: clamp(1.15rem, 3vw, 1.4rem); }
.nearby-card h3 { margin-top: 1.5rem; }
.nearby-card summary { min-height: 50px; padding: .6rem 0; cursor: pointer; font-weight: 700; line-height: 1.5; }
.nearby-card details { margin-top: 1rem; }
.nearby-essential { border-left: 4px solid #bc8e38; padding: .6rem .9rem; }
.nearby-saved-card { border: 2px solid #438c69; }
.nearby-resume-note { padding: .75rem; border-left: 4px solid #438c69; }
.nearby-resume-consent { font-size: .9rem; margin-bottom: 0; }
#nearby-activate { width: 100%; }
.nearby-check { display: flex; align-items: flex-start; gap: .75rem; margin: 1rem 0 1.3rem; line-height: 1.6; }
.nearby-check input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: .2rem; }
.nearby-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin: .8rem 0; }
.nearby-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
#nearby-tool button { min-height: 50px; height: auto; font-size: max(16px, 1rem); white-space: normal; padding: .85rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; max-width: 100%; }
.nearby-choices button { justify-content: flex-start !important; text-align: left; min-height: 96px !important; }
.nearby-choices small { display: block; font-size: .85rem; font-weight: 400; margin-top: .3rem; line-height: 1.4; }
#nearby-tool select, #nearby-tool textarea, #nearby-tool input[type="text"], #nearby-tool input[type="password"] { box-sizing: border-box; width: 100%; max-width: 100%; font-size: max(16px, 1rem); min-height: 50px; padding: .75rem; margin: .5rem 0 .9rem; }
#nearby-tool label:not(.nearby-check) { display: block; font-weight: 600; }
#nearby-tool :is(button,input,select,textarea,summary):focus-visible, #nearby-guide summary:focus-visible { outline: 3px solid #d38b00; outline-offset: 3px; }
#nearby-tool button:disabled { opacity: .55; cursor: not-allowed; }
#nearby-tool .nearby-stop { background: #8e3028; border-color: #8e3028; color: #fff; }
#nearby-status { font-weight: 700; font-size: 1.05rem; margin-top: 0; }
#nearby-error { border: 2px solid #b34427; border-radius: 10px; padding: .8rem; }
#nearby-connection-note { font-size: .9rem; }
#nearby-video { display: block; width: 100%; max-height: 380px; background: #111; border-radius: 12px; object-fit: cover; margin-bottom: 1rem; }
.nearby-qr-card { text-align: center; }
#nearby-qr { display: block; width: min(100%, 320px); height: auto; margin: 1rem auto; border: 8px solid #fff; border-radius: 8px; box-sizing: border-box; image-rendering: pixelated; }
.nearby-qr-card details { text-align: left; }
#nearby-messages { list-style: none; padding: 0; max-height: 30rem; overflow-y: auto; overflow-wrap: anywhere; }
#nearby-messages li { white-space: pre-wrap; unicode-bidi: plaintext; border: 1px solid var(--border, #6c837b); border-radius: 12px; padding: .8rem; margin: .7rem 12% .7rem 0; }
#nearby-messages li.nearby-outgoing { margin: .7rem 0 .7rem 12%; border-left: 4px solid #438c69; }
#nearby-delete-confirm { border: 1px solid #b34427; padding: 1rem; border-radius: 10px; margin-top: 1rem; }
#nearby-tool [hidden], #nearby-tool[hidden] { display: none !important; }
@media (max-width: 540px) {
  .nearby-choices { grid-template-columns: 1fr; }
  .nearby-actions button { width: 100%; }
  #nearby-messages li { margin-right: 5%; }
  #nearby-messages li.nearby-outgoing { margin-left: 5%; }
}
