html, body {
    height: 100%;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #dfe6f1;
}

.app-navbar-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #1f2f48;
    font-weight: 700;
    text-decoration: none;
    margin: 0;
}

.app-brand:hover {
    color: #183670;
}

.app-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2b67d0 0%, #5d8fe4 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

.app-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.app-nav-link {
    color: #38537d;
    text-decoration: none;
    border: 1px solid #d7e1ef;
    background: #f8fbff;
    border-radius: 999px;
    padding: 0.34rem 0.78rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.app-nav-link:hover {
    color: #26477f;
    background: #eef4ff;
}

.app-user-badge {
    border: 1px solid #d7e1ef;
    background: #fff;
    border-radius: 999px;
    color: #4a5f81;
    padding: 0.34rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.app-main {
    padding-top: 76px;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.section-title {
    font-weight: 600;
    margin-bottom: 1rem;
}
.drag-handle {
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

@media (max-width: 575.98px) {
    .app-navbar-inner {
        min-height: 54px;
    }

    .app-brand {
        font-size: 0.96rem;
    }

    .app-brand-mark {
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    .app-nav-link {
        font-size: 0.8rem;
        padding: 0.28rem 0.62rem;
        min-height: 32px;
    }

    .app-user-badge {
        display: none;
    }

    .app-main {
        padding-top: 70px;
    }
}
