/* Atlas Interface — Shared Mockup Styles v2 (world-class pass)
   Brand source: VITAL Suite / Live — Rich in Thought / Branding / brand-config-rit.md
   Authored 2026-05-08. Replaces v1 (2026-05-07).

   Design principles for v2:
   - Density: information per screen is high, not crowded
   - Motion: subtle, 200-300ms, spring-easing, intentional
   - Memory: Atlas's evolving knowledge of the user is visible in the UI
   - Voice: dictation is a first-class input, not an afterthought
   - Citations: interactive — hover to highlight, click to open
   - Founder POV: the tool reads as Rich's, not generic enterprise chat
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Brand */
    --rit-navy: #25326B;
    --rit-navy-deep: #1A2455;
    --rit-navy-light: #3F4F8E;
    --rit-blue: #2489E2;
    --rit-blue-soft: #6BA8E8;
    --rit-gold: #F1B91B;
    --rit-gold-soft: #FFD964;

    /* Neutrals — light surfaces */
    --text-primary: #1F2333;
    --text-secondary: #555A6E;
    --text-muted: #8A8F9E;
    --bg-white: #FFFFFF;
    --bg-light: #F4F6F9;
    --bg-canvas: #F7F8FB;
    --bg-tint: #EEF1F8;
    --border-light: #E2E5EC;
    --border-mid: #C8CDD8;

    /* Neutrals — dark surfaces (charcoal aesthetic for hero/login/index) */
    --bg-charcoal: #14161D;
    --bg-charcoal-2: #1A1D26;
    --bg-charcoal-3: #232634;
    --text-on-dark: #F4F6FB;
    --text-on-dark-secondary: #B6BCCC;
    --text-on-dark-muted: #7A8092;
    --border-on-dark: rgba(255,255,255,0.08);

    /* Status */
    --status-green: #1B7A3D;
    --status-amber: #B8860B;
    --status-red: #993333;
    --status-green-bg: #DDF1E2;
    --status-amber-bg: #FFF2CC;
    --status-red-bg: #F8D7DA;
    --status-green-bg-dark: rgba(27,122,61,0.18);
    --status-amber-bg-dark: rgba(241,185,27,0.18);
    --status-red-bg-dark: rgba(153,51,51,0.18);
    --status-blue-bg-dark: rgba(36,137,226,0.18);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-soft: 0 1px 2px rgba(20,22,29,0.04), 0 4px 12px rgba(20,22,29,0.05);
    --shadow-card: 0 2px 8px rgba(20,22,29,0.08);
    --shadow-pop: 0 12px 32px rgba(20,22,29,0.14);
    --shadow-deep: 0 24px 64px rgba(20,22,29,0.32);
    --shadow-glow-gold: 0 0 0 4px rgba(241,185,27,0.18);
    --shadow-glow-blue: 0 0 0 4px rgba(36,137,226,0.18);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 120ms;
    --duration: 220ms;
    --duration-slow: 360ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@keyframes atlas-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes atlas-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
@keyframes atlas-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.04); }
}
@keyframes atlas-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes atlas-stream-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes atlas-record {
    0%, 100% { box-shadow: 0 0 0 0 rgba(153,51,51,0.55); }
    50% { box-shadow: 0 0 0 12px rgba(153,51,51,0); }
}

html, body {
    font-family: 'Rubik', 'Calibri', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-canvas);
    line-height: 1.55;
    font-size: 15px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    color: var(--rit-navy);
    font-weight: 600;
    letter-spacing: -0.012em;
}
h1 { font-size: 28px; line-height: 1.18; }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 16px; line-height: 1.4; }

.section-header {
    font-family: 'Inter', sans-serif;
    color: var(--rit-navy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    padding-bottom: var(--space-2);
    border-bottom: 3px solid var(--rit-gold);
    margin-bottom: var(--space-4);
    display: inline-block;
}
.section-header.on-dark {
    color: var(--text-on-dark);
}

a { color: var(--rit-blue); text-decoration: none; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--rit-navy); }

button, .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}
.btn-primary {
    background: var(--rit-navy);
    color: white;
}
.btn-primary:hover { background: var(--rit-navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-secondary {
    background: var(--bg-white);
    color: var(--rit-navy);
    border: 1px solid var(--border-mid);
}
.btn-secondary:hover { border-color: var(--rit-navy); background: var(--bg-tint); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 10px;
}
.btn-ghost:hover { color: var(--rit-navy); background: var(--bg-light); }
.btn-gold {
    background: var(--rit-gold);
    color: var(--rit-navy);
    font-weight: 600;
}
.btn-gold:hover { box-shadow: var(--shadow-glow-gold); transform: translateY(-1px); }

/* SVG icon foundation — single-color, currentColor */
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ */
/* APP SHELL                                                          */
/* ------------------------------------------------------------------ */

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}
.app-shell.with-context {
    grid-template-columns: 280px 1fr 360px;
}

.sidebar {
    background: var(--bg-charcoal);
    color: var(--text-on-dark-secondary);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border-right: 1px solid var(--border-on-dark);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: var(--space-5);
    padding: 0 var(--space-2);
}
.brand-mark {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-on-dark);
    letter-spacing: -0.024em;
}
.brand-mark .gold-dot { color: var(--rit-gold); }
.brand-byline {
    font-size: 10px;
    color: var(--rit-gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    background: var(--bg-charcoal-3);
    border: 1px solid var(--border-on-dark);
    border-radius: var(--radius);
    color: var(--text-on-dark-muted);
    font-size: 12px;
    margin-bottom: var(--space-4);
}
.sidebar-search-shortcut {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-on-dark-muted);
    background: rgba(255,255,255,0.04);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-on-dark);
}

