@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Hebrew:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap");

.note-verbum-page {
    min-height: 100dvh;
}

.h-dvh {
    height: 100dvh;
}

.note-verbum-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .note-verbum-grid {
        display: grid;
        grid-template-columns: 3fr 3fr 4fr;
    }

    .note-verbum-grid[data-compare="false"] {
        grid-template-columns: 1fr 1fr;
    }

    .note-verbum-grid[data-compare="false"] .note-verbum-secondary {
        display: none;
    }
}

@media (max-width: 639px) {
    .note-verbum-secondary {
        display: none;
    }
}

.note-verbum-dropdown {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.note-verbum-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.note-verbum-switch {
    appearance: none;
    width: 42px;
    height: 22px;
    background: rgba(58, 94, 131, 0.3);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
}

.note-verbum-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.note-verbum-switch:checked {
    background: rgba(58, 94, 131, 1);
}

.note-verbum-switch:checked::after {
    transform: translateX(20px);
}

.note-verbum-book-active {
    background: rgba(67, 135, 204, 1);
    color: #ffffff;
}

.note-verbum-chapter-active {
    background: rgba(67, 135, 204, 1);
    color: #ffffff;
}

.note-verbum-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.note-verbum-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.note-verbum-scroll::-webkit-scrollbar-thumb {
    background: transparent;
}

.note-verbum-scroll::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.note-verbum-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.note-verbum-info-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(58, 94, 131, 0.6);
    color: rgba(58, 94, 131, 1);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Instrument Sans", sans-serif;
    line-height: 1;
}

.note-verbum-info-button:hover {
    background: rgba(58, 94, 131, 0.1);
}

.note-verbum-info-button-mobile {
    display: inline-flex;
}

.note-verbum-info-overlay.hidden {
    display: none;
}

.note-verbum-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 40;
}

.note-verbum-info-card {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 3rem);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 639px) {
    .note-verbum-info-card {
        height: 100%;
    }
}

.note-verbum-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.note-verbum-info-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.note-verbum-info-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.note-verbum-info-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.note-verbum-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.note-verbum-info-notes {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    padding-right: 6px;
    flex: 1 1 auto;
    min-height: 0;
}

@media (min-width: 640px) {
    .note-verbum-info-button-mobile {
        display: none;
    }
}

.verse-number {
    margin-right: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    top: -0.5em;
    right: -0.2em;
    vertical-align: baseline;
}

.heading {
    font-weight: bold;
    margin-top: 1.5rem;
    line-height: 1.4;
    display: block;
}

.instrument-sans {
    font-family: "Instrument Sans", sans-serif;
}

.font-notoSans {
    font-family: "Noto Sans", sans-serif;
}

.font-notoSerif {
    font-family: "Noto Serif", serif;
}

.font-notoSansMono {
    font-family: "Noto Sans Mono", monospace;
}

.font-notoSerifHebrew {
    font-family: "Noto Serif Hebrew", serif;
}

.font-notoSansfHebrew {
    font-family: "Noto Sans Hebrew", sans-serif;
}

