/* =========================================================
   BOTÃO DATA NA INTERFACE PRINCIPAL
   ========================================================= */

.data-entry-button {
    position: fixed;
    z-index: 30;

    top: 26px;
    left: 30px;

    padding: 8px 4px;

    border: 0;

    background: transparent;
    color: var(--black);

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 4px;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 1.4s ease-in-out,
        letter-spacing 0.5s ease;
}

#bernard.structure-visible .data-entry-button {
    opacity: 1;
}

.data-entry-button:hover {
    letter-spacing: 6px;
}

/* =========================================================
   SAÍDA E RETORNO DO LAYOUT DO BERNARD
   ========================================================= */

/*
    PRIMEIRA ETAPA DA SAÍDA:

    painel, card e botão DATA desaparecem primeiro.
*/

#bernard.data-ui-hidden .progress-panel,
#bernard.data-ui-hidden .bernard-navigation,
#bernard.data-ui-hidden .data-entry-button {
    opacity: 0 !important;

    pointer-events: none;

    transition:
        opacity 1.35s ease-in-out !important;
}

/*
    SEGUNDA ETAPA DA SAÍDA:

    a cabeça desaparece somente depois que
    painel, card e botão DATA já sumiram.
*/

#bernard.data-head-hidden
.bernard-presence {
    opacity: 0 !important;

    pointer-events: none;

    transition:
        opacity 1.8s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        ) !important;
}

/*
    Quando as classes são removidas:

    1. data-head-hidden sai primeiro;
    2. a cabeça volta;
    3. data-ui-hidden sai depois;
    4. painel, card e botão voltam.
*/

#bernard:not(.data-head-hidden)
.bernard-presence {
    transition:
        opacity 1.8s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );
}

#bernard:not(.data-ui-hidden)
.progress-panel,

#bernard:not(.data-ui-hidden)
.bernard-navigation,

#bernard:not(.data-ui-hidden)
.data-entry-button {
    transition:
        opacity 1.35s ease-in-out;
}

/* =========================================================
   TELA PRINCIPAL
   ========================================================= */

#data-screen {
    position: fixed;
    z-index: 800;
    inset: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background: #ffffff;
    color: #111111;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 1.6s ease-in-out,
        visibility 0s linear 1.6s;
}

#data-screen.visible {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transition:
        opacity 1.6s ease-in-out,
        visibility 0s linear 0s;
}


/* =========================================================
   AMBIENT DATA BACKGROUND
   ========================================================= */

.data-ambient-background {
    position: absolute;
    z-index: 0;
    inset: 0;

    overflow: hidden;

    background: #ffffff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 2.2s ease-in-out,
        visibility 0s linear 2.2s;
}

#data-screen.background-visible
.data-ambient-background {
    opacity: 0.92;
    visibility: visible;

    transition:
        opacity 2.2s ease-in-out,
        visibility 0s linear 0s;
}

#data-screen.background-leaving
.data-ambient-background {
    opacity: 0;

    transition:
        opacity 2.4s ease-in-out;
}

.data-ambient-background
.ambient-background-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    user-select: none;
    pointer-events: none;

    transform:
        scale(1.012);

    animation-duration: 21s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.data-ambient-background
.ambient-background-image-a {
    z-index: 1;
    opacity: 1;
    animation-name: data-background-image-a;
}

.data-ambient-background
.ambient-background-image-b {
    z-index: 2;
    opacity: 0;
    animation-name: data-background-image-b;
}

.data-ambient-background
.ambient-background-image-c {
    z-index: 3;
    opacity: 0;
    animation-name: data-background-image-c;
}

@keyframes data-background-image-a {
    0%, 28% { opacity: 1; transform: scale(1.012); }
    33%, 94% { opacity: 0; transform: scale(1.022); }
    100% { opacity: 1; transform: scale(1.012); }
}

