@media (min-width: 768px) {
    .notes-area {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .brand-name {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .fab-container {
        position: fixed;
        bottom: 8.5rem;
        left: 50%;
        right: auto;
        width: auto;
        justify-content: center;
        transform: translateX(-50%);
        max-width: none;
        z-index: 24;
    }

    .notebook-content {
        padding-bottom: 160px;
    }

    .notes-area {
        padding-bottom: 160px;
    }
}

@media (max-width: 600px) {
    .notebook-content {
        padding-bottom: 100px;
    }
    .notebook-container {
        border-radius: 0;
    }

    .notebook-header {
        border-radius: 18px 18px 0 0;
        padding: 0.85rem 1rem;
    }

    .notes-area {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        min-height: calc(100vh - 100px);
    }

    /* Calendar mobile improvements */
    .calendar-sticky {
        padding: 0.75rem 1rem 0.75rem;
        gap: 0.75rem;
    }

    .calendar-toggle-row {
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .calendar-pickers {
        padding-top: 0.4rem;
        padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
        margin-bottom: 0;
    }


    .account-area {
        padding: 1.25rem 1.25rem 2rem;
    }

    .account-label-list {
        gap: 0.85rem;
    }

    .account-label-editor {
        gap: 0.5rem;
    }

    .note-item--selection .note-content {
        padding-left: 2.75rem;
    }

    .note-selection-indicator {
        left: 0.4rem;
        width: 2rem;
        height: 2rem;
    }

    .snote-contextual-bar,
    .snote-snackbar {
        width: calc(100% - 2rem);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .snote-contextual-bar {
        gap: 1rem;
    }

    .snote-contextual-actions {
        gap: 0.75rem;
    }

    .fab-button {
        width: 58px;
        height: 58px;
    }

    .notebook-content {
        overflow-y: auto;
        flex: 1;
        padding-bottom: 80px; /* space for fixed footer */
    }

    .notebook-footer {
        padding: 0.3rem 1rem 0.5rem;
        margin-top: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 420px) {
    .notebook-header .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .tab-icon {
        width: 16px;
        height: 16px;
        margin-right: 0.25rem;
    }

    .note-item {
        font-size: 1.05rem;
    }

    .search-bar {
        gap: 0.5rem;
    }

    .notes-area {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }


    .account-section {
        padding: 1.25rem 1.35rem;
    }

    .account-item-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .account-select {
        max-width: 100%;
    }

    .account-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .account-item-label {
        min-width: unset;
    }

    .account-label-editor .account-field {
        min-width: unset;
    }

    /* no wrapper card around input in labels editor */
}

@media (max-width: 360px) {
    .notebook-container {
        border-radius: 20px;
    }

    .notebook-header .nav-link {
        font-size: 0.82rem;
        padding: 0.35rem 0.45rem;
    }

    .brand-name {
        font-size: 1.7rem;
    }

    .fab-button {
        width: 54px;
        height: 54px;
    }

    .account-label-editor {
        padding: 0.6rem 0.75rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .note-actions {
        opacity: 1;
    }

    .note-actions button {
        min-width: 32px;
        min-height: 32px;
        font-size: 1rem;
    }

    .search-mic-btn,
    .filter-btn {
        padding: 0.6rem;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-underline {
        height: 3px;
    }

    .note-item:not(:last-child)::after {
        height: 2px;
    }
}
