:root {
    color-scheme: dark;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #e0f0fa;
    background: #060d18;
    --cyan: #69e4f7;
    --muted: #a0b9c9;
    --border: #254658;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 74% -6%, #143a50, transparent 52%), #060d18;
}
button, input, select { font: inherit; }
button, input, select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .65rem .8rem;
    background: #0b1b29;
    color: inherit;
}
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.topbar {
    min-height: 64px;
    padding: .7rem max(1.2rem, calc((100% - 1180px) / 2));
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #071421;
}
.wordmark { font-weight: 700; font-size: 1.22rem; white-space: nowrap; }
.wordmark span {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
}
.wordmark small, .hero p, .coverage, td small { color: var(--muted); }
.wordmark small { margin-left: .6rem; font-weight: 400; }
.workspace { max-width: 1228px; padding: 0 24px 48px; margin: auto; }
.hero { min-height: 200px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.035em; }
.hero p { margin: .65rem 0 0; }
.orb {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    position: relative;
    border: 1px solid #4bb7d1;
    border-radius: 50%;
    background: radial-gradient(circle, #1a788e 0%, #123045 26%, #081522 56%);
    box-shadow: 0 0 34px #3bd6ed39, inset 0 0 22px #25adc438;
}
.orb i { position: absolute; inset: 10%; border: 1px dashed #66eaff; border-radius: 50%; animation: spin 24s linear infinite; opacity: .8; }
.orb i:nth-child(2) { inset: 21%; border-style: solid; border-color: #73e9ff transparent; animation-direction: reverse; animation-duration: 12s; }
.orb i:nth-child(3) { inset: 32%; border-style: dotted; animation-duration: 8s; }
.orb span { position: absolute; inset: 40%; border-radius: 50%; background: #aaf7ff; box-shadow: 0 0 24px #46e6ff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orb i { animation: none; } }
.panel { border: 1px solid var(--border); border-radius: 14px; background: #0a1825; overflow: hidden; }
.filters { display: flex; align-items: center; gap: .65rem; padding: 1rem; flex-wrap: wrap; }
.filters input { flex: 1 1 200px; min-width: 0; }
.coverage { margin: 0; padding: .75rem 1rem; font-size: .87rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .85rem 1rem; border-top: 1px solid #1d3647; }
th { color: var(--muted); font-size: .86rem; }
td strong { overflow-wrap: anywhere; }
td small { display: block; margin-top: .3rem; overflow-wrap: anywhere; }
.status { white-space: nowrap; color: #ffd38b; font-size: .84rem; }
.status.answered { color: #8ae8b5; }
.status.uncertain { color: #a0d6fb; }
.login { width: min(420px, calc(100% - 2rem)); margin: 10vh auto 0; text-align: center; }
.login .orb { margin: 0 auto 1.8rem; }
.login form { display: grid; gap: .65rem; margin-top: 2rem; text-align: left; }
.brand { color: var(--cyan); letter-spacing: .16em; font-size: .8rem; }
.primary { background: #85e8f6; color: #071421; font-weight: 700; }
@media (max-width: 560px) { .hero .orb { width: 78px; height: 78px; flex-basis: 78px; } }
a { color: var(--cyan); text-underline-offset: .18em; }
td a { font-weight: 650; }
.hero h1 { overflow-wrap: anywhere; }
.message-layout { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(32%); gap: 1rem; }
.message-body { padding: 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.attachments { padding: 1.25rem; overflow-wrap: anywhere; }
.attachments h2 { margin: 0; font-size: 1rem; }
.attachments ul { padding-left: 1rem; margin-bottom: 0; }
.attachments li + li { margin-top: .6rem; }
.attachments small { display: block; color: var(--muted); }
@media (max-width: 700px) { .message-layout { grid-template-columns: minmax(0, 1fr); } }