@keyframes data-background-image-b {
    0%, 28% { opacity: 0; transform: scale(1.022); }
    33%, 61% { opacity: 1; transform: scale(1.012); }
    66%, 100% { opacity: 0; transform: scale(1.022); }
}

@keyframes data-background-image-c {
    0%, 61% { opacity: 0; transform: scale(1.022); }
    66%, 94% { opacity: 1; transform: scale(1.012); }
    100% { opacity: 0; transform: scale(1.022); }
}

#data-screen.interface-leaving
.data-application,
#data-screen.interface-leaving
.data-intro {
    opacity: 0 !important;
    transform:
        translateY(4px);

    transition:
        opacity 0.9s ease-in-out,
        transform 0.9s ease-in-out,
        visibility 0s linear 0.9s;
}

/* =========================================================
   TRANSIÇÃO PARA A MEMÓRIA
   ========================================================= */

.data-intro {
    position: absolute;
    z-index: 20;
    inset: 0;

    overflow: hidden;

    background: #ffffff;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.2s ease-in-out,
        visibility 0s linear 1.2s;
}

.data-intro.visible {
    opacity: 1;
    visibility: visible;

    transition:
        opacity 1.2s ease-in-out,
        visibility 0s linear 0s;
}

.data-intro.leaving {
    opacity: 0;
}

.memory-vision {
    position: absolute;
    z-index: 1;
    inset: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        opacity 0.8s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );
}

.memory-vision.visible {
    opacity: 1;
}

.memory-vision.leaving {
    opacity: 0;

    transition:
        opacity 1.2s ease-in-out;
}

.memory-vision-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    background: #ffffff;

    user-select: none;
    pointer-events: none;

    backface-visibility: hidden;

    transform:
        translateZ(0)
        scale(1.005);

    transform-origin:
        center center;
}

.memory-vision-current {
    z-index: 1;

    opacity: 1;
}

.memory-vision-next {
    z-index: 2;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.15s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        ),

        visibility 0s linear 1.15s;
}

.memory-vision-next.visible {
    opacity: 1;
    visibility: visible;

    transition:
        opacity 1.15s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        ),

        visibility 0s linear 0s;
}

.memory-status {
    position: absolute;
    z-index: 5;

    right: clamp(22px, 3vw, 48px);
    bottom: clamp(22px, 3vw, 46px);

    width: min(
        320px,
        calc(100vw - 44px)
    );

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.memory-status p {
    margin: 0;

    color: #111111;

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 1.5;

    text-align: right;
    text-transform: lowercase;
    white-space: nowrap;

    animation:
        memory-message-pulse
        1.35s
        ease-in-out
        infinite;

    text-shadow:
        0 0 8px rgba(
            255,
            255,
            255,
            0.95
        );
}

@keyframes memory-message-pulse {
    0%,
    100% {
        opacity: 0.58;
    }

    50% {
        opacity: 1;
    }
}

.memory-progress {
    width: 100%;
    height: 1px;

    position: relative;

    overflow: hidden;

    background:
        rgba(
            17,
            17,
            17,
            0.22
        );
}

#memory-progress-fill {
    position: absolute;
    inset:
        0
        auto
        0
        0;

    width: 0%;
    height: 100%;

    display: block;

    background: #111111;

    transition:
        width 1.05s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );
}

/* =========================================================
   APLICAÇÃO
   ========================================================= */

.data-application {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    padding:
        clamp(22px, 4vw, 54px)
        clamp(22px, 6vw, 82px)
        26px;

    display: grid;
    grid-template-rows:
        auto
        auto
        minmax(0, 1fr);

    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;

    transform: translateY(5px);

    transition:
        opacity 1.7s ease-in-out,
        transform 1.7s ease-in-out,
        visibility 0s linear 1.7s;
}

.data-application.visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    transition:
        opacity 1.7s ease-in-out,
        transform 1.7s ease-in-out,
        visibility 0s linear 0s;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

