/* TurboNotes Library — a DOS card catalog for living Markdown. */

:root,
[data-color-theme="retro-blue"] {
    --bg-screen: #000080;
    --bg-surface: #000080;
    --bg-editor: #00006d;
    --bg-button: #a8a8a8;
    --text-editor: #54ffff;
    --text-editor-dim: rgba(84, 255, 255, 0.42);
    --text-ui: #a8a8a8;
    --text-ui-accent: #ff5454;
    --text-heading: #ffff54;
    --text-bold: #ffffff;
    --text-italic: #54ffff;
    --text-code: #54ff54;
    --text-link: #ff5454;
    --text-quote: #a8a8a8;
    --text-list: #ff5454;
    --text-hr: #a8a8a8;
    --text-caret: #ffffff;
    --text-info: #a8a8a8;
    --scrollbar-bg: #000080;
    --scrollbar-thumb: #a8a8a8;
    --border-main: #a8a8a8;
    --border-divider: #5454a8;
    --row-hover: #0000a8;
    --row-active: #a8a8a8;
    --row-active-text: #000080;
    --border-tab-red: #a84040;
    --border-tab-blue: #5454ff;
    --border-tab-green: #40a840;
    --name-tab-red: #ff5454;
    --name-tab-blue: #54ffff;
    --name-tab-green: #54ff54;
}

[data-color-theme="dark"] {
    --bg-screen: #0c0c0c;
    --bg-surface: #171717;
    --bg-editor: #050505;
    --bg-button: #333333;
    --text-editor: #ababab;
    --text-editor-dim: rgba(171, 171, 171, 0.34);
    --text-ui: #777777;
    --text-ui-accent: #a76767;
    --text-heading: #d0c99e;
    --text-bold: #d0d0d0;
    --text-italic: #969696;
    --text-code: #86a986;
    --text-link: #aaa0a0;
    --text-quote: #646464;
    --text-list: #a18c77;
    --text-hr: #444444;
    --text-caret: #e0e0e0;
    --text-info: #5c5c5c;
    --scrollbar-bg: #0c0c0c;
    --scrollbar-thumb: #333333;
    --border-main: #383838;
    --border-divider: #252525;
    --row-hover: #202020;
    --row-active: #b0b0b0;
    --row-active-text: #090909;
    --border-tab-red: #5c3030;
    --border-tab-blue: #303f5c;
    --border-tab-green: #31583b;
    --name-tab-red: #a76767;
    --name-tab-blue: #718bb3;
    --name-tab-green: #72a77d;
}

[data-color-theme="amber"] {
    --bg-screen: #0d0800;
    --bg-surface: #1a1000;
    --bg-editor: #080400;
    --bg-button: #4a3500;
    --text-editor: #ffb000;
    --text-editor-dim: rgba(255, 176, 0, 0.36);
    --text-ui: #a06d08;
    --text-ui-accent: #d18b00;
    --text-heading: #ffd060;
    --text-bold: #ffe0a0;
    --text-italic: #cc9930;
    --text-code: #d69d19;
    --text-link: #ff8c00;
    --text-quote: #7a5500;
    --text-list: #ff8c00;
    --text-hr: #7a5500;
    --text-caret: #ffcc00;
    --text-info: #7a5500;
    --scrollbar-bg: #0d0800;
    --scrollbar-thumb: #7a5500;
    --border-main: #7a5500;
    --border-divider: #4a3500;
    --row-hover: #2b1b00;
    --row-active: #ffb000;
    --row-active-text: #0d0800;
    --border-tab-red: #7a3500;
    --border-tab-blue: #7a5900;
    --border-tab-green: #5a6500;
    --name-tab-red: #ff8c00;
    --name-tab-blue: #ffb000;
    --name-tab-green: #c6c900;
}

[data-color-theme="green"] {
    --bg-screen: #000d00;
    --bg-surface: #001a00;
    --bg-editor: #000700;
    --bg-button: #004a00;
    --text-editor: #33ff00;
    --text-editor-dim: rgba(51, 255, 0, 0.34);
    --text-ui: #239600;
    --text-ui-accent: #33cc00;
    --text-heading: #66ff33;
    --text-bold: #99ff66;
    --text-italic: #44cc22;
    --text-code: #00cc00;
    --text-link: #77dd44;
    --text-quote: #1a6600;
    --text-list: #44cc22;
    --text-hr: #1a6600;
    --text-caret: #66ff33;
    --text-info: #1a6600;
    --scrollbar-bg: #000d00;
    --scrollbar-thumb: #006600;
    --border-main: #087000;
    --border-divider: #003300;
    --row-hover: #002900;
    --row-active: #33ff00;
    --row-active-text: #001000;
    --border-tab-red: #336600;
    --border-tab-blue: #006633;
    --border-tab-green: #008800;
    --name-tab-red: #88cc00;
    --name-tab-blue: #00cc66;
    --name-tab-green: #33ff00;
}

