:root {
    --bg: #080716;
    --panel: rgba(19, 17, 44, 0.92);
    --panel-light: rgba(27, 24, 61, 0.78);
    --cyan: #62dce2;
    --violet: #9a72ff;
    --pink: #c06cff;
    --text: #f4f3ff;
    --muted: #aaa7c1;
    --line: rgba(154, 114, 255, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: radial-gradient(circle at 76% 18%, rgba(89, 69, 171, 0.14), transparent 24%), var(--bg);
    font-family: "Manrope", sans-serif;
}

button,
textarea,
input {
    font: inherit;
}

button,
a,
textarea,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

.cosmos,
.stars,
.orb {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.cosmos {
    z-index: -1;
    overflow: hidden;
}

.stars {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(154,114,255,.6) 1px, transparent 1.5px);
    background-size: 78px 78px, 137px 137px;
    background-position: 0 0, 30px 50px;
    opacity: .28;
}

.stars-large {
    background-size: 230px 230px;
    background-position: 45px 20px;
    opacity: .18;
}

.orb {
    width: 420px;
    height: 420px;
    inset: auto;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .07;
}

.orb-one {
    top: 12%;
    right: -180px;
    background: var(--pink);
}

.orb-two {
    bottom: -240px;
    left: 10%;
    background: var(--cyan);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 7, 22, .86);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--text);
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand > span:last-child > span {
    color: var(--cyan);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(98, 220, 226, .3);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(98,220,226,.13), rgba(154,114,255,.12));
}

.brand-mark svg,
.scan-core svg {
    width: 29px;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
}

.brand-mark .brand-check,
.scan-core .scan-check {
    stroke: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    height: 100%;
}

.nav-link {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.profile-button {
    justify-self: end;
    position: relative;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(154,114,255,.28);
    border-radius: 50%;
    background: transparent;
}

.avatar {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    margin: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4c447d, #24203f);
    color: #d9d5ff;
    font-size: 11px;
    font-weight: 800;
}

.status-dot {
    position: absolute;
    right: 0;
    bottom: 2px;
    z-index: 2;
    width: 9px;
    height: 9px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: #69dda2;
}

.app-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 24px;
}

.feed-column,
.side-column {
    min-width: 0;
}

.welcome-card,
.composer,
.panel,
.post {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(2, 2, 12, .18);
    backdrop-filter: blur(14px);
}

.groups-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(2, 2, 12, .18);
}

.groups-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.groups-heading h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: 15px;
}

.group-toggle,
.group-action {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8,7,22,.38);
    color: #d7d4e9;
    font-size: 10px;
    font-weight: 800;
}

.group-toggle:hover,
.group-action:hover {
    border-color: rgba(98,220,226,.42);
}

.group-action.primary {
    border-color: transparent;
    background: rgba(98,220,226,.14);
    color: var(--cyan);
}

.group-action:disabled {
    cursor: wait;
    opacity: .6;
}

.group-create-form {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8,7,22,.32);
}

.group-create-form[hidden] {
    display: none;
}

.group-create-form input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: rgba(8,7,22,.45);
    color: var(--text);
    font-size: 11px;
}

.group-create-form input:focus {
    border-color: var(--cyan);
}

.group-create-form input::placeholder {
    color: #77748e;
}

.group-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.group-feedback {
    color: #ff9aaf;
    font-size: 10px;
}

.groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 9px;
}

.groups-empty {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.groups-safety-note {
    margin: -4px 0 0;
    color: #85819e;
    font-size: 9px;
    line-height: 1.5;
}

.group-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8,7,22,.35);
}

.group-card.selected {
    border-color: rgba(98,220,226,.42);
    background: rgba(98,220,226,.055);
}

.group-card-info {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.group-card-info h3 {
    margin: 0;
    font-size: 11px;
}

.group-card-info p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.group-members {
    color: var(--cyan);
    font-size: 9px;
}

.group-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 5px;
}

.group-role {
    color: #91e2b9;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.welcome-card {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 24px 28px;
    border-radius: 18px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.welcome-card h1 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(21px, 3vw, 30px);
    letter-spacing: -.5px;
}

.shield-score {
    display: grid;
    gap: 5px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.shield-score span {
    color: var(--muted);
    font-size: 11px;
}

.shield-score strong {
    color: #79dda9;
    font-size: 13px;
}

.shield-score i,
.live-tag i,
.nova-presence {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #69dda2;
    box-shadow: 0 0 9px #69dda2;
}

.composer {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
}

.composer-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #3a3569, #24203f);
    color: #c8c3ed;
    font-size: 11px;
    font-weight: 800;
}

.composer-body {
    min-width: 0;
}

.post-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
}

.clear-group-button {
    border: 0;
    padding: 3px 0;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
}

.composer textarea {
    width: 100%;
    height: 70px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    line-height: 1.6;
}

