@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --accent: #6f42c1;
    --accent-strong: #58339f;
    --accent-soft: #f0eafd;
    --bg: #f4f5f8;
    --surface: #fff;
    --surface-2: #f8f8fb;
    --text: #20202a;
    --muted: #777786;
    --border: #e7e7ee;
    --hover: #f0f0f5;
    --danger: #d64b4b;
    --shadow: 0 12px 38px rgba(36, 28, 55, .10);
    --sidebar-width: 260px;
    --notes-width: 330px;
    --accent-contrast: #ffff;
    --accent-pastel-text: #58339f;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "Inter", system-ui, sans-serif
}

button,
input {
    font: inherit
}

button {
    color: inherit
}

body.dark {
    --bg: #14141a;
    --surface: #1d1d25;
    --surface-2: #24242e;
    --text: #f2f2f6;
    --muted: #aaaab7;
    --border: #33333f;
    --hover: #2b2b36;
    --accent-soft: #302644;
    --shadow: 0 12px 38px rgba(0, 0, 0, .28)
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100vh
}

.sidebar {
    position: relative;
    z-index: 30;
    display: flex;
    flex: 0 0 var(--sidebar-width);
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100%;
    padding: 22px 16px 16px;
    color: #f8f6ff;
    background: linear-gradient(180deg, #35234e, #241a34)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 6px 24px
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #9665e8, #6f42c1);
    font-size: 21px;
    font-weight: 800
}

.brand strong,
.brand span {
    display: block
}

.brand strong {
    font-size: 15px
}

.brand span {
    margin-top: 3px;
    color: #bfb5cb;
    font-size: 11px
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700
}

.primary-btn {
    color: #fff;
    background: var(--accent);
}

.primary-btn:hover {
    background: var(--accent-strong)
}

.primary-btn.compact {
    min-height: 40px
}

.secondary-btn {
    border: 1px solid var(--border);
    background: var(--surface)
}

.secondary-btn:hover {
    background: var(--hover)
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 7px 10px;
    color: #9487a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font-size: 18px
}

.icon-btn:hover {
    color: var(--text);
    background: var(--hover)
}

.icon-btn.small {
    width: 27px;
    height: 27px;
    color: #aa9db9
}

.icon-btn.accent {
    color: #fff;
    background: var(--accent)
}

.icon-btn.danger:hover {
    color: var(--danger);
    background: rgba(214, 75, 75, .1)
}

.notebooks {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    overflow-y: auto
}

.notebook-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: #cfc7d8;
    background: transparent;
    text-align: left
}

.notebook-item:hover,
.notebook-item.active {
    color: #fff;
    background: rgba(255, 255, 255, .11)
}

.notebook-dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 3px transparent;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.notebook-dot:hover {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
    transform: scale(1.12);
}

.notebook-name {
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap
}

.notebook-count {
    color: #91869d;
    font-size: 11px
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .09)
}

.footer-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #afa5ba;
    background: transparent;
    font-size: 12px
}

.footer-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07)
}

.workspace {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 13px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface)
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.menu-btn {
    display: none
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em
}

.topbar h1 {
    margin: 0;
    font-size: 20px
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(270px, 30vw);
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface-2)
}

.search-box input {
    width: 100%;
    height: 39px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 12px
}

.content-grid {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: var(--notes-width) minmax(0, 1fr)
}

.notes-panel {
    position: relative;
    min-height: 0;
    border-right: 1px solid var(--border);
    background: var(--surface-2)
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border)
}

.panel-header h2 {
    margin: 0 0 3px;
    font-size: 15px
}

.panel-header span {
    color: var(--muted);
    font-size: 10px
}

.notes-list {
    height: calc(100% - 82px);
    padding: 10px;
    overflow-y: auto
}

.note-card {
    position: relative;
    width: 100%;
    margin-bottom: 7px;
    padding: 14px 15px 13px 17px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    color: var(--text);
    background: transparent;
    text-align: left
}

.note-card:hover,
.note-card.active {
    border-color: var(--border);
    background: var(--surface)
}

.note-card.active:before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    border-radius: 5px;
    background: var(--accent);
    content: ""
}

.note-card h3 {
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.note-card p {
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.note-card time {
    color: var(--muted);
    font-size: 9px
}

.empty-list,
.editor-empty {
    position: absolute;
    inset: 82px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 25px;
    color: var(--muted);
    text-align: center
}

.editor-empty {
    inset: 0
}

.empty-list h3,
.editor-empty h2 {
    margin: 10px 0 6px;
    color: var(--text)
}

.empty-list p,
.editor-empty p {
    margin: 0 0 18px;
    font-size: 12px
}

.empty-icon,
.editor-empty-art {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 25px
}

.editor-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: var(--surface)
}

.editor {
    display: flex;
    height: 100%;
    flex-direction: column
}

.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 8px 22px;
    border-bottom: 1px solid var(--border)
}

.format-actions,
.editor-actions {
    display: flex;
    align-items: center;
    gap: 4px
}

.format-btn {
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    background: transparent
}