.data-header {
    min-height: 28px;

    display: grid;
    grid-template-columns:
        minmax(120px, 1fr)
        auto
        minmax(120px, 1fr);

    align-items: center;
    gap: 24px;

    padding-bottom: 16px;

    border-bottom:
        1px solid rgba(17, 17, 17, 0.16);
}

.data-system-title {
    margin: 0;

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 5px;

    text-align: center;
    white-space: nowrap;
}

.data-save-status {
    margin: 0;

    color: #74716b;

    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;

    text-align: right;
    text-transform: lowercase;
}

.data-text-button {
    justify-self: start;

    padding: 6px 0;

    border: 0;

    background: transparent;
    color: #111111;

    font-size: 9px;
    font-weight: 300;
    letter-spacing: 3px;

    cursor: pointer;

    transition:
        opacity 0.4s ease,
        letter-spacing 0.4s ease;
}

.data-text-button:hover {
    letter-spacing: 4px;
}

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

.data-navigation {
    padding: 24px 0 20px;

    display: flex;
    justify-content: center;
    gap: 16px;
}

.data-navigation-button {
    min-width: 150px;

    padding: 10px 16px;

    border:
        1px solid rgba(17, 17, 17, 0.35);

    background: transparent;
    color: #111111;

    font-size: 9px;
    font-weight: 300;
    letter-spacing: 3px;

    cursor: pointer;

    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

.data-navigation-button:hover,
.data-navigation-button.active {
    border-color: #111111;

    background: #111111;
    color: #ffffff;
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.data-workspace {
    min-height: 0;

    position: relative;

    border-top:
        1px solid rgba(17, 17, 17, 0.12);
}

.data-view {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    opacity: 0;

    transition:
        opacity 0.8s ease-in-out;
}

.data-view.active {
    opacity: 1;
}

/* =========================================================
   EDITOR
   ========================================================= */

.data-editor-view {
    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;
}

.data-document-header {
    padding: 18px 6px 12px;
}

.data-document-title {
    margin: 0;

    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
}

.data-document-line {
    width: 100%;
    height: 1px;

    margin-top: 12px;

    background:
        rgba(17, 17, 17, 0.18);
}

.data-editor {
    width: 100%;
    height: 100%;

    min-height: 220px;

    padding: 20px 6px;

    box-sizing: border-box;

    resize: none;

    border: 0;
    outline: 0;

    background: transparent;
    color: #111111;

    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;

    caret-color: #111111;
}

.data-editor::placeholder {
    color: rgba(17, 17, 17, 0.28);
}

.data-editor-footer {
    min-height: 48px;

    padding: 12px 6px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top:
        1px solid rgba(17, 17, 17, 0.16);
}

.data-editor-footer p {
    margin: 0;

    color: #74716b;

    font-size: 9px;
    letter-spacing: 1px;
}

.data-save-button {
    min-width: 132px;

    padding: 9px 14px;

    border: 1px solid #111111;

    background: transparent;
    color: #111111;

    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;

    cursor: pointer;

    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}

.data-save-button:hover {
    background: #111111;
    color: #ffffff;
}

/* =========================================================
   MEMORIES
   ========================================================= */

.data-memories-view {
    padding: 18px 6px 0;

    overflow-y: auto;
}

.data-memories-header {
    display: grid;
    grid-template-columns:
        1fr
        80px;

    gap: 20px;

    padding: 0 8px 12px;

    border-bottom:
        1px solid rgba(17, 17, 17, 0.18);
}

.data-memories-header p {
    margin: 0;

    color: #74716b;

    font-size: 9px;
    letter-spacing: 2px;
}

.data-memories-header p:last-child {
    text-align: right;
}

.data-memory-item {
    width: 100%;

    padding: 13px 8px;

    display: grid;
    grid-template-columns:
        1fr
        80px;

    gap: 20px;
    align-items: center;

    border: 0;
    border-bottom:
        1px solid rgba(17, 17, 17, 0.1);

    background: transparent;
    color: #111111;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        padding-left 0.3s ease;
}

.data-memory-item:hover {
    padding-left: 14px;

    background:
        rgba(17, 17, 17, 0.035);
}

.data-memory-main {
    min-width: 0;
}

.data-memory-title {
    margin: 0;

    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.data-memory-modified {
    margin: 5px 0 0;

    color: #74716b;

    font-size: 9px;
    letter-spacing: 1px;
}

.data-memory-words {
    margin: 0;

    color: #74716b;

    font-size: 10px;

    text-align: right;
}

.data-empty-memories {
    margin: 60px 0 0;

    color: #74716b;

    font-size: 11px;
    letter-spacing: 2px;

    text-align: center;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 700px) {
    .data-entry-button {
        top: 16px;
        left: 16px;
    }

    .data-application {
        padding:
            18px
            16px
            16px;
    }

    .data-header {
        grid-template-columns:
            1fr
            auto;

        gap: 12px;
    }

    .data-system-title {
        display: none;
    }

    .data-navigation {
        gap: 8px;
    }

    .data-navigation-button {
        min-width: 0;
        flex: 1;

        padding-right: 8px;
        padding-left: 8px;

        font-size: 8px;
        letter-spacing: 2px;
    }

    .data-document-title {
        font-size: 11px;
    }

    .data-editor {
        font-size: 14px;
        line-height: 1.7;
    }

    .data-editor-footer {
        align-items: flex-end;
    }

    .data-save-button {
        min-width: 110px;

        font-size: 8px;
    }

    .data-memory-item,
    .data-memories-header {
        grid-template-columns:
            1fr
            54px;
    }


    .memory-status {
        right: 18px;
        bottom: 18px;

        width:
            min(
                260px,
                calc(100vw - 36px)
            );
    }

    .memory-status p {
        font-size: 9px;
        letter-spacing: 3px;
    }
}
/* =========================================================
   BERNARD v1.4.7 — DATA NEW PHASE
   ========================================================= */

.data-memory-title.data-memory-title-new-phase {
    color: #ffffff;
    font-weight: 650;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.58),
        0 1px 3px rgba(17, 17, 17, 0.72);
}


/* =========================================================
   DATA v1.4.9 — FOLHA CENTRAL COMPACTA
   Tamanho ajustado conforme a marcação visual do usuário.
   ========================================================= */
#data-screen .data-workspace {
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vh, 24px) 0;
}