/* Flexible reading workspace. Note markers live outside annotatable text. */
.nv-workspace { height: 100dvh; min-height: 480px; display: flex; flex-direction: column; background: #eef1f5; color: #212833; }
.nv-navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: #212833; color: white; flex-shrink: 0; }
.nv-navbar img { width: 170px; max-height: 54px; object-fit: contain; }
.nv-navbar-actions { display: flex; align-items: center; gap: 20px; }
.nv-navbar-actions a:hover { text-decoration: underline; }
.nv-navbar button { font-size: 26px; }
.nv-save-status:empty, .nv-annotation-status:empty { display: none; }
.nv-save-status { padding: 6px 16px; background: #fff5dc; font-size: 14px; }
.nv-panels { display: flex; flex: 1; min-height: 0; overflow-x: auto; }
.nv-panel { min-width: 240px; min-height: 0; display: flex; flex-direction: column; background: white; }
.nv-panel[data-type="commentary"] { background: #fcf8f0; }
.nv-panel-header { padding: 16px 14px 10px; border-bottom: 1px solid #e2e6eb; flex-shrink: 0; }
.nv-panel-heading { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; min-height: 30px; margin-bottom: 10px; }
.nv-panel-heading strong { font-size: 18px; color: #3a5e83; }
.nv-panel-controls, .nv-reference-controls { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.nv-panel-controls label, .nv-reference-controls label { flex: 1; min-width: 0; }
.nv-panel-controls label:first-child { flex: .8; }
.nv-reference-controls label:nth-child(2) { flex: .45; }
.nv-panel label, .nv-dialog label { display: block; font-size: 12px; color: #4a5868; }
.nv-panel select, .nv-dialog select, .nv-dialog textarea { width: 100%; margin-top: 4px; padding: 7px 24px 7px 8px; border: 1px solid #cbd3dd; border-radius: 5px; background-color: white; color: #212833; font-size: 14px; }
.nv-panel select:disabled { opacity: .65; background-color: #edf0f4; }
.nv-icon, .nv-link { padding: 8px 4px; font-size: 18px; }
.nv-link[aria-pressed="true"] { background: #e5edf5; border-radius: 5px; }
.nv-close { font-size: 24px; line-height: 1; padding: 2px 6px; }
.nv-panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nv-arrows { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.nv-arrows button { padding: 5px; font-size: 19px; }
.nv-arrows button:disabled { opacity: .3; }
.nv-settings { position: relative; }
.nv-settings summary { cursor: pointer; padding: 5px; font-size: 17px; }
.nv-settings > div { position: absolute; right: 0; top: 100%; z-index: 30; width: 180px; padding: 12px; background: white; box-shadow: 0 4px 20px #21283333; border-radius: 6px; }
.nv-revision { font-size: 11px; color: #68788a; }
.nv-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px 10px 30px 6px; }
.nv-reading-area { position: relative; }
.nv-text { position: relative; padding-left: 30px; line-height: 1.85; overflow-wrap: break-word; }
.nv-text .heading { display: block; font-weight: 600; margin: 16px 0 8px; }
.nv-text .verse-number { font-size: .75em; font-weight: 700; color: #5a6c82; padding-right: 4px; }
.nv-text .nv-verse { padding-right: .3em; }
.nv-text table { max-width: 100%; font-size: .9em; }
.nv-note-markers { position: absolute; inset: 0; pointer-events: none; }
.nv-note-marker { position: absolute; pointer-events: auto; z-index: 5; width: 23px; height: 23px; border-radius: 50%; color: #3a5e83; background: #e5edf5; font-size: 15px; }
.nv-annotation-status { margin: 14px 0 0 30px; color: #735b2f; font-size: 13px; }
.nv-separator { position: relative; flex: 0 0 20px; background: #eef1f5; }
.nv-resize-grip { position: absolute; inset: 0; cursor: col-resize; touch-action: none; }
.nv-resize-grip::after { content: ''; position: absolute; left: 8px; top: 42%; height: 60px; width: 4px; border-radius: 4px; background: #bac5d1; }
.nv-add { position: absolute; top: 14px; left: -4px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; background: #3a5e83; color: white; font-size: 22px; line-height: 1; }
.nv-add:disabled { opacity: .3; cursor: default; }
.nv-resizing { user-select: none; cursor: col-resize; }
.nv-tabs { display: none; }
.nv-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 0; border-radius: 10px; padding: 24px; box-shadow: 0 12px 60px #21283344; background: white; color: #212833; }
.nv-dialog::backdrop { background: #21283388; }
.nv-dialog form { float: right; }
.nv-dialog h2 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.nv-dialog p { white-space: pre-wrap; }
.nv-dialog blockquote { border-left: 3px solid #9fb4cb; padding-left: 12px; margin: 12px 0 20px; max-height: 140px; overflow: auto; color: #64758a; }
.nv-dialog label { margin-bottom: 14px; }
.nv-dialog textarea { padding: 10px; resize: vertical; }
.nv-dialog [role="alert"] { color: #a93232; font-size: 14px; }
.nv-dialog-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.nv-primary { background: #3a5e83; color: white; border-radius: 5px; padding: 9px 16px; }
.nv-selection-toolbar { position: fixed; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; background: white; box-shadow: 0 3px 20px #21283344; color: #212833; }
.nv-selection-toolbar[hidden], .nv-workspace [hidden] { display: none !important; }
.nv-swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); border: 1px solid #0002; }
.nv-workspace button:focus-visible, .nv-workspace select:focus-visible, .nv-workspace summary:focus-visible, .nv-resize-grip:focus-visible { outline: 3px solid #4387cc; outline-offset: 2px; }
.nv-study { max-width: 1000px; margin: auto; padding: 40px 20px; }
.nv-study h1 { font-size: 32px; margin: 20px 0; }
.nv-study-filters { display: flex; gap: 16px; margin: 20px 0; }
.nv-study-filters [aria-current] { font-weight: 700; color: #3a5e83; }
.nv-study-item { background: white; border: 1px solid #dce2e9; border-left: 6px solid var(--annotation-color, #3a5e83); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.nv-study-item blockquote { margin: 12px 0; color: #566b82; }
.nv-study-note { white-space: pre-wrap; margin: 12px 0; }
.nv-study-item a { color: #3a5e83; text-decoration: underline; }
@media (max-width: 1023px) {
    .nv-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; flex-shrink: 0; }
    .nv-tabs button { padding: 7px 10px; border-radius: 5px; border: 1px solid #cbd3dd; background: white; font-size: 12px; }
    .nv-tabs [aria-selected="true"] { background: #3a5e83; color: white; border-color: #3a5e83; }
    .nv-panel { display: none; min-width: 0; }
    .nv-panel.nv-active { display: flex; flex: 1 !important; }
    .nv-separator { display: none; }
    .nv-navbar { padding: 10px 12px; }
    .nv-navbar img { width: 110px; }
    .nv-navbar-actions { gap: 12px; font-size: 12px; }
    .nv-panel-header { padding: 10px 14px; }
}

.nv-ui-icon { display: block; width: 22px; height: 22px; object-fit: contain; }
.nv-link { padding: 7px; border-radius: 5px; }
.nv-link[aria-pressed="false"] { opacity: .65; }
.nv-reference-settings > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 0; color: #3a5e83; font-size: 13px; list-style: none; }
.nv-reference-settings > summary::-webkit-details-marker { display: none; }
.nv-reference-settings > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 5px; }
.nv-reference-settings[open] > summary::after { transform: rotate(225deg); }
.nv-reference-settings[open] > summary { margin-bottom: 4px; }
.nv-note-command { display: flex; align-items: center; gap: 4px; }
.nv-note-marker { display: grid; place-items: center; }
.nv-note-marker .nv-ui-icon { width: 17px; height: 17px; }
.nv-custom-swatch { position: relative; display: block; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#e67280, #eac25e, #8bbf92, #6faed2, #ab86c9, #e67280); border: 1px solid #0002; cursor: pointer; }
.nv-custom-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.nv-custom-swatch:focus-within { outline: 3px solid #4387cc; outline-offset: 2px; }
.nv-dialog input[type="color"] { display: block; width: 48px; height: 34px; margin-top: 6px; padding: 2px; border: 1px solid #cbd3dd; border-radius: 5px; cursor: pointer; }

.nv-selection-toolbar { flex-wrap: wrap; width: 270px; max-width: calc(100vw - 16px); }
.nv-color-confirm { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding-top: 8px; margin-top: 3px; border-top: 1px solid #e5eaf0; }
.nv-color-confirm .nv-primary { padding: 6px 10px; font-size: 13px; }
.nv-color-confirm > button:last-child { padding: 6px 4px; font-size: 13px; color: #64758a; }

.nv-study-filter-panel { margin: 20px 0 28px; border: 1px solid #dce2e9; border-radius: 8px; background: white; padding: 16px 20px; }
.nv-study-filter-panel > summary { color: #3a5e83; font-weight: 600; cursor: pointer; }
.nv-study-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.nv-study-filter-grid label { font-size: 13px; color: #4a5868; }
.nv-study-filter-grid select, .nv-study-filter-grid input { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #cbd3dd; border-radius: 5px; background: white; color: #212833; font-size: 14px; }
.nv-study-filter-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; }
.nv-study-filter-actions a { color: #64758a; text-decoration: underline; }
.nv-study-filter-panel :is(select, input, button, summary):focus-visible { outline: 3px solid #4387cc; outline-offset: 2px; }
@media (max-width: 640px) { .nv-study-filter-grid { grid-template-columns: 1fr; } .nv-study-filter-panel { padding: 16px; } }

/* Compact mobile reading chrome; selectors use a native modal sheet. */
.nv-mobile-action, .nv-mobile-menu, .nv-mobile-reference { display: none; }
.nv-reference-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 600px; max-height: min(80dvh, 560px); overflow-y: auto; border: 0; border-radius: 16px 16px 0 0; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); color: #212833; background: white; box-shadow: 0 -8px 30px #21283322; }
.nv-reference-sheet::backdrop { background: #21283366; }
.nv-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nv-sheet-heading h2 { font-size: 18px; font-weight: 600; color: #3a5e83; }
.nv-sheet-heading button { width: 44px; height: 44px; font-size: 24px; }
.nv-sheet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; }
.nv-sheet-remove { margin-right: auto; padding: 10px 0; color: #9b3434; font-size: 14px; }
.nv-tab-scroll { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nv-tab-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) {
    .nv-navbar { height: 48px; padding: 0 12px; gap: 8px; }
    .nv-navbar img { width: 44px; height: 32px; }
    .nv-navbar-actions { gap: 0; }
    .nv-desktop-action { display: none; }
    .nv-mobile-action, .nv-mobile-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; }
    .nv-mobile-action svg, .nv-mobile-menu svg { width: 21px; height: 21px; }
    .nv-mobile-menu { display: block; position: relative; }
    .nv-mobile-menu > summary { cursor: pointer; list-style: none; }
    .nv-mobile-menu > summary::-webkit-details-marker { display: none; }
    .nv-mobile-menu > div { position: absolute; top: 44px; right: 0; z-index: 40; min-width: 200px; padding: 8px; border-radius: 8px; background: #212833; box-shadow: 0 8px 24px #21283333; }
    .nv-mobile-menu a, .nv-mobile-menu button { display: block; width: 100%; padding: 12px; text-align: left; font-size: 14px; }
    .nv-tabs { height: 48px; padding: 4px 8px; gap: 4px; flex-wrap: nowrap; align-items: center; }
    .nv-tab-scroll button { flex-shrink: 0; min-height: 40px; padding: 6px 12px; white-space: nowrap; }
    .nv-tabs .nv-tab-add { width: 40px; height: 40px; flex-shrink: 0; font-size: 22px; padding: 0; }
    .nv-panel-header { padding: 0 8px; }
    .nv-panel-heading, .nv-reference-settings, .nv-desktop-reference, .nv-revision { display: none; }
    .nv-panel-bottom { height: 48px; margin: 0; gap: 4px; }
    .nv-arrows { flex: 1; justify-content: space-between; min-width: 0; gap: 2px; }
    .nv-arrows > button { flex-shrink: 0; min-width: 40px; height: 44px; }
    .nv-mobile-reference { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; align-items: center; line-height: 1.3; padding: 2px 4px; color: #3a5e83; }
    .nv-mobile-reference > span { font-size: 14px; font-weight: 600; }
    .nv-mobile-reference > small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nv-settings > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; list-style: none; }
    .nv-settings > summary::-webkit-details-marker { display: none; }
    .nv-settings > div { right: 0; }
    .nv-scroll { padding-top: 12px; }
    .nv-reference-sheet label { font-size: 13px; }
    .nv-reference-sheet select { min-height: 44px; font-size: 16px; }
    .nv-reference-sheet .nv-link { min-width: 44px; min-height: 44px; }
}
.nv-sheet-revision { font-size: 12px; color: #68788a; margin-top: 16px; }
.nv-sheet-revision:empty { display: none; }
.nv-reading-bar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 44px; padding: 0 12px; background: #212833; color: white; font-size: 13px; }
.nv-reading-bar button { min-height: 44px; padding: 0 12px; }
.nv-reading-bar button span { margin-left: 8px; font-size: 20px; }
.nv-reading-mode { min-height: 0; }
.nv-reading-mode > .nv-navbar, .nv-reading-mode > .nv-tabs { display: none; }

/* Optional split view keeps desktop column proportions independent. */
.nv-tab-item { display: flex; align-items: center; flex-shrink: 0; }
.nv-tab-menu, .nv-split-grip { display: none; }
.nv-view-dialog form, .nv-move-dialog form { float: none; text-align: right; margin-top: 20px; }
.nv-view-dialog select { min-height: 44px; font-size: 16px; }
.nv-view-swap { min-height: 44px; color: #3a5e83; }
.nv-view-help { font-size: 13px; color: #4a5868; margin-top: 8px; }
.nv-move-dialog > button { display: block; min-height: 44px; width: 100%; text-align: left; color: #3a5e83; }
@media (max-width: 1023px) {
    .nv-workspace { min-height: 0; }
    .nv-workspace[data-mobile-view="side"] .nv-panels, .nv-workspace[data-mobile-view="stack"] .nv-panels { overflow: hidden; }
    .nv-workspace[data-mobile-view="stack"] .nv-panels { flex-direction: column; }
    .nv-workspace:is([data-mobile-view="side"], [data-mobile-view="stack"]) .nv-panel { display: none; }
    .nv-workspace:is([data-mobile-view="side"], [data-mobile-view="stack"]) .nv-panel.nv-split-visible { display: flex; flex: var(--nv-slot-size) 1 0px !important; overflow: visible; }
    .nv-workspace:is([data-mobile-view="side"], [data-mobile-view="stack"]) .nv-tab-menu { display: grid; place-items: center; width: 32px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #3a5e83; }
    .nv-workspace:is([data-mobile-view="side"], [data-mobile-view="stack"]) .nv-split-grip { display: block; flex: 0 0 20px; order: 1; position: relative; background: #eef1f5; touch-action: none; cursor: row-resize; }
    .nv-split-grip::after { content: ''; position: absolute; width: 44px; height: 4px; left: calc(50% - 22px); top: 8px; border-radius: 4px; background: #7c8fa4; }
    .nv-split-grip:focus-visible { outline: 2px solid #4387cc; outline-offset: -2px; }
    .nv-workspace[data-mobile-view="side"] .nv-split-grip { cursor: col-resize; }
    .nv-workspace[data-mobile-view="side"] .nv-split-grip::after { width: 4px; height: 44px; left: 8px; top: calc(50% - 22px); }
    .nv-workspace[data-mobile-view="side"] .nv-panel-header { position: relative; }
    .nv-workspace[data-mobile-view="side"] .nv-panel-bottom { height: 88px; position: relative; align-items: flex-start; }
    .nv-workspace[data-mobile-view="side"] .nv-panel-bottom .nv-settings { position: absolute; right: 0; bottom: 0; }
    .nv-workspace[data-mobile-view="side"] .nv-arrows { width: 100%; }
    .nv-workspace[data-mobile-view="side"] .nv-mobile-reference > span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    .nv-workspace[data-mobile-view="side"] .nv-scroll { padding-right: 6px; }
    .nv-workspace[data-mobile-view="side"] .nv-text { padding-left: 24px; }
}

/* Touch actions stay outside the text and its native selection handles. */
.nv-selection-toolbar.nv-touch-toolbar { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; max-width: none; padding: 24px 8px max(8px, env(safe-area-inset-bottom)); gap: 6px; justify-content: center; border-radius: 0; box-shadow: 0 -3px 12px #21283318; pointer-events: none; }
.nv-touch-toolbar > button, .nv-touch-toolbar > label, .nv-touch-toolbar .nv-color-confirm { pointer-events: auto; }
.nv-touch-toolbar .nv-swatch, .nv-touch-toolbar .nv-custom-swatch { width: 44px; height: 44px; }
.nv-touch-toolbar .nv-note-command, .nv-touch-toolbar .nv-color-confirm button { min-height: 44px; }
.nv-selection-toolbar.nv-selection-adjusting { visibility: hidden; }
.nv-text { -webkit-user-select: text; user-select: text; }

.nv-workspace.nv-touch-selection { position: relative; }
.nv-touch-selection .nv-scroll { padding-bottom: 140px; scroll-padding-bottom: 140px; }