.format-btn:hover {
    color: var(--text);
    background: var(--hover)
}

.save-status {
    margin-right: 8px;
    color: var(--muted);
    font-size: 10px
}

.paper {
    flex: 1;
    padding: 22px 34px 70px;
    overflow-y: auto;
}

.note-title-input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: clamp(27px, 2vw, 40px);
    font-weight: 800;
    letter-spacing: -.04em
}

.note-meta {
    display: flex;
    gap: 7px;
    margin: 11px 0 32px;
    color: var(--muted);
    font-size: 10px
}

.toolbar-add-section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
    border-radius: 10px;
    cursor: pointer;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    box-shadow: none;
    font-size: 11px;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.toolbar-add-section-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
    background: color-mix(in srgb, var(--accent) 18%, var(--surface));
    filter: none;
    box-shadow: none;
    transform: translateY(-1px);
}

.toolbar-add-section-btn:active {
    transform: translateY(0);
}

.edit-mode-btn {
    display: inline-grid;
    width: 38px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
    border-radius: 10px;
    cursor: pointer;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.edit-mode-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.edit-mode-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
    background: color-mix(in srgb, var(--accent) 18%, var(--surface));
    transform: translateY(-1px);
}

.edit-mode-btn.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.edit-mode-btn.active:hover {
    filter: brightness(.94);
}


.delete-note-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(214, 75, 75, .24);
    border-radius: 10px;
    cursor: pointer;
    color: var(--danger);
    background: rgba(214, 75, 75, .07);
    font-size: 11px;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.delete-note-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delete-note-btn:hover {
    border-color: rgba(214, 75, 75, .42);
    background: rgba(214, 75, 75, .13);
    transform: translateY(-1px);
}

.delete-confirm-modal {
    width: min(390px, 100%);
    text-align: center;
}

.delete-modal-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 18px;
    color: var(--danger);
    background: rgba(214, 75, 75, .10);
}

.delete-modal-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delete-confirm-modal .modal-actions {
    justify-content: center;
}

.confirm-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: var(--danger);
    font-weight: 700;
}

.confirm-delete-btn:hover {
    filter: brightness(.92);
}

.add-section-btn {
    min-height: 36px;
    font-size: 11px;
    white-space: nowrap
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    padding-bottom: 80px;
}

