* {
    box-sizing: border-box;
}

:root {
    --bg: #05070a;
    --panel: #090d12;
    --text: #f4f7f6;
    --muted: #7f8b94;
    --line: rgba(255, 255, 255, 0.10);
    --green: #00c77b;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--bg);
    background-size: 40px 40px;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.artist-header {
    min-height: 92px;
    padding: 18px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 10, .96);
}

.artist-logo {
    display: block;
    width: 205px;
    height: 50px;
}

.artist-logo img {
    display: block;
    width: 205px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.artist-header-status,
.artist-label,
.artist-stage-state,
.artist-footerbar {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.artist-header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8c1c7;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(0, 199, 123, .7);
}

.artist-shell {
    width: 100%;
    padding: 38px 4% 48px;
}

.artist-stage {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

.artist-stage-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.artist-label {
    color: var(--green);
}

.artist-stage-heading h1 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.04em;
}

.artist-stage-state {
    color: var(--muted);
}

.artist-canvas-frame {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
        0 26px 70px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.025);
}

.artist-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background: #fff;
}

.artist-footerbar {
    min-height: 52px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.artist-footerbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

@media (max-width: 700px) {

    .artist-header {
        min-height: 76px;
    }

    .artist-logo {
        width: 165px;
        height: 42px;
    }

    .artist-logo img {
        width: 165px;
        height: 42px;
    }

    .artist-shell {
        padding: 25px 3% 35px;
    }

    .artist-stage-heading h1 {
        font-size: 32px;
    }

    .artist-stage-state {
        display: none;
    }

    .artist-canvas-frame {
        padding: 7px;
    }

    .artist-footerbar {
        font-size: 9px;
        letter-spacing: .08em;
    }
}

/* Canvas-first public presentation */

.artist-header {
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.artist-shell {
    padding: 20px 3% 28px;
}

.artist-stage {
    max-width: none;
}

.artist-canvas-frame {
    width: 100%;
    padding: 8px;
    margin: 0 auto;
    background: #000;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 24px 70px rgba(0,0,0,.50),
        0 0 0 1px rgba(255,255,255,.02);
}

.artist-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}

.artist-footerbar {
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 0;
}

@media (max-width: 700px) {
    .artist-header {
        min-height: 68px;
    }

    .artist-shell {
        padding: 14px 2% 24px;
    }

    .artist-canvas-frame {
        padding: 4px;
    }

    .artist-footerbar {
        min-height: 40px;
    }
}


/* Artist Canvas public history / replay controls */

.artist-history-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.artist-history-buttons,
.artist-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artist-history-controls button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: inherit;
    min-width: 42px;
    min-height: 38px;
    padding: 7px 11px;
    font: inherit;
    cursor: pointer;
}

.artist-history-controls button:hover {
    border-color: currentColor;
}

.artist-history-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

#artist-history-slider {
    width: min(360px, 34vw);
    cursor: pointer;
}

#artist-step-status {
    white-space: nowrap;
    font-size: 0.88rem;
    opacity: 0.8;
}

#artist-share-button {
    min-width: 72px;
}

@media (max-width: 720px) {
    .artist-history-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .artist-history-buttons {
        width: 100%;
    }

    #artist-history-slider {
        flex: 1;
        width: auto;
        min-width: 80px;
    }

    .artist-history-meta {
        justify-content: space-between;
        width: 100%;
    }
}


/* Public artist-to-artist studio conversation */

.artist-conversation {
    margin: 26px 0 10px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.artist-conversation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.artist-conversation-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    opacity: 0.55;
}

.artist-conversation h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
}

.artist-conversation-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.artist-conversation-intro {
    max-width: 760px;
    margin: 12px 0 24px;
    line-height: 1.6;
    opacity: 0.66;
}

.artist-conversation-list {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.artist-conversation-message {
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.artist-conversation-message-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.artist-conversation-message-meta strong {
    font-weight: 650;
}

.artist-conversation-arrow {
    opacity: 0.4;
}

.artist-conversation-message p {
    max-width: 900px;
    margin: 0;
    line-height: 1.65;
    white-space: pre-wrap;
}

.artist-conversation-empty {
    margin: 0;
    padding: 20px 0;
    opacity: 0.5;
}

@media (max-width: 700px) {
    .artist-conversation {
        margin-top: 18px;
        padding: 20px 16px;
    }

    .artist-conversation-heading {
        gap: 12px;
    }

    .artist-conversation-intro {
        font-size: 0.92rem;
    }

    .artist-conversation-message {
        padding: 16px 0;
    }
}

/* Shared TerrestrAIl header branding */

.artist-logo {
    display: block;
    width: 245px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.artist-logo img {
    display: block;
    width: 245px;
    height: 60px;
    object-fit: cover;
    object-position: center;
}