.sidebar h4 {
    color: var(--text-on-dark-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: var(--space-4) 0 var(--space-2);
    font-weight: 600;
    padding: 0 var(--space-2);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-on-dark-secondary);
    font-size: 13.5px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    line-height: 1.3;
}
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--text-on-dark); }
.sidebar-link.active {
    background: rgba(241, 185, 27, 0.10);
    color: var(--text-on-dark);
    box-shadow: inset 3px 0 0 var(--rit-gold);
}
.sidebar-link-meta {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-on-dark-muted);
    font-family: 'JetBrains Mono', monospace;
}

.sidebar-spacer { flex: 1; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-charcoal-3);
    border-radius: var(--radius);
    border: 1px solid var(--border-on-dark);
}
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--rit-gold);
    color: var(--rit-navy);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.sidebar-user-name { color: var(--text-on-dark); font-size: 13.5px; font-weight: 500; }
.sidebar-user-role { color: var(--text-on-dark-muted); font-size: 11px; margin-top: 2px; }

.main {
    padding: var(--space-7) var(--space-7) var(--space-8);
    max-width: 980px;
    width: 100%;
    overflow-x: hidden;
}

.context-rail {
    background: var(--bg-light);
    border-left: 1px solid var(--border-light);
    padding: var(--space-5) var(--space-5);
    overflow-y: auto;
    font-size: 13px;
}
.context-rail h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
}
.context-rail h4:first-child { margin-top: 0; }

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}
.topbar-title h1 { margin-bottom: var(--space-1); }
.topbar-title p { color: var(--text-secondary); font-size: 14px; }
.topbar-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

/* ------------------------------------------------------------------ */
/* MEMORY PANEL                                                       */
/* ------------------------------------------------------------------ */

.memory-panel {
    background: linear-gradient(135deg, #ffffff 0%, #F4F6F9 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.memory-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--rit-gold);
    border-radius: 4px 0 0 4px;
}
.memory-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rit-gold);
    font-weight: 700;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.memory-label::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rit-gold);
    animation: atlas-pulse 2.4s var(--ease-out) infinite;
}
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
}
.memory-item {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}
.memory-item strong {
    font-family: 'Inter', sans-serif;
    color: var(--rit-navy);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}
.memory-item em {
    font-style: italic;
    color: var(--text-secondary);
}

/* ------------------------------------------------------------------ */
/* CARDS                                                              */
/* ------------------------------------------------------------------ */

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-soft);
    transition: all var(--duration) var(--ease-out);
}
.card.elevated:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }

/* ------------------------------------------------------------------ */
/* CHAT                                                               */
/* ------------------------------------------------------------------ */

.chat-stream {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    animation: atlas-fade-up var(--duration-slow) var(--ease-out);
}

.msg {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    max-width: 760px;
}

.msg-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.msg-avatar.atlas { background: var(--rit-navy); color: white; }
.msg-avatar.user  { background: var(--rit-gold); color: var(--rit-navy); }

.msg-body { flex: 1; min-width: 0; }
.msg-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.msg-meta-pill {
    text-transform: none;
    letter-spacing: 0;
    background: var(--status-blue-bg-dark);
    color: var(--rit-blue);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 10px;
}
.msg-text {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.62;
}
.msg-text p + p { margin-top: var(--space-3); }
.msg-text strong { color: var(--rit-navy); font-weight: 600; }

.msg-text .stream-cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--rit-navy);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: atlas-stream-cursor 1.1s steps(1) infinite;
}

.msg-text .quoted {
    background: rgba(241, 185, 27, 0.16);
    padding: 1px 4px;
    border-radius: 3px;
    border-bottom: 2px solid var(--rit-gold);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}
.msg-text .quoted:hover {
    background: rgba(241, 185, 27, 0.30);
}
.msg-text .quoted-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--rit-navy);
    background: var(--rit-gold);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    vertical-align: super;
    font-weight: 700;
}

/* Composer with voice/dictation */

.composer {
    margin-top: var(--space-7);
    background: var(--bg-white);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-soft);
    transition: all var(--duration) var(--ease-out);
}
.composer:focus-within {
    border-color: var(--rit-navy);
    box-shadow: 0 0 0 4px rgba(37,50,107,0.10);
}
.composer-inner {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
}
.composer textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: transparent;
    color: var(--text-primary);
    min-height: 56px;
    padding: var(--space-2) var(--space-3);
}
.composer-mic {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background: var(--bg-white);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    flex-shrink: 0;
    margin-bottom: 4px;
}
.composer-mic:hover {
    border-color: var(--rit-navy);
    color: var(--rit-navy);
    background: var(--bg-tint);
}
.composer-mic.active {
    background: var(--status-red);
    color: white;
    border-color: var(--status-red);
    animation: atlas-record 1.4s var(--ease-out) infinite;
}
.composer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    padding-left: var(--space-2);
    border-top: 1px solid var(--border-light);
    gap: var(--space-3);
}
.composer-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.45;
}
.composer-hint kbd {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    color: var(--text-secondary);
    margin: 0 2px;
}