#data-screen .data-editor-view {
    width: clamp(320px, 21vw, 430px);
    height: clamp(390px, 48vh, 520px);
    aspect-ratio: auto;
    flex: 0 0 auto;
    padding: clamp(22px, 2.2vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow:
        0 22px 70px rgba(39, 25, 18, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#data-screen .data-document-header {
    padding: 0 0 14px;
}

#data-screen .data-document-title {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 650;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.58);
}

#data-screen .data-document-line {
    background: rgba(255, 255, 255, 0.48);
}

#data-screen .data-editor {
    padding: 18px 0;
    color: #171310;
}

#data-screen .data-editor-footer {
    padding: 12px 0 0;
    border-top-color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 700px), (max-height: 690px) {
    #data-screen .data-editor-view {
        width: min(78vw, 390px);
        height: min(50vh, 440px);
        min-height: 340px;
        padding: 20px;
    }
}


/* =========================================================
   BERNARD v1.5.2 — SLOW CONTINUOUS THREE-IMAGE CROSSFADE
   Each transition lasts approximately four seconds.
   Images overlap directly; the background never fades to white.
   ========================================================= */


.data-ambient-background .ambient-background-image {
    animation-duration: 24s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    will-change: opacity, transform;
}

.data-ambient-background .ambient-background-image-a {
    animation-name: data-background-slow-a;
}

.data-ambient-background .ambient-background-image-b {
    animation-name: data-background-slow-b;
}