.note-section {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.section-body {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    width: calc(100% - 39px);
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid var(--border);
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 18px;
    font-weight: 800;
}

.section-text {
    display: flex;
    width: 100%;
    min-height: 30px;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.section-paragraph {
    position: relative;
    width: fit-content;
    max-width: 100%;
    min-height: 25px;
    margin: 0;
    padding: 2px 5px;
    border: 0;
    border-radius: 6px;
    outline: 0;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.section-paragraph+.section-paragraph {
    margin-top: 15px;
}

.section-paragraph:empty {
    width: 100%;
}

.section-paragraph:empty::before {
    color: #aaaab5;
    content: attr(data-placeholder);
    pointer-events: none;
}

/* MODO LECTURA: resaltador pastel al pasar el mouse */
.editor:not(.editing-mode) .section-paragraph:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.editor:not(.editing-mode) .section-paragraph.copied {
    background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.editor:not(.editing-mode) .section-paragraph.copied::after {
    position: absolute;
    top: -20px;
    right: 0;
    padding: 3px 7px;
    border-radius: 7px;
    color: #fff;
    background: var(--accent);
    content: "Copiado";
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

/* MODO EDICIÓN: apariencia de bloc de notas */
.editor.editing-mode .section-paragraph {
    width: 100%;
    cursor: text;
}

.editor.editing-mode .section-paragraph:hover {
    background: transparent;
}

.editor.editing-mode .section-paragraph:focus {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.section-text:empty:before {
    color: #aaaab5;
    content: attr(data-placeholder)
}

.delete-section {
    position: absolute;
    z-index: 3;
    top: 0px;
    right: 4px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
}

.delete-section:hover {
    color: var(--danger);
    background: rgba(214, 75, 75, .1)
}

.hidden {
    display: none !important
}

.sidebar-overlay {
    display: none
}

.modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(15, 12, 21, .54);
    backdrop-filter: blur(5px)
}

.modal {
    position: relative;
    width: min(430px, 100%);
    padding: 29px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.modal h2 {
    margin: 5px 0 7px
}

.modal-description {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 12px
}

.modal label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700
}

.modal input:not(.hue-slider) {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: var(--surface-2);
}

.modal input:not(.hue-slider):focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    cursor: pointer;
    color: var(--muted);
    background: none;
    font-size: 22px
}

.color-picker {
    display: flex;
    gap: 11px;
    margin-top: 17px
}

.color-option {
    width: 25px;
    height: 25px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--border)
}

.color-option.selected {
    box-shadow: 0 0 0 2px var(--text)
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 25px
}

.toast {
    position: fixed;
    z-index: 130;
    right: 22px;
    bottom: 22px;
    padding: 12px 17px;
    border-radius: 12px;
    color: #fff;
    background: #24212b;
    box-shadow: var(--shadow);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .22s
}

.toast.show {
    opacity: 1;
    transform: translateY(0)
}

::-webkit-scrollbar {
    width: 7px
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c7c3cd
}

@media(max-width:980px) {
    :root {
        --notes-width: 290px
    }

    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-105%);
        transition: .25s
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 20;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(15, 12, 21, .45);
        opacity: 0
    }

    .sidebar-overlay.show {
        visibility: visible;
        opacity: 1
    }

    .menu-btn {
        display: grid
    }
}

@media(max-width:700px) {
    .topbar {
        min-height: 69px;
        padding: 10px 13px
    }

    .search-box {
        width: 41px;
        padding: 0;
        justify-content: center
    }

    .search-box input {
        display: none
    }

    .content-grid {
        position: relative;
        display: block
    }

    .notes-panel,
    .editor-panel {
        position: absolute;
        inset: 0;
        border: 0
    }

    .mobile-hidden {
        display: none !important
    }

    .paper {
        padding: 16px 14px 60px
    }

    .editor-toolbar {
        padding: 7px 10px
    }

    .delete-note-btn span {
        display: none
    }

    .delete-note-btn {
        width: 38px;
        padding: 0
    }

    .note-section {
        gap: 7px;
    }

    .section-title {
        width: calc(100% - 36px);
        font-size: 16px;
    }

    .section-paragraph {
        min-height: 24px;
        padding: 2px 1px 4px;
        font-size: 13px;
    }

    .toolbar-add-section-btn span:last-child,
    .delete-note-btn span {
        display: none;
    }

    .toolbar-add-section-btn,
    .delete-note-btn {
        width: 38px;
        padding: 0;
    }
}

.notebook-color-control {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 13px;
    margin-top: 19px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.color-control-label {
    align-self: flex-start;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.selected-color-preview {
    width: 52px;
    height: 52px;
    border: 5px solid var(--surface);
    border-radius: 50%;
    background: hsl(266 70% 52%);
    box-shadow: 0 0 0 1px var(--border), 0 8px 18px rgba(36, 28, 55, .14);
    transition: background .12s ease;
}

.modal .hue-slider {
    display: block;
    width: 100%;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.modal .hue-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right,
            hsl(0 72% 78%) 0%,
            hsl(45 78% 78%) 16.6%,
            hsl(90 62% 76%) 33.3%,
            hsl(150 58% 74%) 50%,
            hsl(205 76% 79%) 66.6%,
            hsl(260 68% 81%) 83.3%,
            hsl(360 72% 78%) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}

.modal .hue-slider::-moz-range-track {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right,
            hsl(0 72% 78%) 0%,
            hsl(45 78% 78%) 16.6%,
            hsl(90 62% 76%) 33.3%,
            hsl(150 58% 74%) 50%,
            hsl(205 76% 79%) 66.6%,
            hsl(260 68% 81%) 83.3%,
            hsl(360 72% 78%) 100%);
}

.modal .hue-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6.5px;
    border: 3px solid #fff;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #24242c;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
}

.modal .hue-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #24242c;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
}

.edit-notebook-modal {
    width: min(430px, 100%);
}

.edit-notebook-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 25px;
}

.edit-main-actions {
    margin-top: 0;
}

.edit-main-actions .secondary-btn,
.edit-main-actions .primary-btn,
.delete-notebook-btn {
    min-height: 42px;
    height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.edit-main-actions {
    align-items: center;
}

.delete-notebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(214, 75, 75, .25);
    border-radius: 11px;
    cursor: pointer;
    color: var(--danger);
    background: rgba(214, 75, 75, .07);
    font-size: 11px;
    font-weight: 700;
}

.delete-notebook-btn:hover {
    border-color: rgba(214, 75, 75, .43);
    background: rgba(214, 75, 75, .13);
}

.delete-notebook-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delete-modal-actions {
    justify-content: center;
}

@media(max-width:700px) {
    .edit-notebook-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .edit-main-actions {
        width: 100%;
    }

    .edit-main-actions button,
    .delete-notebook-btn {
        flex: 1;
    }
}

.editor:not(.editing-mode) .note-title-input,
.editor:not(.editing-mode) .section-title {
    pointer-events: none;
}

.editor.editing-mode .note-title-input,
.editor.editing-mode .section-title {
    pointer-events: auto;
}

.section-paragraph {
    min-height: 23px;
    padding: 2px 4px;
    font-size: 13px;
}

.primary-btn,
.icon-btn.accent,
.edit-mode-btn.active {
    color: var(--accent-contrast);
}

.toolbar-add-section-btn {
    color: var(--accent-pastel-text);
}

.editor:not(.editing-mode) .section-paragraph.copied::after {
    color: var(--accent-contrast);
}

.theme-coming-soon {
    position: relative;
}

.theme-coming-soon::after {
    position: absolute;
    right: 10px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    color: #ddd5e7;
    background: rgba(255, 255, 255, .08);
    content: "Próximamente";
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateX(5px);
    transition: opacity .18s ease, transform .18s ease;
}

.theme-coming-soon:hover::after,
.theme-coming-soon:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}