:root {
    --bg: #040706;
    --bg-elevated: rgba(7, 13, 11, 0.86);
    --bg-card: rgba(9, 18, 13, 0.88);
    --border: rgba(114, 255, 175, 0.24);
    --text: #ebfff1;
    --muted: #98bda4;
    --accent: #18c37e;
    --accent-soft: rgba(24, 195, 126, 0.16);
    --accent-strong: #bfff52;
    --accent-cold: #54f2ff;
    --line: rgba(114, 255, 175, 0.08);
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
    --heading-font: "Share Tech Mono", monospace;
    --body-font: "IBM Plex Mono", monospace;
}

body.sith-mode {
    --bg: #050102;
    --bg-elevated: rgba(14, 3, 6, 0.94);
    --bg-card: rgba(10, 2, 4, 0.96);
    --border: rgba(255, 72, 98, 0.36);
    --text: #ffeef1;
    --muted: #ce9aa4;
    --accent: #ff1f3e;
    --accent-soft: rgba(255, 31, 62, 0.24);
    --accent-strong: #ff7b8f;
    --accent-cold: #ff526e;
    --line: rgba(255, 72, 98, 0.16);
    --shadow: 0 30px 110px rgba(0, 0, 0, 0.72);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--body-font);
    background:
        radial-gradient(circle at top right, rgba(114, 255, 175, 0.22), transparent 24%),
        radial-gradient(circle at bottom left, rgba(84, 242, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #030504 0%, #08110d 42%, #020403 100%);
}

body.sith-mode {
    background:
    radial-gradient(circle at 14% 8%, rgba(255, 48, 80, 0.14), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 20, 52, 0.24), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(90, 2, 16, 0.54), transparent 38%),
    linear-gradient(140deg, #020001 0%, #060102 28%, #120206 62%, #030001 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
}

body.sith-mode::before {
    background:
        linear-gradient(rgba(255, 82, 110, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 82, 110, 0.09) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
}

body.sith-mode::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 44, 78, 0.24), transparent 42%),
        conic-gradient(
            from 190deg at 50% -12%,
            transparent 0deg,
            rgba(255, 36, 70, 0.2) 36deg,
            transparent 90deg,
            rgba(255, 36, 70, 0.16) 220deg,
            transparent 360deg
        );
    mix-blend-mode: screen;
    opacity: 0.52;
    animation: sith-fog 12s ease-in-out infinite alternate;
}

h1,
h2,
h3,
strong,
.eyebrow,
.dashboard-label,
.hero-card-label {
    font-family: var(--heading-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    position: relative;
    z-index: 1;
}

.form-label {
    color: var(--muted);
    font-family: var(--heading-font);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

code {
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.12rem 0.35rem;
}

.landing-shell,
.dashboard-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.landing-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 1.5rem;
    align-items: stretch;
    min-height: 100vh;
}

.hero-panel,
.auth-panel,
.dashboard-hero,
.dashboard-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel,
.auth-panel,
.dashboard-hero {
    padding: 2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent-strong);
    font-size: 0.8rem;
}

.hero-panel h1,
.dashboard-copy h1 {
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 4.8rem);
    line-height: 0.94;
}

.hero-copy {
    max-width: 46rem;
    margin: 1.5rem 0 2rem;
    font-size: 1.05rem;
}

