.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.app-topbar-title h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.app-topbar-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.app-topbar-link,
.app-topbar-button,
.topbar-link,
.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #93c5fd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.app-topbar-link:hover,
.app-topbar-button:hover,
.topbar-link:hover,
.topbar-button:hover {
    background: #273449;
}

.app-topbar-button,
.topbar-button {
    cursor: pointer;
}

.app-topbar-button.is-primary,
.topbar-button.is-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.app-topbar-button.is-primary:hover,
.topbar-button.is-primary:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .app-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-topbar-title h1 {
        font-size: 24px;
    }

    .app-topbar-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .app-topbar-link,
    .app-topbar-button,
    .topbar-link,
    .topbar-button {
        font-size: 13px;
        min-height: 38px;
        padding: 9px 12px;
    }
}

.app-read-only .write-only {
    display: none !important;
}

.read-only-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
    line-height: 1.5;
}