.data-ambient-background .ambient-background-image-c {
    animation-name: data-background-slow-c;
}

@keyframes data-background-slow-a {
    0%, 16.666% { opacity: 1; transform: scale(1.012); }
    33.333%, 83.333% { opacity: 0; transform: scale(1.022); }
    100% { opacity: 1; transform: scale(1.012); }
}

@keyframes data-background-slow-b {
    0%, 16.666% { opacity: 0; transform: scale(1.022); }
    33.333%, 50% { opacity: 1; transform: scale(1.012); }
    66.666%, 100% { opacity: 0; transform: scale(1.022); }
}

@keyframes data-background-slow-c {
    0%, 50% { opacity: 0; transform: scale(1.022); }
    66.666%, 83.333% { opacity: 1; transform: scale(1.012); }
    100% { opacity: 0; transform: scale(1.022); }
}

/* v1.5.2 — DATA top controls use the same frosted language as Sublime. */
.data-header {
    border-bottom: 0;
}

.data-text-button,
.data-system-title,
.data-save-status {
    width: max-content;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.data-system-title {
    padding-inline: 22px;
}

.data-save-status {
    justify-self: end;
}

.data-text-button:hover,
.data-text-button:focus-visible {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   BERNARD v1.5.3 — TRUE SHARP CROSSFADE
   Three full-resolution layers remain stacked at all times.
   Each image-to-image dissolve lasts 5.5 seconds and the
   combined opacity never drops below 1, so no white/clear gap
   or loss of sharpness appears between backgrounds.
   ========================================================= */

#data-screen.background-visible .data-ambient-background {
    opacity: 1;
}

.data-ambient-background .ambient-background-image {
    animation-duration: 33s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    transform: none !important;
    filter: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes data-background-slow-a {
    0%, 16.666% { opacity: 1; }
    33.333%, 83.333% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes data-background-slow-b {
    0%, 16.666% { opacity: 0; }
    33.333%, 50% { opacity: 1; }
    66.666%, 100% { opacity: 0; }
}

@keyframes data-background-slow-c {
    0%, 50% { opacity: 0; }
    66.666%, 83.333% { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================================
   BERNARD v1.5.4 — DATA MATCHES THE OTHER ROOM ENTRANCES
   The former memory-vision animation is no longer shown when
   DATA is opened. The room now reveals directly after the
   shared white transition, just like SUBLIME and FOUNDATION.
   ========================================================= */

.data-ambient-background {
    background: transparent;
}

#data-screen.background-visible .data-ambient-background {
    opacity: 1;
}

.data-ambient-background .ambient-background-image {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0;
    transition: none;
}

/* =========================================================
   BERNARD v1.5.5 — BRIGHT ROOM LABELS + CENTERED MEMORIES
   ========================================================= */
#data-screen .data-text-button,
#data-screen .data-system-title,
#data-screen .data-save-status,
#data-screen .data-navigation-button {
    color: #ffffff !important;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.95),
        0 0 16px rgba(255, 255, 255, 0.48);
    font-weight: 500;
}

#data-screen .data-navigation-button.active,
#data-screen .data-navigation-button:hover {
    color: #ffffff !important;
}

#data-screen .data-workspace {
    display: flex;
    align-items: center;
    justify-content: center;
}

#data-screen .data-memories-view.active {
    width: min(820px, calc(100vw - 120px));
    height: min(610px, calc(100vh - 245px));
    margin: auto;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 28px 80px rgba(17, 17, 17, 0.14);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    backdrop-filter: blur(22px) saturate(120%);
    overflow-y: auto;
}

#data-screen .data-memories-header p,
#data-screen .data-memory-title,
#data-screen .data-memory-modified,
#data-screen .data-memory-words {
    color: #111111;
}

#data-screen .data-memory-title {
    font-weight: 500;
}

