/* Decorative ship skin. All operational content remains real, selectable HTML. */
:root { --panel-800: #152027; --bg-850: #101a20; --text-400: #a3b6bf; --line-600: #384e58; }
body { background: #070d12 url('../assets/backgrounds/ship-interior-v1.png') center top / cover fixed no-repeat; }
.ambient { background-image: linear-gradient(90deg, #040a1090, #09101840, #040a1090), url('../assets/backgrounds/ship-interior-v1.png'); }
.bridge-body { background-image: linear-gradient(#07101955, #070e17bb), url('../assets/backgrounds/ship-interior-v1.png'); }
.system-bar { background: linear-gradient(180deg, #293a43f5, #0b1319fa); border-bottom: 1px solid #79949e; box-shadow: 0 5px 0 #03070c, 0 6px 0 #354954, 0 12px 30px #0009; }
.brand, .identity h1 { color: #eef8fc; text-shadow: 0 0 22px #7ed4e52b; }
.brand span, .eyebrow { color: #aec9d3; }
.role-label { background: #0b151d; border-color: #506e7a; box-shadow: inset 0 0 12px #0008; }
.bridge-layout { background: transparent; }
.navigation { background: linear-gradient(90deg, #071016f5, #13202aee); border-right: 1px solid #47606c; }
.nav-link { margin-block: 5px; border: 1px solid transparent; border-left-width: 3px; }
.nav-link[aria-current='page'] { background: linear-gradient(90deg, #b77a252d, #152630cc); border-color: #48606b; border-left-color: #efb858; box-shadow: inset 0 1px #89a9b21a; }
.view-heading { padding: 22px 24px; background: linear-gradient(105deg, #10222cf5, #0b131bd4); border: 1px solid #45616e; border-left: 3px solid #dca345; box-shadow: 0 8px 28px #0005, inset 0 1px #7898a42b; }
.view-heading h1 { letter-spacing: .025em; }
.bridge-panel, .access-panel { position: relative; background: linear-gradient(135deg, #182a34fa, #101a22fc 65%); border: 1px solid #526e7b; box-shadow: inset 0 1px #99b2b54d, inset 0 -2px #0009, 0 14px 35px #0006; }
.bridge-panel::after, .access-panel::after { content: ''; position: absolute; inset: -5px; border: 15px solid transparent; border-image: url('../assets/backgrounds/ship-frame-v1.png') 100 / 15px / 0 stretch; pointer-events: none; z-index: 2; }
.section-bar, .panel-bar { background: linear-gradient(#30424ddd, #14232be8); border-bottom-color: #577581; }
.section-bar h2, .panel-bar { letter-spacing: .045em; }
.module-card, .archive-list > a { position: relative; background: linear-gradient(125deg, #1d303bee, #0b151ef5); border: 1px solid #46616f; border-top-color: #6a8592; box-shadow: inset 0 0 0 3px #070e1644, 0 4px 12px #0006; padding: 24px; }
.module-card::before { content: ''; position: absolute; top: 0; right: 16px; height: 3px; width: 32px; background: #6d9fab; }
.module-card:hover, .archive-list > a:hover { border-color: #e9b45b; background: linear-gradient(125deg, #2c3c40, #13232d); }
.module-card .card-heading .icon { color: #b5dce4; }
.aura-panel { border-top-color: #86c5ce; background: radial-gradient(ellipse at 50% 0, #35677355, transparent 60%), #111e27f5; }
.aura-panel .section-bar .icon { color: #8bcbd4; }
.context-note { background: #09131bd9; padding: 18px; border: 1px solid #324a58; }
.button-secondary { background: linear-gradient(#283d48, #13212a); border-color: #647f8b; box-shadow: inset 0 1px #aecad233, 0 2px 4px #0006; }
.button-primary { background: linear-gradient(#f0bd65, #ca8b31); border-color: #f0c781; color: #13171a; box-shadow: inset 0 1px #fff7, 0 3px 10px #0005; letter-spacing: .075em; }
input, textarea, select, .archive-filters input, .archive-filters select, .cabin-fields input, .cabin-fields textarea { background: #07121a; border-color: #526f7e; box-shadow: inset 0 2px 7px #0007; color: #e5f0f4; }
textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #f3c676; outline-offset: 4px; }
.private-scope, .archive-scope { background: #07121bea; }
.archive-reader { background: #111d26fa; }
.archive-table th { background: #1e3540; }
.system-footer, .prototype-footer { background: #08121bef; border-top-color: #597784; }
.access-panel { max-width: 480px; }
.restriction { background: #0b1720ed; }
.mobile-toolbar { background: #0d1c26f5; border-bottom: 1px solid #587380; }
@media (min-width: 1024px) { .bridge-main { padding-top: 40px; } .aura-aside { padding-top: 40px; } }
@media (max-width: 639px) { body { background-attachment: scroll; } .view-heading { padding: 18px 14px; gap: 14px; } .bridge-panel::after, .access-panel::after { inset: -2px; border-image-width: 9px; } .module-card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

#messages-history { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding: 4px; }
.message-item { padding: 16px; background: #08151d; border: 1px solid #46616f; border-left: 3px solid #7cb2c1; overflow-wrap: anywhere; }
.message-item.message-own { border-left-color: #dca345; background: #1d2930; }
.message-item .module-notice { margin-bottom: 8px; }