.composer textarea::placeholder,
.chat-form input::placeholder {
    color: #77748e;
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.composer-footer span {
    color: #77748e;
    font-size: 10px;
}

.composer-tools,
.composer-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.composer-tools {
    flex-wrap: wrap;
}

.composer-submit {
    flex: 0 0 auto;
}

.attachment-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cyan);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.attachment-button:hover {
    background: rgba(98,220,226,.08);
}

.attachment-button span {
    color: var(--cyan);
    font-size: 17px;
}

.attachment-help {
    color: #77748e;
    font-size: 9px;
}

.post-feedback {
    min-height: 0;
    margin: 0;
    color: #ff9aaf;
    font-size: 11px;
}

.post-feedback:not(:empty) {
    margin-top: 9px;
}

.primary-button,
.scan-button {
    border: 0;
    color: #080716;
    background: var(--cyan);
    font-weight: 800;
}

.primary-button {
    min-width: 96px;
    height: 38px;
    border-radius: 9px;
    font-size: 12px;
}

.feed {
    display: grid;
    gap: 16px;
}

.post {
    padding: 20px 22px;
    border-radius: 16px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: rgba(98, 220, 226, .11);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
}

.post-author {
    display: grid;
}

.post-author strong {
    font-size: 13px;
}

.post-author span {
    color: var(--muted);
    font-size: 10px;
}

.post-content {
    margin: 0 0 16px;
    color: #dcdbea;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.moderation-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(255,196,107,.2);
    border-radius: 9px;
    background: rgba(255,196,107,.06);
    color: #ffd48c;
    font-size: 10px;
}

.moderation-actions {
    display: flex;
    gap: 6px;
}

.moderation-button {
    min-height: 29px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(8,7,22,.55);
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
}

.moderation-button.approve {
    color: #91e2b9;
}

.moderation-button.reject {
    color: #ff9aaf;
}

.moderation-button:disabled {
    cursor: wait;
    opacity: .6;
}

.post-attachments {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.attachment-image-link {
    display: block;
    height: 128px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8,7,22,.55);
}

.attachment-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8,7,22,.35);
    color: var(--text);
    text-decoration: none;
}

.attachment-file-link:hover {
    border-color: rgba(98,220,226,.45);
}

.file-type-icon {
    display: grid;
    width: 34px;
    height: 38px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 7px;
    background: rgba(154,114,255,.13);
    color: #cbbaff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.file-type-icon.image {
    background: rgba(98,220,226,.12);
    color: var(--cyan);
}

.attachment-file-info {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.attachment-file-info strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-file-info span {
    color: var(--muted);
    font-size: 9px;
}

.post-footer {
    display: flex;
    align-items: center;
}

.comments-section {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comments-heading {
    margin: 0;
    color: #dcdbea;
    font-size: 11px;
    font-weight: 800;
}

.comments-empty {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.comment-item {
    min-width: 0;
    padding: 10px 12px;
    border-left: 2px solid rgba(154,114,255,.36);
    border-radius: 0 9px 9px 0;
    background: rgba(8,7,22,.34);
}

.comment-header strong {
    font-size: 10px;
}

.comment-content {
    margin: 5px 0 7px;
    color: #d6d4e5;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.reply-button {
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
}

.reply-list {
    display: grid;
    gap: 8px;
    margin-top: 9px;
    padding-left: 12px;
    border-left: 1px solid rgba(98,220,226,.18);
}

.reply-item {
    background: rgba(98,220,226,.035);
}

.reply-form-container:empty {
    display: none;
}

.comment-form {
    display: grid;
    gap: 7px;
}

.comment-form textarea {
    width: 100%;
    min-height: 54px;
    resize: vertical;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: rgba(8,7,22,.42);
    color: var(--text);
    font: inherit;
    font-size: 11px;
    line-height: 1.5;
}

.comment-form textarea::placeholder {
    color: #77748e;
}

.comment-form textarea:focus {
    border-color: rgba(98,220,226,.55);
    box-shadow: 0 0 0 3px rgba(98,220,226,.07);
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comment-feedback {
    color: #ff9aaf;
    font-size: 10px;
}

.comment-submit {
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid rgba(98,220,226,.24);
    border-radius: 8px;
    background: rgba(98,220,226,.1);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
}

.comment-submit:hover {
    background: rgba(98,220,226,.18);
}

.comment-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 5px 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.like-button.liked {
    color: var(--pink);
}

.like-button svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.like-button.liked svg {
    fill: currentColor;
}

.side-column {
    display: grid;
    align-content: start;
    gap: 16px;
}

.panel {
    border-radius: 18px;
}

.scanner-panel {
    padding: 20px;
}

.panel-heading,
.nova-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-heading h2,
.nova-header h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: 16px;
}

.live-tag {
    color: #69dda2;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.live-tag i {
    width: 6px;
    height: 6px;
    margin-right: 5px;
}

.scanner {
    position: relative;
    height: 205px;
    display: grid;
    place-items: center;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(rgba(98,220,226,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98,220,226,.035) 1px, transparent 1px);
    background-size: 24px 24px;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(98,220,226,.13);
    border-radius: 50%;
}

.ring-one {
    width: 158px;
    height: 158px;
}

.ring-two {
    width: 105px;
    height: 105px;
}

.radar-sweep {
    position: absolute;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(98,220,226,.18) 360deg);
    animation: radar 4s linear infinite;
}

@keyframes radar {
    to { transform: rotate(360deg); }
}

.scan-core {
    z-index: 3;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 1px solid rgba(98,220,226,.35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98,220,226,.14), rgba(8,7,22,.92) 68%);
    box-shadow: 0 0 32px rgba(98,220,226,.12);
}

.scan-core svg {
    width: 38px;
}

.threat-particle {
    position: absolute;
    z-index: 4;
    left: 12%;
    top: 43%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--pink);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--pink);
    transition: left 1.1s ease, top 1.1s ease, transform .5s;
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8,7,22,.38);
}

