body { background: radial-gradient(ellipse at 50% 0%, #10243a, #080e18 42%, #060b13); }
.brand { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: .12em; color: #edf8ff; }
.brand small { color: #80e8fa; }
.eyebrow { color: #80e8fa; }
.intro h1, .card h2 { font-family: ui-sans-serif, system-ui, sans-serif; color: #edf8ff; }
.gateway-nav { display: flex; gap: .65rem; align-items: center; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: .55rem .8rem; border: 1px solid #36596d; border-radius: 9px; color: #def5ff; background: #102333; font-size: .85rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: '⌄'; padding-left: .7rem; color: #80e8fa; }
.nav-menu summary:focus-visible { outline: 3px solid #80e8fa; outline-offset: 3px; }
.nav-popover { position: absolute; top: calc(100% + .3rem); right: 0; z-index: 30; display: grid; gap: .12rem; min-width: min(300px, calc(100vw - 2rem)); max-height: min(70vh, 540px); overflow-y: auto; padding: .55rem; border: 1px solid #416d80; border-radius: 12px; background: #0c1a28; box-shadow: 0 20px 55px #000b; }
.nav-popover a, .nav-popover button { display: flex; align-items: center; min-height: 44px; width: 100%; padding: .55rem .65rem; color: #e7f7ff; text-decoration: none; font-size: .88rem; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.nav-popover a:hover, .nav-popover button:hover { background: #17374a; }
.nav-popover .closed-link { color: #a9c7d3; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; border: 1px solid #4e8ca8; border-radius: 9px; background: #183c50; color: #e8fbff; text-decoration: none; }
.button-link.quiet { background: transparent; }
.button-link:focus-visible { outline: 3px solid #80e8fa; outline-offset: 3px; }
.hall-link { display: flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid #315764; border-radius: 9px; background: #162b36; color: #e0f5fb; text-decoration: none; }
.hall-link { flex-direction: column; align-items: flex-start; justify-content: center; gap: .12rem; }
.hall-link small { color: #a9c7d3; font-size: .78rem; line-height: 1.4; }
.hall-link[aria-current=page] { border-color: #80e8fa; background: #19475d; }
.hall-link:hover { background: #205069; }
.profile-post { border-top: 1px solid #294452; padding: .7rem 0; }
.profile-post p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bar { flex-wrap: wrap; }
.bar nav { flex-wrap: wrap; justify-content: center; }
.bar nav a { min-height: 44px; display: inline-flex; align-items: center; }
.intro { padding-top: 3.2rem; }
.narrow { max-width: 650px; margin: 0 auto 3rem; }
.notice.error { border-color: #cb7575; background: #351d25; color: #ffdddd; }
.account-actions, .pagination, .conversation-row { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1rem 0; }
.pagination { justify-content: space-between; }
.danger { background: #6a303c; border-color: #bd6b7a; }
.danger:hover { background: #8d3d4b; }
.profile-link { font-weight: 700; }
.report { border-bottom: 1px solid #294452; padding: 1rem 0; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.report p { flex-basis: 100%; }
.report a { margin-right: auto; }
.report textarea { flex-basis: 100%; }
.review-deadline { padding: .55rem .7rem; border: 1px solid #426579; border-radius: 8px; background: #142d3b; font-weight: 700; }
.review-deadline.warning { border-color: #b09a57; color: #fff0b9; }
.review-deadline.urgent, .review-deadline.overdue, .overdue-note { border-color: #c47c7c; color: #ffe0df; background: #39222b; }
.overdue-note { padding: .55rem .7rem; border: 1px solid #c47c7c; border-radius: 8px; }
.retention-history { flex-basis: 100%; border: 1px solid #294452; border-radius: 8px; padding: .7rem; overflow-wrap: anywhere; }
.retention-history h4 { margin: 0 0 .5rem; }
.retention-history p { margin: .4rem 0; }
.evidence-body { flex-basis: 100%; white-space: pre-wrap; padding: .7rem; border: 1px solid #567787; border-radius: 8px; background: #091621; }
.admin-controls { border-top: 1px solid #294452; margin-top: 2rem; padding-top: 1rem; }
.admin-controls form { max-width: 650px; }
select { width: 100%; color: #f4f7f5; background: #091621; border: 1px solid #45616a; border-radius: 8px; padding: .65rem; font: inherit; }
select:focus-visible { outline: 3px solid #d8bb7e; outline-offset: 3px; }
.conversation-row { align-items: center; justify-content: space-between; }
.conversation-row .quiet { flex: 1; text-align: left; }
.notice-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1px solid #294452; padding: .6rem 0; }
.notice-row span { flex-basis: 100%; }
.notice-row button { padding: .3rem .5rem; font-size: .8rem; }
.message { padding: .8rem; margin: .7rem 0; border: 1px solid #294452; border-radius: 10px; }
.message.user { background: #142b3b; }
.message.assistant { background: #172d30; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.core-mark { font-size: 4rem; color: #80e8fa; text-shadow: 0 0 30px #4a96ee; text-align: center; }
dialog { max-width: min(92vw, 600px); width: 100%; padding: 1.5rem; color: #edf8ff; background: #101e2a; border: 1px solid #53869a; border-radius: 14px; }
dialog::backdrop { background: #02070dcc; }
dialog form { display: grid; gap: .7rem; }
hr { border: 0; border-top: 1px solid #294452; margin: 2rem 0; }
button { min-height: 44px; }
@media (max-width: 760px) {
  .bar { gap: .5rem; }
  .bar nav { width: 100%; justify-content: flex-start; gap: .5rem 1rem; }
  .bar nav a { font-size: .82rem; }
  .gateway-nav { justify-content: flex-start !important; }
  .nav-menu { flex: 1; }
  .nav-menu summary { justify-content: space-between; font-size: .8rem; }
  .nav-popover { left: 0; right: auto; }
  .session { margin-left: auto; }
  .report { align-items: stretch; }
  .report a, .report button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