[data-color-theme="solarized"] {
    --bg-screen: #002b36;
    --bg-surface: #073642;
    --bg-editor: #00242d;
    --bg-button: #586e75;
    --text-editor: #839496;
    --text-editor-dim: rgba(131, 148, 150, 0.38);
    --text-ui: #657b83;
    --text-ui-accent: #dc322f;
    --text-heading: #b58900;
    --text-bold: #93a1a1;
    --text-italic: #2aa198;
    --text-code: #859900;
    --text-link: #268bd2;
    --text-quote: #586e75;
    --text-list: #cb4b16;
    --text-hr: #586e75;
    --text-caret: #93a1a1;
    --text-info: #586e75;
    --scrollbar-bg: #002b36;
    --scrollbar-thumb: #586e75;
    --border-main: #586e75;
    --border-divider: #174752;
    --row-hover: #0a404d;
    --row-active: #93a1a1;
    --row-active-text: #002b36;
    --border-tab-red: #80322f;
    --border-tab-blue: #165880;
    --border-tab-green: #4a6a00;
    --name-tab-red: #dc322f;
    --name-tab-blue: #268bd2;
    --name-tab-green: #859900;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg-screen);
}

button,
input,
select { font: inherit; }

button { border-radius: 0; }

.hide { display: none !important; }

#screen {
    display: flex;
    flex-direction: column;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden;
    color: var(--text-ui);
    background: var(--bg-screen) !important;
    border-color: var(--border-main) !important;
}

.app-nav,
.tui-statusbar {
    color: var(--text-ui) !important;
    background: var(--bg-surface) !important;
    border-color: var(--border-main) !important;
}

.app-nav ul { display: flex; align-items: stretch; }

.app-nav li { padding: 0 !important; }

.brand-mark {
    padding: 0 10px !important;
    color: var(--text-bold);
    letter-spacing: 1px;
    border-right: 1px solid var(--border-divider);
}

.nav-action,
.tui-dropdown-content button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 0;
    color: var(--text-ui);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.nav-action:hover,
.nav-action:focus-visible,
.tui-dropdown-content button:hover,
.tui-dropdown-content button:focus-visible {
    color: var(--row-active-text);
    background: var(--row-active);
    outline: none;
}

.tui-dropdown-content {
    color: var(--text-ui) !important;
    background: var(--bg-surface) !important;
    border-color: var(--border-main) !important;
}

.tui-dropdown-content li { min-width: 220px; }

.tui-dropdown-content button { padding: 5px 8px; }

.tui-nav .tui-datetime { color: var(--text-info) !important; }

.theme-check,
.linenums-check { display: none; }

[data-color-theme="retro-blue"] .theme-option[data-theme="retro-blue"] .theme-check,
[data-color-theme="dark"] .theme-option[data-theme="dark"] .theme-check,
[data-color-theme="amber"] .theme-option[data-theme="amber"] .theme-check,
[data-color-theme="green"] .theme-option[data-theme="green"] .theme-check,
[data-color-theme="solarized"] .theme-option[data-theme="solarized"] .theme-check,
.linenums-active .linenums-check { display: inline; }

#workspace {
    display: grid;
    grid-template-columns: clamp(230px, 22vw, 300px) minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    margin: 20px 0;
    overflow: hidden;
}

#screen.revisions-open #workspace {
    grid-template-columns: clamp(230px, 20vw, 280px) minmax(0, 1fr) clamp(260px, 24vw, 330px);
}

.workspace-panel,
#editor-window,
.panel-window,
.panel-window .tui-fieldset,
#editor-window .tui-fieldset {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.panel-window,
#editor-window,
.tui-window {
    color: var(--text-ui) !important;
    background: var(--bg-screen) !important;
    border-color: var(--border-main) !important;
}

.panel-window .tui-fieldset,
#editor-window .tui-fieldset,
.tui-modal .tui-fieldset {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: var(--border-main) !important;
}

.tui-fieldset legend { color: var(--text-ui) !important; }

.library-panel { border-right: 1px solid var(--border-divider); }

.revisions-panel {
    display: none;
    border-left: 1px solid var(--border-divider);
}