.status-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: rgba(98,220,226,.09);
    color: var(--cyan);
}

.scan-status div {
    display: grid;
    gap: 3px;
}

.scan-status small {
    color: var(--muted);
    font-size: 9px;
}

.scan-status strong {
    font-size: 12px;
}

.scan-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 12px;
}

.scan-button:disabled {
    cursor: wait;
    opacity: .65;
}

.nova-panel {
    padding: 16px;
}

.nova-header {
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.nova-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: visible;
    border: 1px solid rgba(192,108,255,.35);
    border-radius: 50%;
    background: #241d45;
}

.nova-avatar svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.nova-presence {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--panel);
}

.chat-box {
    height: 190px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding: 14px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(154,114,255,.3) transparent;
}

.message {
    width: fit-content;
    max-width: 88%;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.55;
}

.ai-message {
    border: 1px solid rgba(192,108,255,.15);
    border-bottom-left-radius: 3px;
    background: rgba(192,108,255,.09);
}

.user-message {
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    background: rgba(98,220,226,.12);
    color: #dffeff;
}

.chat-form {
    height: 44px;
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 6px;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8,7,22,.38);
}

.chat-form input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.chat-form button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--violet);
}

.chat-form button svg {
    width: 16px;
    fill: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-dialog {
    width: min(440px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100% - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(154,114,255,.3);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0,0,0,.55);
}

.auth-dialog::backdrop {
    background: rgba(3, 2, 14, .78);
    backdrop-filter: blur(7px);
}

.auth-card {
    position: relative;
    padding: 30px;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 17px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 23px;
}

.auth-card h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: 21px;
}

.auth-description,
.account-view p {
    margin: 9px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-feedback {
    min-height: 18px;
    margin: 0 0 8px;
    color: #ff9aaf;
    font-size: 11px;
}

.auth-feedback:empty {
    display: none;
}

.auth-form {
    display: grid;
    gap: 9px;
}

.auth-form label {
    margin-top: 5px;
    color: #dcd9ee;
    font-size: 11px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: rgba(8,7,22,.55);
    color: var(--text);
    font-size: 12px;
}

.auth-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(98,220,226,.1);
}

.password-hint {
    color: var(--muted);
    font-size: 10px;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-submit:disabled,
.logout-button:disabled {
    cursor: wait;
    opacity: .65;
}

.auth-switch {
    margin: 5px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.auth-switch button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--cyan);
    font-weight: 800;
}

.account-view {
    display: grid;
    gap: 8px;
}

.account-view p {
    margin: 0;
}

.account-view strong {
    font-size: 16px;
}

.account-view span {
    color: var(--muted);
    font-size: 12px;
}

.logout-button {
    height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(255,154,175,.25);
    border-radius: 9px;
    background: rgba(255,154,175,.08);
    color: #ffb1c0;
    font-size: 12px;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .radar-sweep { animation: none; }
    .threat-particle { transition: none; }
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .nav {
        display: none;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .topbar {
        height: 68px;
        padding: 0 16px;
    }

    .brand {
        font-size: 13px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .app-shell {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
    }

    .welcome-card {
        min-height: 112px;
        padding: 20px;
    }

    .shield-score {
        display: none;
    }

    .composer {
        grid-template-columns: 36px 1fr;
        padding: 12px;
    }

    .composer-avatar {
        width: 36px;
        height: 36px;
    }

    .composer-footer,
    .composer-tools {
        align-items: flex-start;
    }

    .composer-tools {
        width: 100%;
    }

    .composer-submit {
        width: 100%;
        justify-content: flex-end;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .chat-box {
        height: 220px;
    }
}