@media (max-width: 700px) {
    #data-screen .data-memories-view.active {
        width: calc(100vw - 34px);
        height: calc(100vh - 220px);
        padding: 18px 16px;
        border-radius: 18px;
    }
}


/* Bernard 2.1 — immutable origin memory */
.data-memory-item.system-origin-memory{border-color:rgba(168,121,31,.38);background:linear-gradient(135deg,rgba(205,161,63,.25),rgba(255,244,205,.11));box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 18px 60px rgba(139,98,20,.12);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.data-memory-item.system-origin-memory .data-memory-title{color:#8d681e}.data-editor-view.system-origin-open{border-color:rgba(168,121,31,.32);background:linear-gradient(135deg,rgba(205,161,63,.20),rgba(255,255,255,.38));box-shadow:0 25px 70px rgba(139,98,20,.12)}.data-editor-view.system-origin-open #data-editor{pointer-events:none}.data-editor-view.system-origin-open #save-memory-button{display:none}

/* =========================================================
   BERNARD 2.1.2 — ORIGIN MEMORY PRESENTATION
   Brighter gold, expanded layout and centered immutable text.
   ========================================================= */
#data-screen .data-editor-view.system-origin-open {
    width: min(700px, calc(100vw - 110px));
    height: min(690px, calc(100vh - 190px));
    min-height: 590px;
    padding: clamp(34px, 3.2vw, 52px);
    border: 2px solid rgba(255, 211, 91, 0.96);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 241, 184, 0.48), transparent 48%),
        linear-gradient(145deg, rgba(209, 151, 39, 0.68) 0%, rgba(229, 183, 78, 0.58) 48%, rgba(189, 126, 26, 0.54) 100%);
    box-shadow:
        0 0 18px rgba(255, 215, 105, 0.88),
        0 0 42px rgba(255, 191, 48, 0.55),
        0 32px 100px rgba(75, 43, 2, 0.34),
        inset 0 1px 0 rgba(255, 255, 235, 0.95),
        inset 0 0 58px rgba(255, 229, 145, 0.28);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

#data-screen .data-editor-view.system-origin-open .data-document-title {
    color: rgba(255, 251, 231, 1);
    text-align: center;
    letter-spacing: 0.18em;
    text-shadow: 0 0 10px rgba(255, 245, 201, 0.95), 0 0 22px rgba(255, 210, 84, 0.72), 0 1px 3px rgba(82, 46, 0, 0.35);
}

#data-screen .data-editor-view.system-origin-open .data-document-line,
#data-screen .data-editor-view.system-origin-open .data-editor-footer { border-color: rgba(255, 229, 143, 0.76); }

#data-screen .data-editor-view.system-origin-open .data-document-line {
    background: rgba(255, 232, 151, 0.82);
    box-shadow: 0 0 10px rgba(255, 217, 100, 0.58);
}

#data-screen .data-editor-view.system-origin-open #data-editor {
    min-height: 0;
    padding: 28px 18px 20px;
    overflow: hidden;
    scrollbar-width: none;
    color: #2b1c08;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.15vw, 20px);
    line-height: 1.72;
    text-align: center;
    text-wrap: pretty;
    text-shadow: 0 1px 1px rgba(255, 242, 194, 0.28);
}

#data-screen .data-editor-view.system-origin-open #data-editor::-webkit-scrollbar { display: none; }
#data-screen .data-editor-view.system-origin-open .data-editor-footer p { color: rgba(67, 43, 8, 0.66); }

@media (max-width: 700px), (max-height: 760px) {
    #data-screen .data-editor-view.system-origin-open {
        width: min(90vw, 650px);
        height: min(76vh, 650px);
        min-height: 510px;
        padding: 28px 24px;
        border-radius: 18px;
    }
    #data-screen .data-editor-view.system-origin-open #data-editor {
        font-size: 14px;
        line-height: 1.62;
        padding: 20px 6px 14px;
    }
}