.revisions-open .revisions-panel { display: block; }

.mobile-panel-close { display: none; }

.library-search-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    margin: 2px 4px 7px;
    color: var(--text-info);
    font-size: 14px;
}

.index-mode-button {
    padding: 3px 5px;
    border: 1px solid var(--border-divider);
    color: var(--text-info);
    background: var(--bg-screen);
    cursor: pointer;
}

.index-mode-button:hover,
.index-mode-button:focus-visible {
    color: var(--row-active-text);
    background: var(--row-active);
    outline: none;
}

kbd {
    padding: 1px 4px;
    border: 1px solid var(--border-divider);
    color: var(--text-info);
    background: var(--bg-screen);
    font-family: "DOS", "Lucida Console", monospace;
    font-size: 12px;
}

.terminal-input {
    width: 100%;
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid var(--border-main);
    border-radius: 0;
    outline: none;
    color: var(--text-editor);
    background: var(--bg-editor);
    caret-color: var(--text-caret);
    font-family: "DOS", "Lucida Console", "Courier New", monospace;
}

.terminal-input:focus {
    color: var(--text-bold);
    border-color: var(--text-heading);
    box-shadow: inset 0 -2px 0 var(--text-heading);
}

.note-list {
    flex: 1;
    min-height: 100px;
    overflow: auto;
    border-top: 1px solid var(--border-divider);
    border-bottom: 1px solid var(--border-divider);
}

.note-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 7px;
    width: 100%;
    padding: 8px 7px 7px 5px;
    border: 0;
    border-bottom: 1px solid var(--border-divider);
    color: var(--text-ui);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.note-row:hover,
.note-row:focus-visible { background: var(--row-hover); outline: none; }

.note-row.active {
    color: var(--row-active-text);
    background: var(--row-active);
}

.note-index-mark {
    width: 5px;
    height: 100%;
    min-height: 35px;
    background: var(--name-tab-blue);
}

.note-index-mark.color-red,
.note-color-chip.color-red { background: var(--name-tab-red); }

.note-index-mark.color-blue,
.note-color-chip.color-blue { background: var(--name-tab-blue); }

.note-index-mark.color-green,
.note-color-chip.color-green { background: var(--name-tab-green); }