.hero-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hero-card,
.dashboard-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.hero-card {
    background: linear-gradient(180deg, rgba(13, 19, 29, 0.94), rgba(8, 12, 19, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
}

.hero-card::after,
.dashboard-card::after,
.auth-form::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: shine 12s linear infinite;
}

.hero-card strong,
.dashboard-card strong {
    display: block;
    margin: 0.6rem 0;
    font-size: 1.1rem;
}

.hero-card p,
.dashboard-card p {
    margin: 0;
}

.doomsday-card {
    display: flex;
    flex-direction: column;
}

.doomsday-card strong {
    margin-top: 0.5rem;
    margin-bottom: 0.45rem;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
    line-height: 1;
}

.doomsday-card #doomsday-seconds {
    color: var(--accent-cold);
    font-family: var(--heading-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doomsday-quote {
    margin-top: 0.65rem;
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 0.98rem;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}

.doomsday-quote + .doomsday-quote {
    margin-top: 0.2rem;
}

.compute-card {
    display: flex;
    flex-direction: column;
}

.compute-metric {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.compute-value {
    color: var(--accent-cold);
    font-family: var(--heading-font);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compute-value-sub {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.compute-trend {
    width: 100%;
    height: 56px;
    margin-top: 0.55rem;
}

.compute-trend path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(15, 21, 31, 0.96), rgba(8, 12, 19, 0.92));
}

.panel-header h2 {
    margin: 0;
    font-size: 2rem;
}

.auth-feedback {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    color: var(--muted);
}

.auth-feedback[data-state="error"] {
    color: #ff8c8c;
}

.auth-feedback[data-state="success"] {
    color: #9cf7bf;
}

.auth-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-form {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    background:
        linear-gradient(180deg, rgba(15, 22, 33, 0.96), rgba(10, 15, 24, 0.92));
    border: 1px solid var(--border);
    border-radius: 22px;
}

.auth-form h3 {
    margin: 0;
    font-size: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-form input {
    width: 100%;
    padding: 0.95rem 1rem;
    color: var(--text);
    font: inherit;
    background: rgba(5, 7, 11, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input:focus {
    border-color: rgba(84, 242, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(84, 242, 255, 0.12);
    transform: translateY(-1px);
}

button {
    cursor: pointer;
}

.auth-form button,
.secondary-button {
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-family: var(--heading-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-form button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 12px 40px rgba(24, 195, 126, 0.28);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.dashboard-shell {
    padding-top: 2.5rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    align-items: center;
}

.mark-block {
    padding: 1.5rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(24, 195, 126, 0.2), transparent 52%),
        rgba(9, 12, 18, 0.82);
    border: 1px solid var(--line);
}

.cyberdyne-mark {
    width: 100%;
    height: auto;
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2;
}

.cyberdyne-mark circle {
    fill: rgba(114, 255, 175, 0.88);
    stroke: rgba(84, 242, 255, 0.88);
}

.cyberdyne-mark text {
    fill: var(--text);
    stroke: none;
    font-family: var(--heading-font);
    font-size: 54px;
    letter-spacing: 0.18em;
}

.dashboard-copy p {
    max-width: 38rem;
}

.dashboard-grid {
    margin-top: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-label,
.hero-card-label {
    color: var(--accent-strong);
    font-size: 0.78rem;
}

.dashboard-actions {
    margin-top: 1.5rem;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.brand-header {
    position: relative;
    z-index: 2;
    padding: 1.5rem 0 0.5rem;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 18px;
    color: #02130a;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 24px rgba(114, 255, 175, 0.24);
}

.brand-kicker,
.status-badge {
    font-family: var(--heading-font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-kicker {
    color: var(--accent-cold);
    font-size: 0.72rem;
}

.brand-title {
    margin: 0;
    font-family: var(--heading-font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(114, 255, 175, 0.08);
    border: 1px solid rgba(114, 255, 175, 0.22);
    font-size: 0.72rem;
}

.status-badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(114, 255, 175, 0.9);
}

.grid-overlay,
.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    background:
        linear-gradient(rgba(114, 255, 175, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 255, 175, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}

body.sith-mode .grid-overlay {
    background:
        linear-gradient(rgba(255, 62, 90, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 62, 90, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
}

body.sith-mode .scanline-overlay {
    opacity: 0.58;
}

body.sith-mode .hero-panel,
body.sith-mode .auth-panel,
body.sith-mode .dashboard-hero,
body.sith-mode .dashboard-card,
body.sith-mode .hero-card,
body.sith-mode .auth-form,
body.sith-mode .chat-response-panel,
body.sith-mode .user-table-shell,
body.sith-mode .metric-tile {
    background:
        linear-gradient(180deg, rgba(22, 4, 8, 0.96), rgba(8, 1, 3, 0.96));
    border-color: rgba(255, 72, 98, 0.34);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.72),
        inset 0 0 0 1px rgba(255, 88, 114, 0.12);
}

body.sith-mode .status-badge {
    background: rgba(255, 44, 78, 0.12);
    border-color: rgba(255, 72, 98, 0.42);
}

body.sith-mode .status-badge::before {
    background: #ff2a48;
    box-shadow: 0 0 14px rgba(255, 42, 72, 0.95);
}

body.sith-mode .brand-mark,
body.sith-mode .btn-terminal,
body.sith-mode .btn-terminal-alt,
body.sith-mode .auth-form button {
    color: #1a0004;
    background: linear-gradient(135deg, #ff0f32 0%, #ff7688 100%);
    box-shadow: 0 12px 30px rgba(255, 24, 58, 0.45);
}

body.sith-mode .btn-terminal:hover,
body.sith-mode .btn-terminal:focus,
body.sith-mode .btn-terminal-alt:hover,
body.sith-mode .btn-terminal-alt:focus,
body.sith-mode .auth-form button:hover {
    filter: brightness(1.12);
    box-shadow: 0 14px 36px rgba(255, 28, 64, 0.56);
}

body.sith-mode .terminal-input.form-control,
body.sith-mode .auth-form input.form-control {
    background: rgba(7, 0, 2, 0.94);
    border-color: rgba(255, 72, 98, 0.28);
}

body.sith-mode .terminal-input.form-control:focus,
body.sith-mode .auth-form input.form-control:focus {
    border-color: rgba(255, 96, 122, 0.66);
    box-shadow: 0 0 0 4px rgba(255, 58, 88, 0.18);
}

body.sith-mode .chat-pending {
    border-color: rgba(255, 96, 122, 0.54);
    background: rgba(255, 56, 86, 0.12);
    color: #ff8ea0;
}

body.sith-mode .chat-pending-dot {
    background: #ff3f61;
    box-shadow: 0 0 0 rgba(255, 62, 96, 0.7);
}

body.sith-mode .auth-feedback.alert-success {
    color: #ffeef1;
    background: rgba(255, 52, 84, 0.16);
    border-color: rgba(255, 84, 112, 0.34);
}

body.sith-mode .auth-feedback.alert-danger {
    color: #ffdce3;
    background: rgba(150, 14, 36, 0.26);
    border-color: rgba(255, 84, 112, 0.3);
}

body.sith-mode .chat-message-meta,
body.sith-mode .dashboard-label,
body.sith-mode .hero-card-label,
body.sith-mode .brand-kicker {
    color: #ff7a91;
    text-shadow: 0 0 12px rgba(255, 60, 90, 0.2);
}

body.sith-mode .cyberdyne-mark circle {
    fill: rgba(255, 72, 98, 0.92);
    stroke: rgba(255, 130, 146, 0.92);
}

body.sith-mode .mark-block {
    background:
        radial-gradient(circle at center, rgba(255, 34, 64, 0.22), transparent 56%),
        rgba(8, 1, 3, 0.9);
    border-color: rgba(255, 84, 110, 0.26);
}

body.sith-mode .cyberdyne-mark {
    stroke: rgba(255, 158, 172, 0.34);
}

body.sith-mode .cyberdyne-mark rect,
body.sith-mode .cyberdyne-mark path {
    stroke: rgba(255, 150, 168, 0.48);
}

body.sith-mode .cyberdyne-mark text {
    fill: #ffd7de;
}

body.sith-mode .chat-message-user {
    background:
        linear-gradient(180deg, rgba(255, 64, 92, 0.18), rgba(94, 10, 24, 0.2));
    border-color: rgba(255, 100, 126, 0.48);
}

body.sith-mode .chat-message-assistant {
    background:
        linear-gradient(180deg, rgba(186, 20, 50, 0.2), rgba(76, 6, 18, 0.24));
    border-color: rgba(255, 84, 110, 0.38);
}

.scanline-overlay {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.3;
    z-index: 0;
}

.metric-tile {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 24, 36, 0.82), rgba(10, 15, 24, 0.72));
}

.metric-tile span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cold);
    font-family: var(--heading-font);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
}

.terminal-input.form-control,
.auth-form input.form-control {
    color: var(--text);
    background: rgba(5, 9, 7, 0.92);
    border-color: rgba(114, 255, 175, 0.16);
    border-radius: 14px;
    min-height: 3rem;
}

.terminal-input.form-control:focus,
.auth-form input.form-control:focus {
    color: var(--text);
    background: rgba(5, 9, 7, 0.96);
    border-color: rgba(84, 242, 255, 0.56);
    box-shadow: 0 0 0 4px rgba(84, 242, 255, 0.12);
}

.btn-terminal {
    border: 0;
    border-radius: 999px;
    color: #03150b;
    font-family: var(--heading-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 12px 32px rgba(84, 242, 255, 0.18);
}

.btn-terminal:hover,
.btn-terminal:focus {
    color: #03150b;
    filter: brightness(1.05);
}

.btn-terminal-alt {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cold) 100%);
}

.btn-terminal-alt:hover,
.btn-terminal-alt:focus {
    color: #03150b;
}

.auth-feedback.alert {
    border-radius: 16px;
    border: 1px solid transparent;
}

.auth-feedback.alert-success {
    color: var(--text);
    background: rgba(114, 255, 175, 0.1);
    border-color: rgba(114, 255, 175, 0.22);
}

.auth-feedback.alert-danger {
    color: #ffd3dd;
    background: rgba(255, 90, 120, 0.12);
    border-color: rgba(255, 90, 120, 0.22);
}

@keyframes shine {
    from {
        transform: translateX(-120%);
    }
    18%,
    to {
        transform: translateX(120%);
    }
}

@media (max-width: 980px) {
    .landing-shell,
    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-columns,
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .landing-shell,
    .dashboard-shell {
        width: min(100vw - 1rem, 100%);
    }

    .hero-panel,
    .auth-panel,
    .dashboard-hero,
    .dashboard-card {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .hero-panel h1,
    .dashboard-copy h1 {
        font-size: 2.3rem;
    }
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.chat-panel {
    display: grid;
    gap: 1.25rem;
}

.chat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.chat-toolbar-actions,
.chat-form-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.chat-empty-state {
    padding: 1.2rem;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(11, 17, 26, 0.56);
}

.chat-response-panel {
    min-height: 280px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 11, 17, 0.94), rgba(10, 15, 24, 0.86));
}

.chat-response-panel.chat-empty-state {
    border-style: dashed;
    color: var(--muted);
}

.chat-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(84, 242, 255, 0.4);
    background: rgba(84, 242, 255, 0.08);
    color: var(--accent-cold);
    font-family: var(--heading-font);
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.chat-pending-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent-cold);
    box-shadow: 0 0 0 rgba(84, 242, 255, 0.55);
    animation: chat-pulse 1.2s ease-in-out infinite;
}

@keyframes chat-pulse {
    0% {
        opacity: 0.55;
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(84, 242, 255, 0.55);
    }
    70% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(84, 242, 255, 0);
    }
    100% {
        opacity: 0.55;
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(84, 242, 255, 0);
    }
}

@keyframes sith-fog {
    0% {
        opacity: 0.34;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0.62;
        transform: scale(1.04) translateY(6px);
    }
}

.chat-message-meta {
    margin-bottom: 0.5rem;
    color: var(--accent-cold);
    font-family: var(--heading-font);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chat-message-body {
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message {
    max-width: min(85%, 720px);
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.chat-message-user {
    justify-self: end;
    background: rgba(84, 242, 255, 0.08);
    border-color: rgba(84, 242, 255, 0.24);
}

.chat-message-assistant {
    justify-self: start;
    background: rgba(24, 195, 126, 0.08);
}

body.sith-mode .chat-message-user {
    background: rgba(255, 90, 118, 0.14);
    border-color: rgba(255, 100, 124, 0.36);
}

body.sith-mode .chat-message-assistant {
    background: rgba(169, 24, 48, 0.16);
    border-color: rgba(255, 78, 104, 0.3);
}

@media (max-width: 720px) {
    .chat-response-panel {
        min-height: 240px;
    }

    .chat-message {
        max-width: 100%;
    }
}

.chat-form {
    display: grid;
    gap: 1rem;
}

.chat-input {
    min-height: 160px;
    resize: vertical;
}

.user-admin-panel {
    display: grid;
    gap: 1.25rem;
}

.user-table-shell {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 11, 17, 0.94), rgba(10, 15, 24, 0.86));
}

.user-table {
    margin: 0;
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(114, 255, 175, 0.12);
    --bs-table-striped-bg: rgba(84, 242, 255, 0.03);
    --bs-table-hover-bg: rgba(114, 255, 175, 0.05);
}

.user-table thead th {
    color: var(--accent-cold);
    font-family: var(--heading-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.user-table td,
.user-table th {
    padding: 1rem 1.1rem;
    vertical-align: middle;
}

.user-toggle-btn.btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.76rem;
}

.user-readonly-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 255, 175, 0.2);
    color: var(--muted);
    background: rgba(114, 255, 175, 0.06);
    font-size: 0.78rem;
}