/* Voice mode panel — shown when mic is active */
.voice-panel {
    background: linear-gradient(180deg, #232634 0%, #14161D 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    color: var(--text-on-dark);
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-card);
}
.voice-wave {
    display: flex; align-items: center; gap: 3px;
    width: 60px; height: 32px;
    flex-shrink: 0;
}
.voice-wave span {
    display: block;
    width: 3px;
    background: var(--rit-gold);
    border-radius: 2px;
    animation: atlas-pulse 1.2s var(--ease-out) infinite;
}
.voice-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 80%; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 40%; animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { height: 50%; animation-delay: 0.6s; }
.voice-transcript {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-on-dark);
    font-style: italic;
}
.voice-transcript em {
    color: var(--text-on-dark-secondary);
    font-style: normal;
}
.voice-route-hint {
    font-size: 11px;
    color: var(--rit-gold);
    margin-top: 4px;
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* CITATION SURFACE — interactive                                      */
/* ------------------------------------------------------------------ */

.answer-frame {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-top: var(--space-3);
}
.answer-body {
    padding: var(--space-5);
}
.answer-meta-row {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}
.answer-meta-row .verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--status-green);
    font-weight: 600;
    margin-left: auto;
}
.answer-meta-row .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.citation-stack {
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    padding: var(--space-4) var(--space-5);
}
.citation-stack-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin-bottom: var(--space-3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.citation-stack-label .verified-badge {
    background: var(--status-green-bg);
    color: var(--status-green);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 10px;
}

.citation-row {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease-out);
    cursor: pointer;
    margin-bottom: var(--space-2);
}
.citation-row:hover, .citation-row.active {
    border-color: var(--rit-navy);
    box-shadow: var(--shadow-card);
    transform: translateX(2px);
}
.citation-row:last-child { margin-bottom: 0; }
.citation-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--rit-gold);
    color: var(--rit-navy);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.citation-content { flex: 1; min-width: 0; }
.citation-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--rit-navy);
    font-size: 13px;
    margin-bottom: 2px;
}
.citation-section {
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
}
.citation-quote {
    color: var(--text-primary);
    font-style: italic;
    border-left: 2px solid var(--rit-gold);
    padding: 4px 0 4px var(--space-2);
    line-height: 1.45;
    font-size: 12.5px;
}

/* ------------------------------------------------------------------ */
/* PILLS                                                              */
/* ------------------------------------------------------------------ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
}
.pill-amber { background: var(--status-amber-bg); color: var(--status-amber); }
.pill-green { background: var(--status-green-bg); color: var(--status-green); }
.pill-red   { background: var(--status-red-bg);   color: var(--status-red); }
.pill-blue  { background: #D6E4F0; color: var(--rit-blue); }
.pill-gray  { background: var(--bg-light); color: var(--text-secondary); }
.pill-navy  { background: var(--rit-navy); color: white; }

/* ------------------------------------------------------------------ */
/* DATA TABLE                                                         */
/* ------------------------------------------------------------------ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.data-table thead {
    background: var(--bg-light);
}
.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-tint); }

/* ------------------------------------------------------------------ */
/* MOCKUP CHROME                                                      */
/* ------------------------------------------------------------------ */

.mockup-note {
    position: fixed;
    top: 12px;
    right: 12px;
    background: var(--rit-gold);
    color: var(--rit-navy);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    z-index: 999;
    box-shadow: var(--shadow-card);
    animation: atlas-fade-up var(--duration-slow) var(--ease-out);
}

/* ------------------------------------------------------------------ */
/* MOBILE ADAPTATIONS                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 880px) {
    .app-shell, .app-shell.with-context {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        border-right: none;
        border-bottom: 1px solid var(--border-on-dark);
    }
    .sidebar h4, .sidebar-search, .sidebar-link, .sidebar-spacer { display: none; }
    .sidebar .brand { margin-bottom: 0; }
    .sidebar-user { padding: 4px 8px; margin-left: auto; }
    .sidebar-user-name, .sidebar-user-role { display: none; }
    .context-rail { display: none; }
    .main { padding: var(--space-5) var(--space-4) var(--space-7); }
    .topbar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .topbar-actions { width: 100%; }
    .memory-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* UTILITIES                                                          */
/* ------------------------------------------------------------------ */

.kbd {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}
.text-mono { font-family: 'JetBrains Mono', monospace; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.divider { height: 1px; background: var(--border-light); margin: var(--space-5) 0; }

.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 0%, #EAEDF3 50%, var(--bg-light) 100%);
    background-size: 200% 100%;
    animation: atlas-shimmer 1.4s linear infinite;
    border-radius: var(--radius-sm);
}