.note-row-title {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 17px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-row-meta,
.note-row-snippet {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-info);
    font-size: 12px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-row.active .note-row-meta,
.note-row.active .note-row-snippet { color: var(--row-active-text); opacity: 0.72; }

.pin-mark { color: var(--text-heading); font-size: 12px; }

.library-ledger {
    flex: 0 0 auto;
    max-height: 31%;
    overflow: auto;
}

.ledger-heading {
    padding: 5px 6px;
    color: var(--text-info);
    background: var(--bg-surface);
    font-size: 12px;
    letter-spacing: 1px;
}

.backlink-button {
    display: block;
    width: 100%;
    padding: 5px 7px;
    border: 0;
    border-top: 1px solid var(--border-divider);
    color: var(--text-link);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.backlink-button:hover,
.backlink-button:focus-visible { color: var(--row-active-text); background: var(--row-active); outline: none; }

.panel-empty {
    margin: 0;
    padding: 10px 7px;
    color: var(--text-info);
    font-size: 13px;
}

#editor-window { display: flex; overflow: hidden; }

.theme-red #editor-window .tui-fieldset { border-color: var(--border-tab-red) !important; }
.theme-red #filename { color: var(--name-tab-red) !important; }
.theme-blue #editor-window .tui-fieldset { border-color: var(--border-tab-blue) !important; }
.theme-blue #filename { color: var(--name-tab-blue) !important; }
.theme-green #editor-window .tui-fieldset { border-color: var(--border-tab-green) !important; }
.theme-green #filename { color: var(--name-tab-green) !important; }

#sync-display {
    max-width: 210px;
    margin-right: 48px;
    overflow: hidden;
    color: var(--text-info);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cursorpos {
    margin-left: 48px;
    color: var(--text-info);
    font-size: 13px;
}

#status { font-size: 13px; }

.note-ribbon {
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 2px 8px;
    border-bottom: 1px solid var(--border-divider);
    color: var(--text-info);
    background: var(--bg-surface);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.note-color-chip {
    width: 7px;
    height: 12px;
    margin-right: 7px;
}

.note-tags { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ribbon-action {
    margin-left: auto;
    border: 0;
    color: var(--text-link);
    background: transparent;
}

.editor-wrapper { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.line-numbers {
    display: none;
    flex-shrink: 0;
    width: 3.5em;
    overflow: hidden;
    padding: 6px 6px 6px 4px;
    border-right: 1px solid var(--border-divider);
    color: var(--text-editor-dim);
    background: var(--bg-editor);
    font-family: "DOS", "Lucida Console", "Courier New", monospace;
    font-size: 20px;
    line-height: 1.45;
    text-align: right;
    user-select: none;
}

.line-numbers.visible { display: block; }

.editor-area {
    flex: 1;
    min-width: 0;
    overflow: auto;
    padding: 6px 10px 80px;
    outline: none;
    color: var(--text-editor);
    background: var(--bg-editor);
    caret-color: var(--text-caret);
    font-family: "DOS", "Lucida Console", "Courier New", monospace;
    font-size: 20px;
    line-height: 1.45;
    tab-size: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.editor-area:empty::before { content: "Start typing… Markdown and [[wiki links]] supported."; color: var(--text-editor-dim); }

.editor-area:focus-visible { box-shadow: inset 0 0 0 1px var(--border-divider); }

.md-heading { color: var(--text-heading); font-weight: bold; }
.md-bold { color: var(--text-bold); font-weight: bold; }
.md-italic { color: var(--text-italic); font-style: italic; }
.md-code { color: var(--text-code); }
.md-link { color: var(--text-link); text-decoration: underline; }
.md-wikilink { color: var(--text-heading); text-decoration: underline double; }
.md-quote { color: var(--text-quote); font-style: italic; }
.md-list { color: var(--text-list); }
.md-hr { color: var(--text-hr); }

.editor-area::-webkit-scrollbar,
.note-list::-webkit-scrollbar,
.revision-list::-webkit-scrollbar,
.revision-preview::-webkit-scrollbar { width: 14px; background: var(--scrollbar-bg); }

.editor-area::-webkit-scrollbar-thumb,
.note-list::-webkit-scrollbar-thumb,
.revision-list::-webkit-scrollbar-thumb,
.revision-preview::-webkit-scrollbar-thumb { border: 2px solid var(--scrollbar-bg); background: var(--scrollbar-thumb); }

.revision-actions {
    flex: 0 0 auto;
    padding: 4px 5px 8px;
    border-bottom: 1px solid var(--border-divider);
}

.revision-actions p,
.form-hint {
    margin: 6px 0 0;
    color: var(--text-info);
    font-size: 12px;
    line-height: 1.25;
}

.compact-button { width: 100%; padding: 4px 6px !important; }

.revision-list { flex: 1; min-height: 0; overflow: auto; }

.revision-row {
    display: block;
    width: 100%;
    padding: 8px 7px;
    border: 0;
    border-bottom: 1px solid var(--border-divider);
    color: var(--text-ui);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.revision-row:hover,
.revision-row:focus-visible { color: var(--row-active-text); background: var(--row-active); outline: none; }

.revision-label { display: block; color: inherit; font-size: 15px; }
.revision-date,
.revision-snippet { display: block; margin-top: 4px; color: var(--text-info); font-size: 12px; line-height: 1.2; }
.revision-kind { float: right; color: var(--text-heading); font-size: 10px; }
.revision-row:hover .revision-date,
.revision-row:hover .revision-snippet,
.revision-row:focus-visible .revision-date,
.revision-row:focus-visible .revision-snippet { color: var(--row-active-text); opacity: 0.75; }

.tui-button {
    color: var(--text-bold) !important;
    background: var(--bg-button) !important;
    border-color: var(--border-main) !important;
}

.tui-button:focus-visible { outline: 2px solid var(--text-heading); outline-offset: 2px; }

.danger-button { color: #fff !important; background: #7a2020 !important; }

.tui-modal .tui-window { margin: 0 auto; }
.tui-modal p { line-height: 1.45; }

.form-modal-content { width: min(94vw, 560px); }
.small-modal-content { width: min(94vw, 440px); }

.form-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 10px 4px;
    color: var(--text-ui);
}

.form-field > span { grid-column: 1; color: var(--text-info); font-size: 11px; }
.form-field > span + input { grid-column: 2; grid-row: 1 / span 2; }

.check-field { display: block; margin: 12px 4px; color: var(--text-ui); }
.check-field input { accent-color: var(--text-heading); }

.form-error {
    min-height: 18px;
    margin: 5px 4px !important;
    padding: 0 !important;
    color: var(--text-ui-accent);
    font-size: 13px;
}

.form-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.form-spacer { flex: 1; }

.command-modal { align-items: flex-start !important; padding-top: min(14vh, 110px); }

.palette-shell {
    width: min(92vw, 680px);
    max-height: min(72vh, 600px);
    overflow: hidden;
    border: 2px solid var(--border-main);
    color: var(--text-ui);
    background: var(--bg-screen);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.45);
}

.palette-title-row,
.palette-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    color: var(--row-active-text);
    background: var(--row-active);
    letter-spacing: 1px;
}

.palette-title-row kbd { color: inherit; border-color: currentColor; background: transparent; }
.palette-search { padding: 10px; border-width: 0 0 2px; font-size: 20px; }
.palette-results { max-height: 48vh; overflow: auto; }

.palette-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--border-divider);
    color: var(--text-ui);
    background: transparent;
    text-align: left;
}

.palette-result.selected,
.palette-result:hover { color: var(--row-active-text); background: var(--row-active); }
.palette-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-result-meta { color: var(--text-info); font-size: 12px; }
.palette-result.selected .palette-result-meta { color: inherit; opacity: 0.7; }
.palette-footer { justify-content: flex-start; color: var(--text-info); background: var(--bg-surface); font-size: 11px; }

.revision-modal-content { width: min(95vw, 820px); height: min(88vh, 720px); }
.revision-modal-content .tui-window,
.revision-modal-content .tui-fieldset { height: 100%; }
.revision-preview-meta { flex: 0 0 auto; padding: 5px 8px; border-bottom: 1px solid var(--border-divider); color: var(--text-info); font-size: 12px; }
.revision-preview {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin: 0;
    padding: 12px;
    color: var(--text-editor);
    background: var(--bg-editor);
    font-family: "DOS", "Lucida Console", monospace;
    font-size: 17px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.md-help-pre { margin: 8px 0; color: var(--text-editor); background: transparent; line-height: 1.6; }

.toast {
    position: fixed;
    right: 14px;
    bottom: 34px;
    z-index: 3000;
    max-width: min(420px, calc(100vw - 28px));
    padding: 7px 10px;
    border: 1px solid var(--border-main);
    color: var(--row-active-text);
    background: var(--row-active);
    opacity: 0;
    pointer-events: none;
}

.toast.visible { opacity: 1; }
.toast.error { color: #fff; background: #7a2020; }

#offline-indicator { color: var(--text-heading) !important; }

html:not([data-color-theme="retro-blue"]) .red-168-text:not(#status) { color: var(--text-ui-accent) !important; }
html:not([data-color-theme="retro-blue"]) .green-255-text:not(#status) { color: var(--text-code) !important; }
html:not([data-color-theme="retro-blue"]) .white-255-text { color: var(--text-bold) !important; }
html:not([data-color-theme="retro-blue"]) .cyan-255-text { color: var(--text-editor) !important; }
html:not([data-color-theme="retro-blue"]) .yellow-255-text { color: var(--text-heading) !important; }
html:not([data-color-theme="retro-blue"]) #status.green-255-text { color: #43c943 !important; }
html:not([data-color-theme="retro-blue"]) #status.red-168-text { color: #d44 !important; }

@media (max-width: 1179px) {
    #screen.revisions-open #workspace { grid-template-columns: clamp(230px, 25vw, 290px) minmax(0, 1fr); }
    .revisions-panel {
        position: absolute;
        z-index: 90;
        top: 20px;
        right: 0;
        bottom: 20px;
        width: min(88vw, 340px);
        box-shadow: -8px 0 0 rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 760px) {
    #workspace,
    #screen.revisions-open #workspace { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }

    .library-panel {
        display: none;
        position: absolute;
        z-index: 100;
        top: 18px;
        bottom: 20px;
        left: 0;
        width: min(92vw, 340px);
        box-shadow: 8px 0 0 rgba(0, 0, 0, 0.35);
    }

    .library-open .library-panel { display: block; }
    .mobile-panel-close { display: block; }
    .app-nav .nav-action { padding: 0 7px; font-size: 14px; }
    .editor-area,
    .line-numbers { font-size: 16px; line-height: 1.35; }
    .line-numbers { width: 3em; }
    #cursorpos { margin-left: 10px; }
    .note-ribbon { min-height: 23px; }
    .form-field { grid-template-columns: 1fr; gap: 3px; }
    .form-field > span,
    .form-field > span + input { grid-column: 1; grid-row: auto; }
    .form-actions { flex-wrap: wrap; }
    .palette-search { font-size: 16px; }
    .tui-statusbar li { padding: 0 6px !important; font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
    .palette-shell { animation: index-drop 100ms steps(2, end); }
    @keyframes index-drop {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}
