/* =========================================================
   ASTROLOOP UNIFIED MISSION CONTROL CHAT
   20260907-unified-mission-control-chat-ui-1
   ========================================================= */

#al-mc4-root,
#al-mc4-root * {
    box-sizing: border-box;
    animation: none !important;
    transition: none !important;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

#al-mc4-root {
    position: fixed;
    left: 18px;
    bottom: 82px;
    z-index: 2147483500;
    color: #f1f1f1;
}

#al-mc4-toggle {
    width: 154px;
    height: 70px;
    border: 1px solid #62686b;
    border-radius: 34px;
    background: #34383a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

#al-mc4-toggle:hover {
    background: #44494b;
}

#al-mc4-window {
    width: 485px;
    max-width: calc(100vw - 40px);
    height: 670px;
    max-height: calc(100vh - 145px);
    display: flex;
    flex-direction: column;
    background: #202324;
    border: 1px solid #555b5e;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

#al-mc4-window[hidden] {
    display: none !important;
}

.al-mc4-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #4b5052;
    background: #292d2f;
}

.al-mc4-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.al-mc4-subtitle {
    margin-top: 2px;
    font-size: 10px;
    color: #a8afb2;
}

.al-mc4-close {
    min-width: 58px;
    height: 28px;
    border: 1px solid #62686b;
    background: #363b3d;
    color: #ffffff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.al-mc4-log {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #1b1e1f;
    border-bottom: 1px solid #4b5052;
}

.al-mc4-msg {
    max-width: 92%;
    margin: 0 0 8px;
    padding: 8px 9px;
    border: 1px solid #505659;
    background: #25292a;
    color: #e8ebec;
    font-size: 11px;
    line-height: 1.38;
    white-space: pre-wrap;
    word-break: break-word;
}

.al-mc4-user {
    margin-left: auto;
    background: #3a3f41;
}

.al-mc4-assistant {
    margin-right: auto;
    background: #242728;
}

.al-mc4-system {
    margin-right: auto;
    color: #c7cbcd;
    background: #1f2223;
    font-style: italic;
}

.al-mc4-files {
    padding: 9px 10px;
    background: #202324;
    border-bottom: 1px solid #4b5052;
}

.al-mc4-file-title {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.al-mc4-file-note {
    margin-bottom: 7px;
    color: #a8afb2;
    font-size: 9px;
    line-height: 1.35;
}

.al-mc4-file-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}

.al-mc4-file-row {
    display: contents;
}

.al-mc4-file-label {
    padding: 6px;
    border: 1px solid #424749;
    background: #17191a;
    color: #d7dadb;
    font-size: 10px;
    font-weight: 700;
}

.al-mc4-file-label small {
    display: block;
    margin-top: 2px;
    color: #8e969a;
    font-size: 8px;
    font-weight: 400;
}

.al-mc4-file-label input {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: #d7dadb;
    font-size: 9px;
}

.al-mc4-btn {
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #62686b;
    background: #34383a;
    color: #f1f1f1;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.al-mc4-btn:hover {
    background: #44494b;
}

.al-mc4-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 7px;
}

.al-mc4-status {
    min-height: 28px;
    margin-top: 7px;
    padding: 7px;
    border: 1px solid #424749;
    background: #17191a;
    color: #d7dadb;
    font-size: 10px;
    line-height: 1.35;
}

.al-mc4-links {
    display: grid;
    gap: 5px;
    margin-top: 7px;
    max-height: 96px;
    overflow-y: auto;
}

.al-mc4-link {
    display: block;
    padding: 6px 7px;
    border: 1px solid #505659;
    background: #292d2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    word-break: break-word;
}

.al-mc4-input-area {
    padding: 9px;
    background: #202324;
}

.al-mc4-input-row {
    display: grid;
    grid-template-columns: 1fr 68px 68px;
    gap: 6px;
}

#al-mc4-input {
    width: 100%;
    height: 54px;
    resize: none;
    padding: 8px;
    border: 1px solid #4b5052;
    background: #17191a;
    color: #f1f1f1;
    font-size: 11px;
    line-height: 1.35;
    outline: none;
}

#al-mc4-input:focus {
    border-color: #777e81;
}

#al-meal-artifacts-panel {
    display: none !important;
}
